MCPcopy
hub / github.com/stretchr/testify / NotRegexpf

Function NotRegexpf

assert/assertion_format.go:694–699  ·  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

692// assert.NotRegexpf(t, regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted")
693// assert.NotRegexpf(t, "^start", "it's not starting", "error message %s", "formatted")
694func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) bool {
695 if h, ok := t.(tHelper); ok {
696 h.Helper()
697 }
698 return NotRegexp(t, rx, str, append([]interface{}{msg}, args...)...)
699}
700
701// NotSamef asserts that two pointers do not reference the same object.
702//

Callers 2

NotRegexpfFunction · 0.92
NotRegexpfMethod · 0.70

Calls 2

NotRegexpFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected