66
77 "github.com/stretchr/testify/assert"
88
9+ "github.com/go-task/task/v3"
910 "github.com/go-task/task/v3/args"
1011 "github.com/go-task/task/v3/taskfile/ast"
1112)
@@ -15,20 +16,20 @@ func TestArgs(t *testing.T) {
1516
1617 tests := []struct {
1718 Args []string
18- ExpectedCalls []* ast .Call
19+ ExpectedCalls []* task .Call
1920 ExpectedGlobals * ast.Vars
2021 }{
2122 {
2223 Args : []string {"task-a" , "task-b" , "task-c" },
23- ExpectedCalls : []* ast .Call {
24+ ExpectedCalls : []* task .Call {
2425 {Task : "task-a" },
2526 {Task : "task-b" },
2627 {Task : "task-c" },
2728 },
2829 },
2930 {
3031 Args : []string {"task-a" , "FOO=bar" , "task-b" , "task-c" , "BAR=baz" , "BAZ=foo" },
31- ExpectedCalls : []* ast .Call {
32+ ExpectedCalls : []* task .Call {
3233 {Task : "task-a" },
3334 {Task : "task-b" },
3435 {Task : "task-c" },
@@ -56,7 +57,7 @@ func TestArgs(t *testing.T) {
5657 },
5758 {
5859 Args : []string {"task-a" , "CONTENT=with some spaces" },
59- ExpectedCalls : []* ast .Call {
60+ ExpectedCalls : []* task .Call {
6061 {Task : "task-a" },
6162 },
6263 ExpectedGlobals : ast .NewVars (
@@ -70,7 +71,7 @@ func TestArgs(t *testing.T) {
7071 },
7172 {
7273 Args : []string {"FOO=bar" , "task-a" , "task-b" },
73- ExpectedCalls : []* ast .Call {
74+ ExpectedCalls : []* task .Call {
7475 {Task : "task-a" },
7576 {Task : "task-b" },
7677 },
@@ -85,15 +86,15 @@ func TestArgs(t *testing.T) {
8586 },
8687 {
8788 Args : nil ,
88- ExpectedCalls : []* ast .Call {},
89+ ExpectedCalls : []* task .Call {},
8990 },
9091 {
9192 Args : []string {},
92- ExpectedCalls : []* ast .Call {},
93+ ExpectedCalls : []* task .Call {},
9394 },
9495 {
9596 Args : []string {"FOO=bar" , "BAR=baz" },
96- ExpectedCalls : []* ast .Call {},
97+ ExpectedCalls : []* task .Call {},
9798 ExpectedGlobals : ast .NewVars (
9899 & ast.VarElement {
99100 Key : "FOO" ,
0 commit comments