MCPcopy
hub / github.com/cli/cli / hasNoToken

Function hasNoToken

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

Source from the content-addressed store, hash-verified

553}
554
555func hasNoToken(hostname string) tokenAssertion {
556 return func(t *testing.T, cfg gh.Config) {
557 t.Helper()
558
559 token, _ := cfg.Authentication().ActiveToken(hostname)
560 require.Empty(t, token)
561 }
562}
563
564func hasActiveToken(hostname string, expectedToken string) tokenAssertion {
565 return func(t *testing.T, cfg gh.Config) {

Callers 2

Test_logoutRun_ttyFunction · 0.85
Test_logoutRun_nonttyFunction · 0.85

Calls 3

HelperMethod · 0.65
ActiveTokenMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected