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

Function NotRegexpf

internal/testify/require/require.go:1643–1651  ·  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

1641// assert.NotRegexpf(t, regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted")
1642// assert.NotRegexpf(t, "^start", "it's not starting", "error message %s", "formatted")
1643func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) {
1644 if h, ok := t.(tHelper); ok {
1645 h.Helper()
1646 }
1647 if assert.NotRegexpf(t, rx, str, msg, args...) {
1648 return
1649 }
1650 t.FailNow()
1651}
1652
1653// NotSame asserts that two pointers do not reference the same object.
1654//

Callers 1

NotRegexpfMethod · 0.70

Calls 3

NotRegexpfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…