jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

Use testing.T.Helper() for helper test funcs #747

Open jkomoros opened 4 years ago

jkomoros commented 4 years ago

That marks the function it's called within as just being a helper, so it doesn't print that when the test fails.

See also https://ieftimov.com/post/testing-in-go-golden-files/ for a more thoughtful golden file approach