Skip to content
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

libcontainer/state_linux_test: Add a testTransitions helper #1703

Merged
merged 1 commit into from
Feb 2, 2018

Conversation

wking
Copy link
Contributor

@wking wking commented Jan 25, 2018

The helper DRYs up the transition tests and makes it easy to get complete coverage for invalid transitions.

I'm also using t.Run() for subtests. Run() is new in Go 1.7, but runc dropped support for 1.6 back in e773f96 (#1335).

The helper DRYs up the transition tests and makes it easy to get
complete coverage for invalid transitions.

I'm also using t.Run() for subtests.  Run() is new in Go 1.7 [1], but
runc dropped support for 1.6 back in e773f96 (update go version at
travis-ci, 2017-02-20, opencontainers#1335).

[1]: https://blog.golang.org/subtests

Signed-off-by: W. Trevor King <wking@tremily.us>
@cyphar
Copy link
Member

cyphar commented Feb 2, 2018

LGTM.

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Feb 2, 2018

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit 6c55f98 into opencontainers:master Feb 2, 2018
@wking wking deleted the state-test-helper branch February 2, 2018 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants