MCPcopy Index your code
hub / github.com/cli/cli / run

Method run

internal/prompter/huh_prompter_test.go:35–48  ·  view source on GitHub ↗
(t *testing.T, w *io.PipeWriter)

Source from the content-addressed store, hash-verified

33}
34
35func (ix interaction) run(t *testing.T, w *io.PipeWriter) {
36 t.Helper()
37 for _, s := range ix.steps {
38 if s.waitFn != nil {
39 s.waitFn()
40 } else {
41 time.Sleep(s.delay)
42 }
43 if s.bytes != nil {
44 _, err := w.Write(s.bytes)
45 require.NoError(t, err)
46 }
47 }
48}
49
50// Step helpers — each returns a single interactionStep.
51//

Callers 1

runFormFunction · 0.80

Calls 2

HelperMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected