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{})
| 1513 | // a.Regexp(regexp.MustCompile("start"), "it's starting") |
| 1514 | // a.Regexp("start...$", "it's not starting") |
| 1515 | func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { |
| 1516 | if h, ok := a.t.(tHelper); ok { |
| 1517 | h.Helper() |
| 1518 | } |
| 1519 | return Regexp(a.t, rx, str, msgAndArgs...) |
| 1520 | } |
| 1521 | |
| 1522 | // Regexpf asserts that a specified regexp matches a string. |
| 1523 | // |