(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func TestUITask_withPersistentLogging(t *testing.T) { |
| 37 | var logBuf bytes.Buffer |
| 38 | |
| 39 | ctx := logging.WithLogger(context.Background(), logging.ToWriter(&logBuf)) |
| 40 | |
| 41 | m := uitask.NewManager(true) |
| 42 | testUITaskInternal(t, ctx, m) |
| 43 | require.Equal(t, "first\nthis is ignored\niii\nwww\neee\n", logBuf.String()) |
| 44 | } |
| 45 | |
| 46 | //nolint:thelper |
| 47 | func testUITaskInternal(t *testing.T, ctx context.Context, m *uitask.Manager) { |
nothing calls this directly
no test coverage detected