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