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

Method AuthToken

internal/prompter/prompter_mock.go:173–183  ·  view source on GitHub ↗

AuthToken calls AuthTokenFunc.

()

Source from the content-addressed store, hash-verified

171
172// AuthToken calls AuthTokenFunc.
173func (mock *PrompterMock) AuthToken() (string, error) {
174 if mock.AuthTokenFunc == nil {
175 panic("PrompterMock.AuthTokenFunc: method is nil but Prompter.AuthToken was just called")
176 }
177 callInfo := struct {
178 }{}
179 mock.lockAuthToken.Lock()
180 mock.calls.AuthToken = append(mock.calls.AuthToken, callInfo)
181 mock.lockAuthToken.Unlock()
182 return mock.AuthTokenFunc()
183}
184
185// AuthTokenCalls gets all the calls that were made to AuthToken.
186// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected