Created
July 12, 2020 22:39
-
-
Save Coollision/7fcfe650513a065ef50010f9830934bc to your computer and use it in GitHub Desktop.
GOLANG Introduction into Testing: simple helper function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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