MCPcopy Create free account
hub / github.com/cli/cli / Verify

Method Verify

internal/prompter/test.go:126–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126func (m *MockPrompter) Verify() {
127 errs := []string{}
128 if len(m.authTokenStubs) > 0 {
129 errs = append(errs, "AuthToken")
130 }
131 if len(m.confirmDeletionStubs) > 0 {
132 errs = append(errs, "ConfirmDeletion")
133 }
134 if len(m.inputHostnameStubs) > 0 {
135 errs = append(errs, "inputHostname")
136 }
137 if len(m.markdownEditorStubs) > 0 {
138 errs = append(errs, "markdownEditorStubs")
139 }
140 if len(errs) > 0 {
141 m.t.Helper()
142 m.t.Errorf("%d unmatched calls to %s", len(errs), strings.Join(errs, ","))
143 }
144}
145
146func AssertOptions(t *testing.T, expected, actual []string) {
147 assert.Equal(t, expected, actual)

Callers

nothing calls this directly

Calls 3

JoinMethod · 0.80
HelperMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected