Go RPC Functions testing

Hi. How I can cover my Go RPC functions with tests with mocks (context, logger, db etc.)?
Thanks

Can anyone suggest a way please?

It is possible to mock those. One way is using GitHub - vektra/mockery: A mock code autogenerator for Go

E.g.:

//go:generate mockery --name NakamaInitializer --inpackage --with-expecter --case=underscore
type NakamaInitializer interface {
	runtime.Initializer
}