MCPcopy Index your code
hub / github.com/coder/coder / ExpectRegexMatch

Method ExpectRegexMatch

testutil/expecter/expecter.go:152–156  ·  view source on GitHub ↗
(ctx context.Context, str string)

Source from the content-addressed store, hash-verified

150}
151
152func (e *Expecter) ExpectRegexMatch(ctx context.Context, str string) string {
153 return e.expectMatcherFunc(ctx, str, func(src, pattern string) bool {
154 return regexp.MustCompile(pattern).MatchString(src)
155 })
156}
157
158func (e *Expecter) expectMatcherFunc(ctx context.Context, str string, fn func(src, pattern string) bool) string {
159 e.t.Helper()

Callers

nothing calls this directly

Calls 2

expectMatcherFuncMethod · 0.95
MustCompileMethod · 0.80

Tested by

no test coverage detected