-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add unit-test for daemon/config/getUnknownFlags #1808
test: add unit-test for daemon/config/getUnknownFlags #1808
Conversation
We found this is your first time to contribute to Pouch, @cyrann |
Codecov Report
@@ Coverage Diff @@
## master #1808 +/- ##
==========================================
+ Coverage 56.3% 56.47% +0.16%
==========================================
Files 200 200
Lines 15657 15659 +2
==========================================
+ Hits 8816 8843 +27
+ Misses 5745 5724 -21
+ Partials 1096 1092 -4
|
Signed-off-by: Erhuan <553614753@qq.com>
LGTM |
@@ -53,5 +54,44 @@ func TestGetConflictConfigurations(t *testing.T) { | |||
} | |||
|
|||
func TestGetUnknownFlags(t *testing.T) { | |||
// TODO | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove redundant blank line here @cyrann
|
||
error = getUnknownFlags(flagSetNil, fileFlagsNil) | ||
assert.Equal(error, nil) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
Ⅰ. Describe what this PR did
Add unit-test for daemon/config/getUnknownFlags
Ⅱ. Does this pull request fix one issue?
fixes #1758
Ⅲ. Describe how you did it
Implement test cases for all possible scenarios of
func getUnknownFlags()
Ⅳ. Describe how to verify it
Run
go test daemon/config/config_test.go
Ⅴ. Special notes for reviews
group 264-10