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

Method AuthToken

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

Source from the content-addressed store, hash-verified

55}
56
57func (m *MockPrompter) AuthToken() (string, error) {
58 var s authTokenStub
59 if len(m.authTokenStubs) == 0 {
60 return "", NoSuchPromptErr("AuthToken")
61 }
62 s = m.authTokenStubs[0]
63 m.authTokenStubs = m.authTokenStubs[1:len(m.authTokenStubs)]
64 return s.fn()
65}
66
67func (m *MockPrompter) ConfirmDeletion(prompt string) error {
68 var s confirmDeletionStub

Callers

nothing calls this directly

Calls 1

NoSuchPromptErrFunction · 0.85

Tested by

no test coverage detected