MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / mockProviderWith

Function mockProviderWith

rest/oidc_api_test.go:472–478  ·  view source on GitHub ↗

mockProviderWith returns an OIDCProvider with the given options applied.

(name string, options ...mockProviderOption)

Source from the content-addressed store, hash-verified

470
471// mockProviderWith returns an OIDCProvider with the given options applied.
472func mockProviderWith(name string, options ...mockProviderOption) *auth.OIDCProvider {
473 baseProvider := mockProvider(name)
474 for _, opt := range options {
475 opt.Apply(baseProvider)
476 }
477 return baseProvider
478}
479
480type mockProviderOption interface {
481 Apply(provider *auth.OIDCProvider)

Calls 2

mockProviderFunction · 0.85
ApplyMethod · 0.65

Tested by

no test coverage detected