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{})
| 1335 | // a.NotRegexp(regexp.MustCompile("starts"), "it's starting") |
| 1336 | // a.NotRegexp("^start", "it's not starting") |
| 1337 | func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { |
| 1338 | if h, ok := a.t.(tHelper); ok { |
| 1339 | h.Helper() |
| 1340 | } |
| 1341 | return NotRegexp(a.t, rx, str, msgAndArgs...) |
| 1342 | } |
| 1343 | |
| 1344 | // NotRegexpf asserts that a specified regexp does not match a string. |
| 1345 | // |