MCPcopy Index your code
hub / github.com/docker/docker-agent / collectEvents

Function collectEvents

pkg/runtime/runtime_test.go:849–856  ·  view source on GitHub ↗

--- Tool setup failure handling tests ---

(ch chan Event)

Source from the content-addressed store, hash-verified

847// --- Tool setup failure handling tests ---
848
849func collectEvents(ch chan Event) []Event {
850 n := len(ch)
851 evs := make([]Event, 0, n)
852 for range n {
853 evs = append(evs, <-ch)
854 }
855 return evs
856}
857
858func hasWarningEvent(evs []Event) bool {
859 for _, e := range evs {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected