MCPcopy Index your code
hub / github.com/expr-lang/expr / Regexpf

Method Regexpf

internal/testify/require/require_forward.go:1476–1481  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

RegexpfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected