synapsecns/sanguine

View on GitHub
services/scribe/service/indexer/fetcher_test.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method IndexerSuite.TestGetChunkArr has 59 lines of code (exceeds 50 allowed). Consider refactoring.
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)
Severity: Minor
Found in services/scribe/service/indexer/fetcher_test.go - About 1 hr to fix

    Method IndexerSuite.TestFetchLogs has 59 lines of code (exceeds 50 allowed). Consider refactoring.
    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
    Severity: Minor
    Found in services/scribe/service/indexer/fetcher_test.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status