(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestTokenFromKeyringNonExistent(t *testing.T) { |
| 125 | // Given a keyring that doesn't contain any tokens |
| 126 | authCfg := newTestAuthConfig(t) |
| 127 | |
| 128 | // When we try to get a token from the auth config |
| 129 | _, err := authCfg.TokenFromKeyring("github.com") |
| 130 | |
| 131 | // Then it returns failure bubbling the ErrNotFound |
| 132 | require.ErrorContains(t, err, "secret not found in keyring") |
| 133 | } |
| 134 | |
| 135 | func TestHasEnvTokenWithoutAnyEnvToken(t *testing.T) { |
| 136 | // Given we have no env set |
nothing calls this directly
no test coverage detected