3 ms·
Not in the standard library in general, but in the testing package it's the convention. There's testing.B, testing.M, testing.T, and testing.F, and *testing.TB.
by unfunco 5y ago
Not in the standard library in general, but in the testing package it's the convention. There's testing.B, testing.M, testing.T, and testing.F, and *testing.TB.
https://pkg.go.dev/testing#pkg-types https://pkg.go.dev/testing#pkg-types
- meetups323 5y agoWell that's a hard pass from me. I always knew go was quick to compile, I didn't know the lengths they were willing to go to achieve that! Case in point: it's not TB, as you stated, but rather PB.
- joshuamorton 5y agoThere's both, TestBase and ParallelBenchmark.
- IshKebab 5y agoHe's still right about that. Ridiculous naming. Fortunately the rest of Go uses sensible names so I think it would be silly to avoid Go just because of that.