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

Method NotRegexp

internal/testify/require/require_forward.go:1287–1292  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1285// a.NotRegexp(regexp.MustCompile("starts"), "it's starting")
1286// a.NotRegexp("^start", "it's not starting")
1287func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) {
1288 if h, ok := a.t.(tHelper); ok {
1289 h.Helper()
1290 }
1291 NotRegexp(a.t, rx, str, msgAndArgs...)
1292}
1293
1294// NotRegexpf asserts that a specified regexp does not match a string.
1295//

Callers

nothing calls this directly

Calls 2

NotRegexpFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected