(t *testing.T)
| 673 | } |
| 674 | |
| 675 | func TestTokenForUserNotFoundErrors(t *testing.T) { |
| 676 | // Given a user has not logged in |
| 677 | authCfg := newTestAuthConfig(t) |
| 678 | |
| 679 | // When we get the token |
| 680 | _, err := authCfg.TokenForUser("github.com", "test-user-1") |
| 681 | |
| 682 | // Then it returns an error |
| 683 | require.EqualError(t, err, "no token found for 'test-user-1'") |
| 684 | } |
| 685 | |
| 686 | func requireKeyWithValue(t *testing.T, cfg *ghConfig.Config, keys []string, value string) { |
| 687 | t.Helper() |
nothing calls this directly
no test coverage detected