MCPcopy Create free account
hub / github.com/stretchr/testify / NotRegexpf

Method NotRegexpf

assert/assertion_forward.go:1348–1353  ·  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

1346// a.NotRegexpf(regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted")
1347// a.NotRegexpf("^start", "it's not starting", "error message %s", "formatted")
1348func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, args ...interface{}) bool {
1349 if h, ok := a.t.(tHelper); ok {
1350 h.Helper()
1351 }
1352 return NotRegexpf(a.t, rx, str, msg, args...)
1353}
1354
1355// NotSame asserts that two pointers do not reference the same object.
1356//

Callers

nothing calls this directly

Calls 2

NotRegexpfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected