waku-org/go-waku

View on GitHub
waku/v2/protocol/subscription/subscriptions_map_test.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function TestSubscriptionsNotify has 101 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestSubscriptionsNotify(t *testing.T) {
    fmap := NewSubscriptionMap(utils.Logger())
    p1 := createPeerID(t)
    p2 := createPeerID(t)
    var subscriptions = []*SubscriptionDetails{
Severity: Major
Found in waku/v2/protocol/subscription/subscriptions_map_test.go - About 3 hrs to fix

    Function TestSubscriptionsNotify has 5 return statements (exceeds 4 allowed).
    Open

    func TestSubscriptionsNotify(t *testing.T) {
        fmap := NewSubscriptionMap(utils.Logger())
        p1 := createPeerID(t)
        p2 := createPeerID(t)
        var subscriptions = []*SubscriptionDetails{
    Severity: Major
    Found in waku/v2/protocol/subscription/subscriptions_map_test.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status