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

Struct stubAuthConfig

pkg/cmd/agent-task/capi/job_test.go:18–20  ·  view source on GitHub ↗

stubAuthConfig is a test double for the transport's token source. It returns a fixed credential and never simulates a refresh.

Source from the content-addressed store, hash-verified

16// stubAuthConfig is a test double for the transport's token source. It returns a fixed credential and never
17// simulates a refresh.
18type stubAuthConfig struct {
19 cred gh.Credential
20}
21
22func (s stubAuthConfig) ActiveTokenWithRefresh(string) (gh.Credential, gh.RefreshStatus, error) {
23 return s.cred, gh.RefreshStatusUnnecessary, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected