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

Function NotRegexpf

internal/testify/assert/assertion_format.go:650–655  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

648// assert.NotRegexpf(t, regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted")
649// assert.NotRegexpf(t, "^start", "it's not starting", "error message %s", "formatted")
650func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) bool {
651 if h, ok := t.(tHelper); ok {
652 h.Helper()
653 }
654 return NotRegexp(t, rx, str, append([]interface{}{msg}, args...)...)
655}
656
657// NotSamef asserts that two pointers do not reference the same object.
658//

Callers 2

NotRegexpfFunction · 0.92
NotRegexpfMethod · 0.70

Calls 2

NotRegexpFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…