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{})
| 1641 | // assert.NotRegexpf(t, regexp.MustCompile("starts"), "it's starting", "error message %s", "formatted") |
| 1642 | // assert.NotRegexpf(t, "^start", "it's not starting", "error message %s", "formatted") |
| 1643 | func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) { |
| 1644 | if h, ok := t.(tHelper); ok { |
| 1645 | h.Helper() |
| 1646 | } |
| 1647 | if assert.NotRegexpf(t, rx, str, msg, args...) { |
| 1648 | return |
| 1649 | } |
| 1650 | t.FailNow() |
| 1651 | } |
| 1652 | |
| 1653 | // NotSame asserts that two pointers do not reference the same object. |
| 1654 | // |
no test coverage detected
searching dependent graphs…