waku-org/go-waku

View on GitHub
waku/v2/protocol/lightpush/waku_lightpush_test.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function TestWakuLightPush has 64 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestWakuLightPush(t *testing.T) {
    testTopic := "/waku/2/go/lightpush/test"
    node1, sub1, host1 := makeWakuRelay(t, testTopic)
    defer node1.Stop()
    defer sub1.Unsubscribe()
Severity: Minor
Found in waku/v2/protocol/lightpush/waku_lightpush_test.go - About 1 hr to fix

    Function TestWakuLightPushCornerCases has 52 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestWakuLightPushCornerCases(t *testing.T) {
        ctx, cancel := context.WithCancel(context.Background())
        defer cancel()
    
        testTopic := "/waku/2/go/lightpush/test"
    Severity: Minor
    Found in waku/v2/protocol/lightpush/waku_lightpush_test.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status