waku/v2/protocol/subscription/subscriptions_map_test.go
Function TestSubscriptionsNotify
has 101 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestSubscriptionsNotify(t *testing.T) {
fmap := NewSubscriptionMap(utils.Logger())
p1 := createPeerID(t)
p2 := createPeerID(t)
var subscriptions = []*SubscriptionDetails{
Function TestSubscriptionsNotify
has 5 return statements (exceeds 4 allowed). Open
Open
func TestSubscriptionsNotify(t *testing.T) {
fmap := NewSubscriptionMap(utils.Logger())
p1 := createPeerID(t)
p2 := createPeerID(t)
var subscriptions = []*SubscriptionDetails{