MCPcopy Create free account
hub / github.com/containerd/nerdctl / AssertExitCode

Method AssertExitCode

pkg/testutil/testutil.go:396–400  ·  view source on GitHub ↗
(exitCode int)

Source from the content-addressed store, hash-verified

394}
395
396func (c *Cmd) AssertExitCode(exitCode int) {
397 c.Base.T.Helper()
398 res := c.runIfNecessary()
399 assert.Assert(c.Base.T, res.ExitCode == exitCode, res)
400}
401
402func (c *Cmd) AssertOutContains(s string) {
403 c.Base.T.Helper()

Callers 1

AssertOKMethod · 0.95

Calls 3

runIfNecessaryMethod · 0.95
AssertMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected