fakeContainerCLI implements the agentcontainers.ContainerCLI interface for testing.
| 45 | // fakeContainerCLI implements the agentcontainers.ContainerCLI interface for |
| 46 | // testing. |
| 47 | type fakeContainerCLI struct { |
| 48 | mu sync.Mutex |
| 49 | containers codersdk.WorkspaceAgentListContainersResponse |
| 50 | listErr error |
| 51 | arch string |
| 52 | archErr error |
| 53 | copyErr error |
| 54 | execErr error |
| 55 | stopErr error |
| 56 | removeErr error |
| 57 | } |
| 58 | |
| 59 | func (f *fakeContainerCLI) List(_ context.Context) (codersdk.WorkspaceAgentListContainersResponse, error) { |
| 60 | f.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected