-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Clicontext #8
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
Clicontext #8
Conversation
|
LGTM, though I'm hesitant to merge before we get PR testing working |
|
Needs a rebase. I believe. |
3c6f187 to
b0f1eb6
Compare
Signed-off-by: baude <bbaude@redhat.com>
Create unittests for the create_cli helper functions. As such, remove cli context usage from the functions to further divide between cli input and parsing. Also, simplifies unit testing. Signed-off-by: baude <bbaude@redhat.com>
Add unit tests for func StringInSlice. Signed-off-by: baude <bbaude@redhat.com>
Remove cli context as a func arg to make unit tests easier. Signed-off-by: baude <bbaude@redhat.com>
Unit tests for spec.go which includes testing parts of the oci spec. Signed-off-by: baude <bbaude@redhat.com>
|
if CI passes, please review and/or merge @rhatdan |
libpod/util_test.go
Outdated
| assert.False(t, StringInSlice("five", sliceData)) | ||
| // string is not in empty slice | ||
| assert.False(t, StringInSlice("one", []string{})) | ||
| } No newline at end of file |
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.
Add line
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.
fixed
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.
@rhatdan are you wanting a newline? if so, gofmt keeps yanking it out.
|
One Nit, Fix this and then we can merge. LGTM |
Unit tests for getRegistry related functions. Signed-off-by: baude <bbaude@redhat.com>
Refactored routing, added more endpoints and types
create_cli_test.go: Unittests
Create unittests for the create_cli helper functions. As
such, remove cli context usage from the functions to
further divide between cli input and parsing. Also, simplifies
unit testing.
vendor in assert package