From 81828b8d4bc768b67eff3a3690c8757374119c83 Mon Sep 17 00:00:00 2001 From: Paul Mach Date: Tue, 9 Jan 2024 22:33:35 -0800 Subject: [PATCH] check error because the linter demands it. --- encoding/wkt/unmarshal_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/encoding/wkt/unmarshal_test.go b/encoding/wkt/unmarshal_test.go index c32fc50..ae09cba 100644 --- a/encoding/wkt/unmarshal_test.go +++ b/encoding/wkt/unmarshal_test.go @@ -830,10 +830,14 @@ func TestSplitOnComma(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { var results []string - splitOnComma(tc.input, func(s string) error { + err := splitOnComma(tc.input, func(s string) error { results = append(results, s) return nil }) + if err != nil { + t.Fatalf("impossible error: %v", err) + } + if !reflect.DeepEqual(tc.expected, results) { t.Log(tc.input)