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

Method AssertOutNotContains

pkg/testutil/testutil.go:444–452  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

442}
443
444func (c *Cmd) AssertOutNotContains(s string) {
445 c.Base.T.Helper()
446 c.AssertOutWithFunc(func(stdout string) error {
447 if strings.Contains(stdout, s) {
448 return fmt.Errorf("expected stdout to not contain %q", s)
449 }
450 return nil
451 })
452}
453
454func (c *Cmd) AssertOutExactly(s string) {
455 c.Base.T.Helper()

Callers

nothing calls this directly

Calls 2

AssertOutWithFuncMethod · 0.95
HelperMethod · 0.65

Tested by

no test coverage detected