synapsecns/sanguine

View on GitHub
services/explorer/testutil/newtestenv.go

Summary

Maintainability
A
1 hr
Test Coverage

Function NewTestEnvDB has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func NewTestEnvDB(ctx context.Context, t *testing.T, handler metrics.Handler) (db db.ConsumerDB, eventDB scribedb.EventDB, gqlClient *client.Client, logIndex atomic.Int64, cleanup func(), testBackend backends.SimulatedTestBackend, deployManager *DeployManager) {
    t.Helper()
    dbPath := filet.TmpDir(t, "")

    sqliteStore, err := sqlite.NewSqliteStore(ctx, dbPath, handler, false)
Severity: Minor
Found in services/explorer/testutil/newtestenv.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status