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

Struct fakeContainerCLI

agent/agentcontainers/api_test.go:47–57  ·  view source on GitHub ↗

fakeContainerCLI implements the agentcontainers.ContainerCLI interface for testing.

Source from the content-addressed store, hash-verified

45// fakeContainerCLI implements the agentcontainers.ContainerCLI interface for
46// testing.
47type 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
59func (f *fakeContainerCLI) List(_ context.Context) (codersdk.WorkspaceAgentListContainersResponse, error) {
60 f.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected