Skip to content

Commit

Permalink
Merge pull request #471 from zong-zhe/add-run-test-case
Browse files Browse the repository at this point in the history
feat: add a test case for wildcard path
  • Loading branch information
Peefy authored Aug 29, 2024
2 parents 75d8fcb + 407c978 commit 107ee87
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2137,6 +2137,9 @@ func TestRunLocalWithArgs(t *testing.T) {
{[]string{
filepath.Join(pkgPath, "with_args", "run_13", "temp"),
}, []string{}, "", false, "", "temp: non-k-file"},
{[]string{
filepath.Join(pkgPath, "with_args", "run_14", "**", "*.k"),
}, []string{}, "", false, "", "main: main\nmain1: main1\nsub: sub\nsub1: sub1"},
}

for _, test := range tests {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main = "main"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main1 = "main1"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sub = "sub"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sub1 = "sub1"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
temp = "non-k-file"

0 comments on commit 107ee87

Please sign in to comment.