MCPcopy
hub / github.com/expr-lang/expr / NotRegexp

Method NotRegexp

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

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

Callers 1

TestRegexpWrapperFunction · 0.45

Calls 2

NotRegexpFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestRegexpWrapperFunction · 0.36