pritidesai opened a new issue #344: Unit Test - misc.go
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/344
 
 
   Add unit tests to validate methods under utils package which are defined in 
[misc.go](https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/utils/misc.go)
   
   All unit tests should go in misc_test.go under 
[utils/](https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/utils)
   
   ```
   // convert hostname to URL object
   func GetURLBase(host string) (*url.URL, error) {
   ...
   }
   
   func GetHomeDirectory() string {
   ...
   }
   
   func IsFeedAction(trigger *whisk.Trigger) (string, bool) {
   ...
   }
   
   func PrettyJSON(j interface{}) string {
   ...
   }
   
   func Ask(reader *bufio.Reader, question string, def string) string {
   ...
   }
   
   func GetEnvVar(key interface{}) interface{} {
   ...
   }
   
   func NewZipWritter(src, des string) *ZipWritter {
   ...
   }
   
   func (zw *ZipWritter) Zip() error {
   ...
   }
   
   func GetExec(artifact string, kind string, isDocker bool, mainEntry string) 
(*whisk.Exec, error) {
   ...
   }
   
   func NewParserErr(fname string, line int, msg string) error {
   ...
   }
   
   func WebAction(webMode string, annotations whisk.KeyValueArr, entityName 
string, fetch bool) (whisk.KeyValueArr, error) {
   ...
   }
   ```
   
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to