waku-org/go-waku

View on GitHub
waku/persistence/utils/store_test.go

Summary

Maintainability
A
1 hr
Test Coverage

Function testQuery has 60 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func testQuery(t *testing.T, db *sql.DB, migrationFn func(*sql.DB, *zap.Logger) error) {
    store, err := persistence.NewDBStore(prometheus.DefaultRegisterer, utils.Logger(), persistence.WithDB(db), persistence.WithMigrations(migrationFn), persistence.WithRetentionPolicy(5, 20*time.Second))
    require.NoError(t, err)

    insertTime := time.Now()
Severity: Minor
Found in waku/persistence/utils/store_test.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status