(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestHasNoActiveToken(t *testing.T) { |
| 80 | // Given there are no users logged in for a host |
| 81 | authCfg := newTestAuthConfig(t) |
| 82 | |
| 83 | // When we check if any host has an active token |
| 84 | hasActiveToken := authCfg.HasActiveToken("github.com") |
| 85 | |
| 86 | // Then there is no active token |
| 87 | require.False(t, hasActiveToken, "expected there to be no active token") |
| 88 | } |
| 89 | |
| 90 | func TestTokenStoredInConfig(t *testing.T) { |
| 91 | // Given the user has logged in insecurely |
nothing calls this directly
no test coverage detected