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

Method ExpectMatch

pty/ptytest/ptytest.go:155–157  ·  view source on GitHub ↗

Deprecated: use ExpectMatchContext instead. This uses a background context, so will not respect the test's context.

(str string)

Source from the content-addressed store, hash-verified

153// Deprecated: use ExpectMatchContext instead.
154// This uses a background context, so will not respect the test's context.
155func (e *outExpecter) ExpectMatch(str string) string {
156 return e.expectMatchContextFunc(str, e.ExpectMatchContext)
157}
158
159func (e *outExpecter) ExpectRegexMatch(str string) string {
160 return e.expectMatchContextFunc(str, e.ExpectRegexMatchContext)

Callers 15

TestCliTemplateCreateFunction · 0.45
TestUserDeleteFunction · 0.45
TestTemplateDeleteFunction · 0.45
TestGitAskpassFunction · 0.45
TestExpTaskListFunction · 0.45
TestExternalAuthFunction · 0.45
TestRenameFunction · 0.45
TestUserListFunction · 0.45
TestUserShowFunction · 0.45
TestServerFunction · 0.45

Calls 1

Tested by 15

TestCliTemplateCreateFunction · 0.36
TestUserDeleteFunction · 0.36
TestTemplateDeleteFunction · 0.36
TestGitAskpassFunction · 0.36
TestExpTaskListFunction · 0.36
TestExternalAuthFunction · 0.36
TestRenameFunction · 0.36
TestUserListFunction · 0.36
TestUserShowFunction · 0.36
TestServerFunction · 0.36