MCPcopy Index your code
hub / github.com/go-task/task / TestPrintTaskName

Function TestPrintTaskName

internal/summary/summary_test.go:55–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestPrintTaskName(t *testing.T) {
56 t.Parallel()
57
58 buffer, l := createDummyLogger()
59 task := &ast.Task{
60 Task: "my-task-name",
61 }
62
63 summary.PrintTask(&l, task)
64
65 assert.Contains(t, buffer.String(), "task: my-task-name\n")
66}
67
68func TestPrintTaskCommandsIfPresent(t *testing.T) {
69 t.Parallel()

Callers

nothing calls this directly

Calls 3

PrintTaskFunction · 0.92
createDummyLoggerFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…