fakeClient implements the client interface for testing
| 23 | |
| 24 | // fakeClient implements the client interface for testing |
| 25 | type 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 | |
| 35 | func newFakeClient(t *testing.T) *fakeClient { |
| 36 | return &fakeClient{ |
nothing calls this directly
no outgoing calls
no test coverage detected