MCPcopy
hub / github.com/cli/cli / newTestSurveyPrompter

Function newTestSurveyPrompter

internal/prompter/accessible_prompter_test.go:895–902  ·  view source on GitHub ↗
(t *testing.T, console *expect.Console)

Source from the content-addressed store, hash-verified

893}
894
895func newTestSurveyPrompter(t *testing.T, console *expect.Console) prompter.Prompter {
896 t.Helper()
897
898 io := newTestVirtualTerminalIOStreams(t, console)
899 io.SetAccessiblePrompterEnabled(false)
900
901 return prompter.New(editorCmd, io)
902}
903
904// failOnExpectError adds an observer that will fail the test in a standardised way
905// if any expectation on the command output fails, without requiring an explicit

Callers 1

TestSurveyPrompterFunction · 0.85

Calls 4

NewFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected