Server Runtime Testing with Golang


Is there any guide regarding testing with Golang similar to what exists for typescript: Heroic Labs Documentation | Testing TypeScript Server Runtime Code with Jest

For example how would one test the ResetLeaderboards endpoint that gets triggered when leaderboards expire.

Hello @BernardoSantos,

You’d need to implement a function with the same interfaces that RegisterLeaderboardReset receives and mock all the arguments in your unit test.

As suggested here you could use some Go library to generate the mocks.