type fakeTokenServer … func (f *fakeTokenServer) ServeHTTP(w http.ResponseWriter, req *http.Request) { … } func Test_getCredentials(t *testing.T) { … }
type fakeTokenServer … func (f *fakeTokenServer) ServeHTTP(w http.ResponseWriter, req *http.Request) { … } func Test_getCredentials(t *testing.T) { … }