ipld-eth-state-snapshot/Makefile
Roy Crihfield c6170f063c
All checks were successful
Test / Run unit and integration tests (pull_request) Successful in 4m25s
CI tests
2023-09-02 19:36:55 +08:00

14 lines
338 B
Makefile

MOCKGEN ?= mockgen
MOCKS_DIR := $(CURDIR)/internal/mocks
mocks: $(MOCKS_DIR)/gen_indexer.go
.PHONY: mocks
$(MOCKS_DIR)/gen_indexer.go:
$(MOCKGEN) --package mocks --destination $@ \
--mock_names Indexer=MockgenIndexer \
github.com/cerc-io/plugeth-statediff/indexer Indexer
test: mocks
go clean -testcache && go test -p 1 -v ./...