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

Function emptyObservedState

pkg/compose/executor_test.go:126–133  ·  pkg/compose/executor_test.go::emptyObservedState

emptyObservedState returns an ObservedState with no containers/networks/volumes, suitable for executor tests that don't exercise service-reference resolution.

(project string)

Source from the content-addressed store, hash-verified

124// emptyObservedState returns an ObservedState with no containers/networks/volumes,
125// suitable for executor tests that don't exercise service-reference resolution.
126func emptyObservedState(project string) *ObservedState {
127 return &ObservedState{
128 ProjectName: project,
129 Containers: map[string][]ObservedContainer{},
130 Networks: map[string]ObservedNetwork{},
131 Volumes: map[string]ObservedVolume{},
132 }
133}
134
135// TestExecutePlanRemoveContainerDropsFromCache verifies that after a container
136// is removed, subsequent service-reference resolution does not see its stale ID.

Callers 3

TestExecutePlanEmptyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected