MCPcopy
hub / github.com/git-lfs/git-lfs / TestListTaskWritesEntries

Function TestListTaskWritesEntries

tasklog/list_task_test.go:31–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func 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
45func TestListTaskIsNotThrottled(t *testing.T) {
46 task := NewListTask("example")

Callers

nothing calls this directly

Calls 5

EntryMethod · 0.95
UpdatesMethod · 0.95
NewListTaskFunction · 0.85
FatalMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected