Skip to content

Add unit tests for sub handlers #26

Add unit tests for sub handlers

Add unit tests for sub handlers #26

Triggered via push January 10, 2024 21:16
Status Failure
Total duration 1m 50s
Billable time 5m
Artifacts

main.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 4 warnings
Go Linter / lint: cmd/start.go#L10
could not import github.com/gnolang/tx-indexer/fetch (-: # github.com/gnolang/tx-indexer/fetch
Go Linter / lint: fetch/slots.go#L68
undefined: min
Go Linter / lint: cmd/start.go#L10
could not import github.com/gnolang/tx-indexer/fetch (-: # github.com/gnolang/tx-indexer/fetch
Go Linter / lint: fetch/slots.go#L68
undefined: min
Go Linter / lint: cmd/start.go#L10
could not import github.com/gnolang/tx-indexer/fetch (-: # github.com/gnolang/tx-indexer/fetch
Go Linter / lint: fetch/slots.go#L68
undefined: min
Go Linter / lint: cmd/start.go#L10
could not import github.com/gnolang/tx-indexer/fetch (-: # github.com/gnolang/tx-indexer/fetch
Go Linter / lint: fetch/slots.go#L68
undefined: min
Go Linter / lint: cmd/start.go#L10
could not import github.com/gnolang/tx-indexer/fetch (-: # github.com/gnolang/tx-indexer/fetch
Go Linter / lint: fetch/slots.go#L68
undefined: min
Go Test / test-with-race: serve/filters/manager_test.go#L99
cannot use &mocks.MockBlock{…} (value of type *mocks.MockBlock) as *"github.com/gnolang/gno/tm2/pkg/bft/types".Block value in struct literal
Go Test / test-with-race: serve/filters/filter/block_test.go#L31
cannot use &mocks.MockBlock{…} (value of type *mocks.MockBlock) as *types.Block value in argument to f.UpdateWithBlock
Go Test / test-with-race: serve/filters/subscription/block_test.go#L39
cannot use mockBlock (variable of type *mocks.MockBlock) as *types.Block value in argument to blockSubscription.WriteResponse
Go Test / test-with-race
Process completed with exit code 1.
Go Test / test: serve/filters/manager_test.go#L99
cannot use &mocks.MockBlock{…} (value of type *mocks.MockBlock) as *"github.com/gnolang/gno/tm2/pkg/bft/types".Block value in struct literal
Go Test / test: serve/filters/filter/block_test.go#L31
cannot use &mocks.MockBlock{…} (value of type *mocks.MockBlock) as *types.Block value in argument to f.UpdateWithBlock
Go Test / test: serve/filters/subscription/block_test.go#L39
cannot use mockBlock (variable of type *mocks.MockBlock) as *types.Block value in argument to blockSubscription.WriteResponse
Go Test / test
Process completed with exit code 1.
Go Linter / lint: serve/encode/encode.go#L25
exported: func name will be used as encode.EncodeValue by other packages, and that stutters; consider calling this Value (revive)
Go Linter / lint
Restore cache failed: Dependencies file is not found in /home/runner/work/tx-indexer/tx-indexer. Supported file pattern: go.sum
Go Test / test-with-race
Restore cache failed: Dependencies file is not found in /home/runner/work/tx-indexer/tx-indexer. Supported file pattern: go.sum
Go Test / test
Restore cache failed: Dependencies file is not found in /home/runner/work/tx-indexer/tx-indexer. Supported file pattern: go.sum