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

Function TestDoesNotPrintDependenciesIfMissing

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

Source from the content-addressed store, hash-verified

40}
41
42func TestDoesNotPrintDependenciesIfMissing(t *testing.T) {
43 t.Parallel()
44
45 buffer, l := createDummyLogger()
46 task := &ast.Task{
47 Deps: []*ast.Dep{},
48 }
49
50 summary.PrintTask(&l, task)
51
52 assert.NotContains(t, buffer.String(), "dependencies:")
53}
54
55func TestPrintTaskName(t *testing.T) {
56 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…