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