MCPcopy Create free account
hub / github.com/coder/coder / newFakeClient

Function newFakeClient

scaletest/taskstatus/run_internal_test.go:35–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func newFakeClient(t *testing.T) *fakeClient {
36 return &fakeClient{
37 t: t,
38 workspaceUpdatesCh: make(chan codersdk.Workspace),
39 workspaceByOwnerAndNameStatus: make(chan codersdk.ProvisionerJobStatus),
40 workspaceByOwnerAndNameErrors: make(chan error, 1),
41 }
42}
43
44func (m *fakeClient) initialize(logger slog.Logger) {
45 m.logger = logger

Callers 5

TestRunner_RunFunction · 0.70
TestRunner_CleanupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected