MCPcopy Create free account
hub / github.com/docker/compose / On

Method On

pkg/compose/observed_state_test.go:210–212  ·  view source on GitHub ↗
(events ...api.Resource)

Source from the content-addressed store, hash-verified

208}
209
210func (c *capturingEvents) On(events ...api.Resource) {
211 c.resources = append(c.resources, events...)
212}
213
214func TestEmitRunningEvents(t *testing.T) {
215 runningWeb := ObservedContainer{ID: "c-web", Name: "p-web-1", State: container.StateRunning}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected