aboutsummaryrefslogtreecommitdiffstats
path: root/sym_test.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-11-11 11:43:11 -0800
committerRose Hogenson <rosehogenson@posteo.net>2025-11-11 11:43:11 -0800
commit3b1839e979b843ed5c305970d3e5c61816f06a31 (patch)
treed1c8fc7aae799e5d2643fd37b2a9be75f5fb7f11 /sym_test.go
parentbd8bb1246cdad558fca64fdcf6af343905746e29 (diff)
downloadsym-3b1839e979b843ed5c305970d3e5c61816f06a31.tar.zst
Add some comments and fix gofmtHEADmain
Diffstat (limited to 'sym_test.go')
-rw-r--r--sym_test.go22
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) {