MCPcopy Index your code
hub / github.com/coder/coder / WithLogging

Function WithLogging

coderd/coderdtest/oidctest/idp.go:322–326  ·  view source on GitHub ↗

WithLogging is optional, but will log some HTTP calls made to the IDP.

(t testing.TB, options *slogtest.Options)

Source from the content-addressed store, hash-verified

320
321// WithLogging is optional, but will log some HTTP calls made to the IDP.
322func WithLogging(t testing.TB, options *slogtest.Options) func(*FakeIDP) {
323 return func(f *FakeIDP) {
324 f.logger = slogtest.Make(t, options).Named("fakeidp")
325 }
326}
327
328func WithLogger(logger slog.Logger) func(*FakeIDP) {
329 return func(f *FakeIDP) {

Callers 4

TestAzureAKPKIWithCoderdFunction · 0.92
TestFakeIDPBasicFlowFunction · 0.92
TestIDPIssuerMismatchFunction · 0.92
setupOIDCTestFunction · 0.92

Calls 1

NamedMethod · 0.80

Tested by 4

TestAzureAKPKIWithCoderdFunction · 0.74
TestFakeIDPBasicFlowFunction · 0.74
TestIDPIssuerMismatchFunction · 0.74
setupOIDCTestFunction · 0.74