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

Function NotRegexp

internal/testify/require/require.go:1629–1637  ·  view source on GitHub ↗

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

(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1627// assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting")
1628// assert.NotRegexp(t, "^start", "it's not starting")
1629func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) {
1630 if h, ok := t.(tHelper); ok {
1631 h.Helper()
1632 }
1633 if assert.NotRegexp(t, rx, str, msgAndArgs...) {
1634 return
1635 }
1636 t.FailNow()
1637}
1638
1639// NotRegexpf asserts that a specified regexp does not match a string.
1640//

Callers 1

NotRegexpMethod · 0.70

Calls 3

NotRegexpFunction · 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…