MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / TestNewAuthenticator

Function TestNewAuthenticator

auth_test.go:17–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func 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
25func TestNewAuthenticatorParseURLError(t *testing.T) {
26 viper.Set("spotify.callback_url", "//x:!*)florble")

Callers

nothing calls this directly

Calls 1

NewAuthenticatorFunction · 0.85

Tested by

no test coverage detected