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)
| 38 | // newEventObserver creates the observer and initializes the command |
| 39 | // without running it. Users must call `eventObserver.Start` to start the command. |
| 40 | func 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. |
| 46 | func newEventObserverWithBacklog(t *testing.T, since int64, args ...string) (*eventObserver, error) { |
no test coverage detected
searching dependent graphs…