I am doing unit tests on Go
and according to some examples a test function is defined like this:
func TestAlgo(t *testing.T) {
...
}
What I want to know is what exactly does the parameter of that function mean?
I've also seen them do something like:
func TestAlgo(*testing.B) {
...
}
What is the difference with the previous parameter?