mirror of
https://github.com/go-task/task.git
synced 2025-06-23 00:38:19 +02:00
feat: pass ast.Call by reference
This commit is contained in:
@ -163,7 +163,7 @@ func TestPrintAllWithSpaces(t *testing.T) {
|
||||
|
||||
summary.PrintTasks(&l,
|
||||
&ast.Taskfile{Tasks: tasks},
|
||||
[]ast.Call{{Task: "t1"}, {Task: "t2"}, {Task: "t3"}})
|
||||
[]*ast.Call{{Task: "t1"}, {Task: "t2"}, {Task: "t3"}})
|
||||
|
||||
assert.True(t, strings.HasPrefix(buffer.String(), "task: t1"))
|
||||
assert.Contains(t, buffer.String(), "\n(task does not have description or summary)\n\n\ntask: t2")
|
||||
|
Reference in New Issue
Block a user