MockProvider is a mock implementation of the Provider interface (from the package gogs.io/gogs/internal/auth) used for unit testing.
| 15 | // MockProvider is a mock implementation of the Provider interface (from the |
| 16 | // package gogs.io/gogs/internal/auth) used for unit testing. |
| 17 | type MockProvider struct { |
| 18 | // AuthenticateFunc is an instance of a mock function object controlling |
| 19 | // the behavior of the method Authenticate. |
| 20 | AuthenticateFunc *ProviderAuthenticateFunc |
| 21 | // ConfigFunc is an instance of a mock function object controlling the |
| 22 | // behavior of the method Config. |
| 23 | ConfigFunc *ProviderConfigFunc |
| 24 | // HasTLSFunc is an instance of a mock function object controlling the |
| 25 | // behavior of the method HasTLS. |
| 26 | HasTLSFunc *ProviderHasTLSFunc |
| 27 | // SkipTLSVerifyFunc is an instance of a mock function object |
| 28 | // controlling the behavior of the method SkipTLSVerify. |
| 29 | SkipTLSVerifyFunc *ProviderSkipTLSVerifyFunc |
| 30 | // UseTLSFunc is an instance of a mock function object controlling the |
| 31 | // behavior of the method UseTLS. |
| 32 | UseTLSFunc *ProviderUseTLSFunc |
| 33 | } |
| 34 | |
| 35 | // NewMockProvider creates a new mock of the Provider interface. All methods |
| 36 | // return zero values for all results, unless overwritten. |
nothing calls this directly
no outgoing calls
no test coverage detected