| 32 | } |
| 33 | |
| 34 | type MockOAuthDatastore struct { |
| 35 | DoGenerateOAuthState func(context.Context, string, string, int64, string) (string, error) |
| 36 | DoValidateOAuthState func(context.Context, string) (string, string, int64, string, error) |
| 37 | DoGetIDForRemoteUser func(context.Context, string, string, string) (int64, error) |
| 38 | DoCreateUser func(*config.Config, *User, string) error |
| 39 | DoRecordRemoteUserID func(context.Context, int64, string, string, string, string) error |
| 40 | DoGetUserByID func(int64) (*User, error) |
| 41 | } |
| 42 | |
| 43 | var _ OAuthDatastore = &MockOAuthDatastore{} |
| 44 |
nothing calls this directly
no outgoing calls
no test coverage detected