I’m curious if there is a way to test functions/methods that contain a go routine. I specifically want to be able to test that the function calls the go routine. Of course, I want to test other elements of the function, so if there are any codebases that can serve as an example for testing multi-threaded functions, that would be appreciated!
I’m not very experienced with writing concurrent code, so not sure if this is possible in the first place or if unit testing is abandoned in favour of integration testing.
Any advice appreciated!