Skip to content

Commit

Permalink
Add additional test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Nov 8, 2022
1 parent 52c7100 commit ff13cf6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/k3s/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ func Test_UnitFindPreferBundledBin(t *testing.T) {
args: []string{"--prefer-bundled-bin=false"},
want: false,
},
{
name: "Argument with space 1",
args: []string{"--prefer-bundled-bin", "1"},
want: true,
},
{
name: "Argument with space 0",
args: []string{"--prefer-bundled-bin", "0"},
want: false,
},
{
name: "Multiple arguments with space true",
args: []string{"--abcd", "--prefer-bundled-bin", "true", "--efgh"},
Expand Down

0 comments on commit ff13cf6

Please sign in to comment.