Skip to content

Instantly share code, notes, and snippets.

@Coollision
Created July 12, 2020 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Coollision/7fcfe650513a065ef50010f9830934bc to your computer and use it in GitHub Desktop.
Save Coollision/7fcfe650513a065ef50010f9830934bc to your computer and use it in GitHub Desktop.
GOLANG Introduction into Testing: simple helper function
func isTrue(t *testing.T, b bool) {
t.Helper()
if !b {
t.Fatal()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment