waku-org/go-waku

View on GitHub
examples/chat2-reliable/chat_reliability_test.go

Summary

Maintainability
A
1 hr
Test Coverage

Function TestNetworkPartition has 59 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestNetworkPartition(t *testing.T) {
    ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
    defer cancel()

    t.Log("Starting TestMessageRecovery")
Severity: Minor
Found in examples/chat2-reliable/chat_reliability_test.go - About 1 hr to fix

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

    func TestNetworkPartition(t *testing.T) {
        ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
        defer cancel()
    
        t.Log("Starting TestMessageRecovery")
    Severity: Major
    Found in examples/chat2-reliable/chat_reliability_test.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status