services/scribe/service/indexer/fetcher_test.go
Method IndexerSuite.TestGetChunkArr
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (x *IndexerSuite) TestGetChunkArr() {
chainID := big.NewInt(int64(1))
simulatedChain := geth.NewEmbeddedBackendForChainID(x.GetTestContext(), x.T(), chainID)
simulatedClient, err := backend.DialBackend(x.GetTestContext(), simulatedChain.RPCAddress(), x.metrics)
Nil(x.T(), err)
Method IndexerSuite.TestFetchLogs
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (x *IndexerSuite) TestFetchLogs() {
testBackend := geth.NewEmbeddedBackend(x.GetTestContext(), x.T())
// start an omnirpc proxy and run 10 test transactions so we can batch call blocks 1-10
var wg sync.WaitGroup
var testChainHandler *testutil.TestChainHandler