I am implementing the network module which use
GossipPubSub in golang. During the implementation, I found it a little difficult to implement the unit test cases because of the fact that both
Subscription are solid class instead of an interface. So my questions is, how to properly implement the unit test case with fake PubSub? Is there any examples that I can follow?