MCPcopy
hub / github.com/docker/compose / anyCancellableContext

Function anyCancellableContext

pkg/compose/kill_test.go:140–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140func anyCancellableContext() gomock.Matcher {
141 //nolint:forbidigo // This creates a context type for gomock matching, not for actual test usage
142 ctxWithCancel, cancel := context.WithCancel(context.Background())
143 cancel()
144 return gomock.AssignableToTypeOf(ctxWithCancel)
145}
146
147func projectFilterListOpt(withOneOff bool) client.ContainerListOptions {
148 filter := projectFilter(strings.ToLower(testProject)).Add("label", compose.ConfigHashLabel)

Callers 9

TestImagesFunction · 0.85
TestCreateMobyContainerFunction · 0.85
TestPsFunction · 0.85
TestKillAllFunction · 0.85
TestKillSignalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected