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

Struct fakeClient

scaletest/taskstatus/run_internal_test.go:25–33  ·  view source on GitHub ↗

fakeClient implements the client interface for testing

Source from the content-addressed store, hash-verified

23
24// fakeClient implements the client interface for testing
25type fakeClient struct {
26 t *testing.T
27 logger slog.Logger
28
29 // Channels for controlling the behavior
30 workspaceUpdatesCh chan codersdk.Workspace
31 workspaceByOwnerAndNameStatus chan codersdk.ProvisionerJobStatus
32 workspaceByOwnerAndNameErrors chan error
33}
34
35func newFakeClient(t *testing.T) *fakeClient {
36 return &fakeClient{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected