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

Method ActiveTokenWithRefresh

pkg/cmd/agent-task/capi/client_test.go:31–35  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

29}
30
31func (s *sequencedAuthConfig) ActiveTokenWithRefresh(hostname string) (gh.Credential, gh.RefreshStatus, error) {
32 cred := s.creds[len(s.calls)]
33 s.calls = append(s.calls, hostname)
34 return cred, s.status, s.err
35}
36
37func TestCAPITransportResolvesFreshTokenPerRequest(t *testing.T) {
38 base := &recordingRoundTripper{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected