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

Method SetFakeCoderd

coderd/coderdtest/oidctest/idp.go:149–153  ·  view source on GitHub ↗
(fakeCoderd func(req *http.Request) (*http.Response, error))

Source from the content-addressed store, hash-verified

147}
148
149func (f *fakeIDPLocked) SetFakeCoderd(fakeCoderd func(req *http.Request) (*http.Response, error)) {
150 f.mu.Lock()
151 defer f.mu.Unlock()
152 f.fakeCoderd = fakeCoderd
153}
154
155func (f *fakeIDPLocked) FakeCoderd() func(req *http.Request) (*http.Response, error) {
156 f.mu.RLock()

Callers 1

SetCoderdCallbackMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected