Skip to content

Commit

Permalink
fix: fix uts
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan committed Nov 21, 2023
1 parent c3d004e commit f174c4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/build/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestCompileOptions_preSet(t *testing.T) {
Output: "",
},
want: want{
Output: "stdout",
Output: "",
},
},
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import (

"kusionstack.io/kusion/pkg/cmd/apply"
"kusionstack.io/kusion/pkg/cmd/build"
"kusionstack.io/kusion/pkg/cmd/compile"
// we need to import the compile pkg to keep the compile command available
"kusionstack.io/kusion/pkg/cmd/compile" //nolint:staticcheck
"kusionstack.io/kusion/pkg/cmd/deps"
"kusionstack.io/kusion/pkg/cmd/destroy"
"kusionstack.io/kusion/pkg/cmd/env"
Expand Down
18 changes: 7 additions & 11 deletions pkg/generator/kcl/kcl_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,15 @@ func TestGenerateSpec(t *testing.T) {
}

type args struct {
workDir string
filenames []string
settings []string
arguments map[string]string
overrides []string
disableNone bool
overrideAST bool
workDir string
filenames []string
settings []string
arguments map[string]string
}
testArgs := args{
filenames: []string{},
settings: []string{"testdata/kcl.yaml"},
arguments: map[string]string{"image": "nginx:latest"},
disableNone: true,
filenames: []string{},
settings: []string{"testdata/kcl.yaml"},
arguments: map[string]string{"image": "nginx:latest"},
}
tests := []struct {
name string
Expand Down

0 comments on commit f174c4c

Please sign in to comment.