// Put the original credentials func back func RestoreCredentialsFunc() { auth.SetCredentialsFunc(origCredentialsFunc) }
// Override the credentials func for testing func SetupTestCredentialsFunc() { origCredentialsFunc = auth.SetCredentialsFunc(TestCredentialsFunc) }