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

Method Regexp

internal/testify/require/require_forward.go:1465–1470  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1463// a.Regexp(regexp.MustCompile("start"), "it's starting")
1464// a.Regexp("start...$", "it's not starting")
1465func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) {
1466 if h, ok := a.t.(tHelper); ok {
1467 h.Helper()
1468 }
1469 Regexp(a.t, rx, str, msgAndArgs...)
1470}
1471
1472// Regexpf asserts that a specified regexp matches a string.
1473//

Callers

nothing calls this directly

Calls 2

RegexpFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected