MCPcopy Index your code
hub / github.com/expr-lang/expr / NotRegexpf

Method NotRegexpf

internal/testify/assert/assertion_forward.go:1296–1301  ·  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

1294// a.NotRegexpf(regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted")
1295// a.NotRegexpf("^start", "it's not starting", "error message %s", "formatted")
1296func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, args ...interface{}) bool {
1297 if h, ok := a.t.(tHelper); ok {
1298 h.Helper()
1299 }
1300 return NotRegexpf(a.t, rx, str, msg, args...)
1301}
1302
1303// NotSame asserts that two pointers do not reference the same object.
1304//

Callers

nothing calls this directly

Calls 2

NotRegexpfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected