(t *testing.T, out, errStream *streams.Out)
| 69 | } |
| 70 | |
| 71 | func newMockCli(t *testing.T, out, errStream *streams.Out) *mocks.MockCli { |
| 72 | t.Helper() |
| 73 | cli := mocks.NewMockCli(gomock.NewController(t)) |
| 74 | cli.EXPECT().Out().Return(out).AnyTimes() |
| 75 | cli.EXPECT().Err().Return(errStream).AnyTimes() |
| 76 | return cli |
| 77 | } |
| 78 | |
| 79 | // TestSelectEventProcessor_AutoMode covers the regression from docker/compose#13570: |
| 80 | // auto mode must probe Err() (not Out()) so `docker compose up | tee log` still |
no test coverage detected