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

Method ExpectMatchContext

pty/ptytest/ptytest.go:173–175  ·  view source on GitHub ↗

TODO(mafredri): Rename this to ExpectMatch when refactoring.

(ctx context.Context, str string)

Source from the content-addressed store, hash-verified

171
172// TODO(mafredri): Rename this to ExpectMatch when refactoring.
173func (e *outExpecter) ExpectMatchContext(ctx context.Context, str string) string {
174 return e.expectMatcherFunc(ctx, str, strings.Contains)
175}
176
177func (e *outExpecter) ExpectRegexMatchContext(ctx context.Context, str string) string {
178 return e.expectMatcherFunc(ctx, str, func(src, pattern string) bool {

Callers 15

TestExpTaskResumeFunction · 0.80
TestPortForwardFunction · 0.80
TestServerFunction · 0.80
TestCreateDynamicFunction · 0.80
TestCreateFunction · 0.80
TestTemplatePushFunction · 0.80
TestShowFunction · 0.80
TestExpRptyFunction · 0.80

Calls 1

expectMatcherFuncMethod · 0.95

Tested by 15

TestExpTaskResumeFunction · 0.64
TestPortForwardFunction · 0.64
TestServerFunction · 0.64
TestCreateDynamicFunction · 0.64
TestCreateFunction · 0.64
TestTemplatePushFunction · 0.64
TestShowFunction · 0.64
TestExpRptyFunction · 0.64