(t *testing.T)
| 656 | } |
| 657 | |
| 658 | func TestTokenForUserNotFoundErrors(t *testing.T) { |
| 659 | // Given a user has not logged in |
| 660 | authCfg := newTestAuthConfig(t) |
| 661 | |
| 662 | // When we get the token |
| 663 | _, _, err := authCfg.TokenForUser("github.com", "test-user-1") |
| 664 | |
| 665 | // Then it returns an error |
| 666 | require.EqualError(t, err, "no token found for 'test-user-1'") |
| 667 | } |
| 668 | |
| 669 | func requireKeyWithValue(t *testing.T, cfg *ghConfig.Config, keys []string, value string) { |
| 670 | t.Helper() |
nothing calls this directly
no test coverage detected