Skip to content

libcontainer/state_linux_test: Add a testTransitions helper#1703

Merged
crosbymichael merged 1 commit intoopencontainers:masterfrom
wking:state-test-helper
Feb 2, 2018
Merged

libcontainer/state_linux_test: Add a testTransitions helper#1703
crosbymichael merged 1 commit intoopencontainers:masterfrom
wking:state-test-helper

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