MCPcopy
hub / github.com/stretchr/testify / NotRegexpf

Method NotRegexpf

assert/assertion_forward.go:1384–1389  ·  view source on GitHub ↗

NotRegexpf asserts that a specified regexp does not match a string. a.NotRegexpf(regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted") a.NotRegexpf("^start", "it's not starting", "error message %s", "formatted")

(rx interface{}, str interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1382// a.NotRegexpf(regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted")
1383// a.NotRegexpf("^start", "it's not starting", "error message %s", "formatted")
1384func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, args ...interface{}) bool {
1385 if h, ok := a.t.(tHelper); ok {
1386 h.Helper()
1387 }
1388 return NotRegexpf(a.t, rx, str, msg, args...)
1389}
1390
1391// NotSame asserts that two pointers do not reference the same object.
1392//

Callers

nothing calls this directly

Calls 2

NotRegexpfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected