You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/08/15 22:26:50 UTC

[GitHub] pritidesai opened a new issue #327: Unit Test - yamlparser.go

pritidesai opened a new issue #327: Unit Test - yamlparser.go
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/327
 
 
   Add unit tests to validate methods under parsers package which are defined in [yamlparser.go](https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/parsers/yamlparser.go).
   
   All unit tests should go in `yamlparser_test.go` under [parsers/](https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/parsers)
   
   ```
   // Compose methods
   // compose trigger
   func (trigger *Trigger) ComposeWskTrigger(kvarr []whisk.KeyValue) *whisk.Trigger {
   ...
   }
   
   // compose rule
   func (rule *Rule) ComposeWskRule() *whisk.Rule {
   ...
   }
   
   // compose package
   func (pkg *Package) ComposeWskPackage() *whisk.Package {
   ...
   }
   
   // get list of actions
   func (pkg *Package) GetActionList() []Action {
   ...
   }
   
   // get list of triggers
   func (pkg *Package) GetTriggerList() []Trigger {
   ...
   }
   
   // get list of rules
   func (pkg *Package) GetRuleList() []Rule {
   ...
   }
   
   // get list of feeds
   func (pkg *Package) GetFeedList() []Feed {
   ...
   }
   ```
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services