From 3b1839e979b843ed5c305970d3e5c61816f06a31 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Tue, 11 Nov 2025 11:43:11 -0800 Subject: Add some comments and fix gofmt --- sym_test.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'sym_test.go') 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) { -- cgit v1.3.1