synapsecns/sanguine

View on GitHub
agents/agents/executor/db/state_test.go

Summary

Maintainability
B
6 hrs
Test Coverage

Method DBSuite.TestStoreRetrieveState has 116 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (t *DBSuite) TestStoreRetrieveState() {
    t.RunOnAllDBs(func(testDB db.ExecutorDB) {
        rootA := common.BigToHash(big.NewInt(gofakeit.Int64()))
        originA := gofakeit.Uint32()
        nonceA := gofakeit.Uint32()
Severity: Major
Found in agents/agents/executor/db/state_test.go - About 3 hrs to fix

    Method DBSuite.TestGetSnapshotRootsInNonceRange has 73 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (t *DBSuite) TestGetSnapshotRootsInNonceRange() {
        t.RunOnAllDBs(func(testDB db.ExecutorDB) {
            origin := gofakeit.Uint32()
            nonceA := uint32(5)
            nonceB := uint32(10)
    Severity: Minor
    Found in agents/agents/executor/db/state_test.go - About 1 hr to fix

      Method DBSuite.TestGetPotentialSnapshotRoots has 57 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (t *DBSuite) TestGetPotentialSnapshotRoots() {
          t.RunOnAllDBs(func(testDB db.ExecutorDB) {
              origin := gofakeit.Uint32()
              nonceA := uint32(5)
              nonceB := uint32(10)
      Severity: Minor
      Found in agents/agents/executor/db/state_test.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status