MCPcopy
hub / github.com/go-task/task / TestDoesNotPrintCommandIfMissing

Function TestDoesNotPrintCommandIfMissing

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

Source from the content-addressed store, hash-verified

86}
87
88func TestDoesNotPrintCommandIfMissing(t *testing.T) {
89 t.Parallel()
90
91 buffer, l := createDummyLogger()
92 task := &ast.Task{
93 Cmds: []*ast.Cmd{},
94 }
95
96 summary.PrintTask(&l, task)
97
98 assert.NotContains(t, buffer.String(), "commands")
99}
100
101func TestLayout(t *testing.T) {
102 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…