Yep, sorry that could have been made clearer. I typically have all the tests in an array of structs that way I can add a pointer to a function to actually execute the test and add a name to it for debugging purposes.
This makes adding tests very easy.
Is this C or Go code ?
C, given that the types are before the variables, and the function isn’t declared with func.