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

Function hasActiveToken

pkg/cmd/auth/logout/logout_test.go:1364–1371  ·  view source on GitHub ↗
(hostname string, expectedToken string)

Source from the content-addressed store, hash-verified

1362}
1363
1364func hasActiveToken(hostname string, expectedToken string) tokenAssertion {
1365 return func(t *testing.T, cfg gh.Config) {
1366 t.Helper()
1367
1368 token := cfg.Authentication().ActiveToken(hostname).Token
1369 require.Equal(t, expectedToken, token)
1370 }
1371}

Callers 2

Test_logoutRun_ttyFunction · 0.85
Test_logoutRun_nonttyFunction · 0.85

Calls 4

EqualMethod · 0.80
HelperMethod · 0.65
ActiveTokenMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected