NotRegexp asserts that a specified regexp does not match a string. assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting") assert.NotRegexp(t, "^start", "it's not starting")
(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{})
| 1627 | // assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting") |
| 1628 | // assert.NotRegexp(t, "^start", "it's not starting") |
| 1629 | func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) { |
| 1630 | if h, ok := t.(tHelper); ok { |
| 1631 | h.Helper() |
| 1632 | } |
| 1633 | if assert.NotRegexp(t, rx, str, msgAndArgs...) { |
| 1634 | return |
| 1635 | } |
| 1636 | t.FailNow() |
| 1637 | } |
| 1638 | |
| 1639 | // NotRegexpf asserts that a specified regexp does not match a string. |
| 1640 | // |