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

Function hasNoToken

pkg/cmd/auth/logout/logout_test.go:1355–1362  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

1353}
1354
1355func hasNoToken(hostname string) tokenAssertion {
1356 return func(t *testing.T, cfg gh.Config) {
1357 t.Helper()
1358
1359 token := cfg.Authentication().ActiveToken(hostname).Token
1360 require.Empty(t, token)
1361 }
1362}
1363
1364func hasActiveToken(hostname string, expectedToken string) tokenAssertion {
1365 return func(t *testing.T, cfg gh.Config) {

Callers 2

Test_logoutRun_ttyFunction · 0.85
Test_logoutRun_nonttyFunction · 0.85

Calls 4

EmptyMethod · 0.80
HelperMethod · 0.65
ActiveTokenMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected