apache / apache/openwhisk-wskdeploy
Unit Test - gitreader.go
- Dominant language
- Go
- Stars
- 75
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Add unit tests to validate methods under utils package which are defined in [gitreader.go](https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/utils/gitreader.go)
All unit tests should go in gitreader_test.go under [utils/](https://github.com/apache/incubator-openwhisk-wskdeploy/blob/master/utils)
```
func NewGitReader(projectName string, record DependencyRecord) *GitReader {
...
}
func (reader *GitReader) CloneDependency() error {
...
}
```
Contributor guide
Research direction
Start by reading utils/gitreader.go, focusing on NewGitReader and GitReader.CloneDependency. Add the unit tests to utils/gitreader_test.go and run the utils package tests. The work is done when both named methods have tests that validate their behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100