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

Method AssertFail

pkg/testutil/testutil.go:390–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388}
389
390func (c *Cmd) AssertFail() {
391 c.Base.T.Helper()
392 res := c.runIfNecessary()
393 assert.Assert(c.Base.T, res.ExitCode != 0, res)
394}
395
396func (c *Cmd) AssertExitCode(exitCode int) {
397 c.Base.T.Helper()

Callers 15

TestRunHostLookupFunction · 0.80
TestHostPortAlreadyInUseFunction · 0.80
TestHostsFileMountsFunction · 0.80
TestRunMountVolumeFunction · 0.80
TestRunMountRelativePathFunction · 0.80
TestRunMountVolumeSpecFunction · 0.80

Calls 3

runIfNecessaryMethod · 0.95
AssertMethod · 0.80
HelperMethod · 0.65

Tested by 15

TestRunHostLookupFunction · 0.64
TestHostPortAlreadyInUseFunction · 0.64
TestHostsFileMountsFunction · 0.64
TestRunMountVolumeFunction · 0.64
TestRunMountRelativePathFunction · 0.64
TestRunMountVolumeSpecFunction · 0.64