MCPcopy Create free account
hub / github.com/gogs/gogs / MockProvider

Struct MockProvider

internal/database/mocks_gen.go:17–33  ·  view source on GitHub ↗

MockProvider is a mock implementation of the Provider interface (from the package gogs.io/gogs/internal/auth) used for unit testing.

Source from the content-addressed store, hash-verified

15// MockProvider is a mock implementation of the Provider interface (from the
16// package gogs.io/gogs/internal/auth) used for unit testing.
17type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected