diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-11-11 11:43:11 -0800 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-11-11 11:43:11 -0800 |
| commit | 3b1839e979b843ed5c305970d3e5c61816f06a31 (patch) | |
| tree | d1c8fc7aae799e5d2643fd37b2a9be75f5fb7f11 /sym_test.go | |
| parent | bd8bb1246cdad558fca64fdcf6af343905746e29 (diff) | |
| download | sym-main.tar.zst | |
Diffstat (limited to 'sym_test.go')
| -rw-r--r-- | sym_test.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sym_test.go b/sym_test.go index 8ae82cc..69bc26a 100644 --- a/sym_test.go +++ b/sym_test.go @@ -113,24 +113,24 @@ func TestCommander_Errors(t *testing.T) { t.Parallel() for _, tc := range []struct { - desc string - cmd []string + desc string + cmd []string wantStatus subcommands.ExitStatus - } {{ - desc: "EncUsageError", - cmd: []string{"enc", "-g", "-p=asdf", "file.txt"}, + }{{ + desc: "EncUsageError", + cmd: []string{"enc", "-g", "-p=asdf", "file.txt"}, wantStatus: subcommands.ExitUsageError, }, { - desc: "EncNoSuchFile", - cmd: []string{"enc", "-p=asdf", "nonexistent-file.txt"}, + desc: "EncNoSuchFile", + cmd: []string{"enc", "-p=asdf", "nonexistent-file.txt"}, wantStatus: subcommands.ExitFailure, }, { - desc: "DecUsageError", - cmd: []string{"dec"}, + desc: "DecUsageError", + cmd: []string{"dec"}, wantStatus: subcommands.ExitUsageError, }, { - desc: "DecNoSuchFile", - cmd: []string{"dec", "-p=asdf", "nonexistent-file.txt.enc"}, + desc: "DecNoSuchFile", + cmd: []string{"dec", "-p=asdf", "nonexistent-file.txt.enc"}, wantStatus: subcommands.ExitFailure, }} { t.Run(tc.desc, func(t *testing.T) { |
