T.Parallel() In Go Tests
Earlier this year I learned that I could make my Go unit test faster, it turned out I wasn’t using the t.Parallel method to its full potential. Say you have the following package. 1 2 3 4 5 6 7 8 9 package example func PrintHello() string { return "Hello, World!" } func PrintGoodbye() string { return "Goodbye, World!" } With the following tests ...