Skip to content

Conversation

@baude
Copy link
Member

@baude baude commented Nov 2, 2017

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

@mheon
Copy link
Member

mheon commented Nov 2, 2017

LGTM, though I'm hesitant to merge before we get PR testing working

@rhatdan
Copy link
Member

rhatdan commented Nov 2, 2017

Needs a rebase. I believe.

@baude baude force-pushed the clicontext branch 3 times, most recently from 3c6f187 to b0f1eb6 Compare November 4, 2017 01:34
baude added 5 commits November 3, 2017 20:37
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>
@baude
Copy link
Member Author

baude commented Nov 4, 2017

if CI passes, please review and/or merge @rhatdan

assert.False(t, StringInSlice("five", sliceData))
// string is not in empty slice
assert.False(t, StringInSlice("one", []string{}))
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add line

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Member Author

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.

@rhatdan
Copy link
Member

rhatdan commented Nov 4, 2017

One Nit, Fix this and then we can merge.

LGTM

Unit tests for getRegistry related functions.

Signed-off-by: baude <bbaude@redhat.com>
@rhatdan rhatdan merged commit b06190e into containers:master Nov 5, 2017
baude referenced this pull request in baude/podman Aug 31, 2019
vendor: bump cni to v0.5.2
jwhonce referenced this pull request in jwhonce/podman Nov 4, 2019
Refactored routing, added more endpoints and types
@baude baude deleted the clicontext branch December 22, 2019 18:46
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants