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

Function setRefresher

pkg/cmd/auth/token/token_test.go:521–524  ·  view source on GitHub ↗
(t *testing.T, c gh.Config, r gh.TokenRefresher)

Source from the content-addressed store, hash-verified

519}
520
521func setRefresher(t *testing.T, c gh.Config, r gh.TokenRefresher) {
522 t.Helper()
523 c.Authentication().(*config.AuthConfig).SetTokenRefresher(r)
524}
525
526// renewingRefresher returns a mock that renews to a fresh, long lived credential and records its calls.
527func renewingRefresher(accessToken, refreshToken string) *ghmock.TokenRefresherMock {

Callers 1

TestTokenRunRefreshFunction · 0.70

Calls 3

HelperMethod · 0.65
SetTokenRefresherMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected