MCPcopy Index your code
hub / github.com/moby/moby / newEventObserver

Function newEventObserver

integration-cli/events_utils_test.go:40–43  ·  view source on GitHub ↗

newEventObserver creates the observer and initializes the command without running it. Users must call `eventObserver.Start` to start the command.

(t *testing.T, args ...string)

Source from the content-addressed store, hash-verified

38// newEventObserver creates the observer and initializes the command
39// without running it. Users must call `eventObserver.Start` to start the command.
40func newEventObserver(t *testing.T, args ...string) (*eventObserver, error) {
41 since := daemonTime(t).Unix()
42 return newEventObserverWithBacklog(t, since, args...)
43}
44
45// newEventObserverWithBacklog creates a new observer changing the start time of the backlog to return.
46func newEventObserverWithBacklog(t *testing.T, since int64, args ...string) (*eventObserver, error) {

Calls 2

daemonTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…