(t *testing.T)
| 15 | ) |
| 16 | |
| 17 | func TestNewAuthenticator(t *testing.T) { |
| 18 | viper.Set("spotify.callback_url", "http://localhost:8732/callback") |
| 19 | viper.Set("spotify.client_id", "client_id") |
| 20 | viper.Set("spotify.client_secret", "client_secret") |
| 21 | _, err := NewAuthenticator() |
| 22 | assert.NoError(t, err) |
| 23 | } |
| 24 | |
| 25 | func TestNewAuthenticatorParseURLError(t *testing.T) { |
| 26 | viper.Set("spotify.callback_url", "//x:!*)florble") |
nothing calls this directly
no test coverage detected