(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestListTaskWritesEntries(t *testing.T) { |
| 32 | task := NewListTask("example") |
| 33 | task.Entry("1") |
| 34 | |
| 35 | select { |
| 36 | case update, ok := <-task.Updates(): |
| 37 | assert.True(t, ok, |
| 38 | "tasklog: expected ListTask.Updates() to remain open") |
| 39 | assert.Equal(t, "1\n", update.S) |
| 40 | default: |
| 41 | t.Fatal("tasklog: expected task.Updates() to have an update") |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func TestListTaskIsNotThrottled(t *testing.T) { |
| 46 | task := NewListTask("example") |
nothing calls this directly
no test coverage detected