Closed k-capehart closed 2 months ago
t.Fatalf requires a string as it's a wrapper for sprintf
But t.Fatal accepts ...any
https://pkg.go.dev/testing#F.Fatal
So in addition of replacing t.Fatalf(err.Error())
by t.Fatal(err.Error())
You could have used directly t.Fatal(err)
Fatal uses fmt.Sprintln
https://cs.opensource.google/go/go/+/refs/tags/go1.23.1:src/testing/testing.go;l=1080
fmt.Sprintln will call the .Error()
@ccoVeille Ahhh. Thanks for that tip!
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Additional details and impacted files
```diff @@ Coverage Diff @@ ## main #60 +/- ## ======================================= Coverage 87.84% 87.84% ======================================= Files 6 6 Lines 1111 1111 ======================================= Hits 976 976 Misses 69 69 Partials 66 66 ```:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.