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{})
| 1283 | // a.NotRegexp(regexp.MustCompile("starts"), "it's starting") |
| 1284 | // a.NotRegexp("^start", "it's not starting") |
| 1285 | func (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 | // |