diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-25 11:10:52 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-25 11:10:52 +0300 |
| commit | 541fe26ddb20e00112d0bcbda9249625dfe5d245 (patch) | |
| tree | 5f81675f24bfbb0dc9256cfdf8ce70b319c7fd35 /internal/task/operations_test.go | |
| parent | f3b64f706e2df8ceffafdef916a127e8e22c296b (diff) | |
Fix gofmt and errcheck guardrails for task 2r0
Diffstat (limited to 'internal/task/operations_test.go')
| -rw-r--r-- | internal/task/operations_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/task/operations_test.go b/internal/task/operations_test.go index 7abd4bd..bd2fc44 100644 --- a/internal/task/operations_test.go +++ b/internal/task/operations_test.go @@ -38,7 +38,7 @@ func TestModifyTask(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { err := modifyTask(tt.id, tt.args...) - + // We can't test actual taskwarrior commands without it installed // So we just test the validation if tt.wantErr { @@ -85,7 +85,7 @@ func TestSimpleTaskCommand(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { err := simpleTaskCommand(tt.id, tt.command) - + // We can't test actual taskwarrior commands without it installed // So we just test the validation if tt.wantErr { @@ -102,7 +102,7 @@ func TestSimpleTaskCommand(t *testing.T) { func TestTaskOperationsValidation(t *testing.T) { // Test that all task operations validate IDs invalidID := -1 - + operations := []struct { name string fn func() error @@ -119,7 +119,7 @@ func TestTaskOperationsValidation(t *testing.T) { {"Annotate", func() error { return Annotate(invalidID, "note") }}, {"Denotate", func() error { return Denotate(invalidID, "note") }}, } - + for _, op := range operations { t.Run(op.name, func(t *testing.T) { err := op.fn() @@ -130,4 +130,4 @@ func TestTaskOperationsValidation(t *testing.T) { } }) } -}
\ No newline at end of file +} |
