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

Method ConfirmDeletion

internal/prompter/test.go:67–75  ·  view source on GitHub ↗
(prompt string)

Source from the content-addressed store, hash-verified

65}
66
67func (m *MockPrompter) ConfirmDeletion(prompt string) error {
68 var s confirmDeletionStub
69 if len(m.confirmDeletionStubs) == 0 {
70 return NoSuchPromptErr("ConfirmDeletion")
71 }
72 s = m.confirmDeletionStubs[0]
73 m.confirmDeletionStubs = m.confirmDeletionStubs[1:len(m.confirmDeletionStubs)]
74 return s.fn(prompt)
75}
76
77func (m *MockPrompter) InputHostname() (string, error) {
78 var s inputHostnameStub

Callers

nothing calls this directly

Calls 1

NoSuchPromptErrFunction · 0.85

Tested by

no test coverage detected