MCPcopy
hub / github.com/cli/cli / WaitForOutput

Method WaitForOutput

pkg/surveyext/editor_test.go:225–232  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

223}
224
225func (t *testTerminal) WaitForOutput(s string) {
226 for {
227 time.Sleep(time.Millisecond)
228 if strings.Contains(t.stdout.String(), s) {
229 return
230 }
231 }
232}
233
234func (t *testTerminal) Output() string {
235 return t.stdout.String()

Calls 2

ContainsMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected