MCPcopy Index your code
hub / github.com/devcontainers/cli / testRemoveContainer

Function testRemoveContainer

src/test/dockerUtils.test.ts:67–73  ·  view source on GitHub ↗
(params: PartialExecParameters, nameOrId: string)

Source from the content-addressed store, hash-verified

65});
66
67async function testRemoveContainer(params: PartialExecParameters, nameOrId: string) {
68 await removeContainer(params, nameOrId);
69 const all = await listContainers(params, true);
70 if (all.some(shortId => nameOrId.startsWith(shortId))) {
71 throw new Error('container still exists');
72 }
73}

Callers 1

Calls 2

removeContainerFunction · 0.90
listContainersFunction · 0.90

Tested by

no test coverage detected