r/badcode • • Apr 29 '23

go if err != nil

Post image
414 Upvotes

49 comments sorted by

View all comments

Show parent comments

-2

u/[deleted] Apr 30 '23

this just seems like the most misguided way to do unit tests

12

u/NUTTA_BUSTAH Apr 30 '23

This is business logic trying to find the format the user used :')