I am trying to write testing for my chat API in go, but I am pretty new to testing in go. I can\'t find proper examples on how to test more complex functions. For example I have