(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestHasNoActiveToken(t *testing.T) { |
| 70 | // Given there are no users logged in for a host |
| 71 | authCfg := newTestAuthConfig(t) |
| 72 | |
| 73 | // When we check if any host has an active token |
| 74 | hasActiveToken := authCfg.HasActiveToken("github.com") |
| 75 | |
| 76 | // Then there is no active token |
| 77 | require.False(t, hasActiveToken, "expected there to be no active token") |
| 78 | } |
| 79 | |
| 80 | func TestTokenStoredInConfig(t *testing.T) { |
| 81 | // Given the user has logged in insecurely |
nothing calls this directly
no test coverage detected