agents/agents/executor/db/state_test.go
Method DBSuite.TestStoreRetrieveState
has 116 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (t *DBSuite) TestStoreRetrieveState() {
t.RunOnAllDBs(func(testDB db.ExecutorDB) {
rootA := common.BigToHash(big.NewInt(gofakeit.Int64()))
originA := gofakeit.Uint32()
nonceA := gofakeit.Uint32()
Method DBSuite.TestGetSnapshotRootsInNonceRange
has 73 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (t *DBSuite) TestGetSnapshotRootsInNonceRange() {
t.RunOnAllDBs(func(testDB db.ExecutorDB) {
origin := gofakeit.Uint32()
nonceA := uint32(5)
nonceB := uint32(10)
Method DBSuite.TestGetPotentialSnapshotRoots
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (t *DBSuite) TestGetPotentialSnapshotRoots() {
t.RunOnAllDBs(func(testDB db.ExecutorDB) {
origin := gofakeit.Uint32()
nonceA := uint32(5)
nonceB := uint32(10)