ipld-eth-state-snapshot/Makefile

14 lines
338 B
Makefile
Raw Permalink Normal View History

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
2022-05-26 10:20:42 +00:00
test: mocks
go clean -testcache && go test -p 1 -v ./...