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

Method Remove

agent/agentcontainers/api_test.go:98–107  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

96}
97
98func (f *fakeContainerCLI) Remove(ctx context.Context, name string) error {
99 f.mu.Lock()
100 defer f.mu.Unlock()
101
102 f.containers.Containers = slice.Filter(f.containers.Containers, func(container codersdk.WorkspaceAgentContainer) bool {
103 return container.ID == name
104 })
105
106 return f.removeErr
107}
108
109// fakeDevcontainerCLI implements the agentcontainers.DevcontainerCLI
110// interface for testing.

Callers

nothing calls this directly

Calls 3

FilterFunction · 0.92
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected