| 914 | } |
| 915 | |
| 916 | type mockOAuthHandler struct { |
| 917 | token *oauth2.Token |
| 918 | authorizeErr error |
| 919 | authorizeCalled bool |
| 920 | } |
| 921 | |
| 922 | func (h *mockOAuthHandler) TokenSource(ctx context.Context) (oauth2.TokenSource, error) { |
| 923 | if h.token == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected