Regexpf asserts that a specified regexp matches a string. a.Regexpf(regexp.MustCompile("start"), "it's starting", "error message %s", "formatted") a.Regexpf("start...$", "it's not starting", "error message %s", "formatted")
(rx interface{}, str interface{}, msg string, args ...interface{})
| 1472 | // a.Regexpf(regexp.MustCompile("start"), "it's starting", "error message %s", "formatted") |
| 1473 | // a.Regexpf("start...$", "it's not starting", "error message %s", "formatted") |
| 1474 | func (a *Assertions) Regexpf(rx interface{}, str interface{}, msg string, args ...interface{}) bool { |
| 1475 | if h, ok := a.t.(tHelper); ok { |
| 1476 | h.Helper() |
| 1477 | } |
| 1478 | return Regexpf(a.t, rx, str, msg, args...) |
| 1479 | } |
| 1480 | |
| 1481 | // Same asserts that two pointers reference the same object. |
| 1482 | // |