Regexp asserts that a specified regexp matches a string. a.Regexp(regexp.MustCompile("start"), "it's starting") a.Regexp("start...$", "it's not starting")
(rx interface{}, str interface{}, msgAndArgs ...interface{})
| 1555 | // a.Regexp(regexp.MustCompile("start"), "it's starting") |
| 1556 | // a.Regexp("start...$", "it's not starting") |
| 1557 | func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { |
| 1558 | if h, ok := a.t.(tHelper); ok { |
| 1559 | h.Helper() |
| 1560 | } |
| 1561 | return Regexp(a.t, rx, str, msgAndArgs...) |
| 1562 | } |
| 1563 | |
| 1564 | // Regexpf asserts that a specified regexp matches a string. |
| 1565 | // |