2022-01-11 23:49:04 +00:00
|
|
|
MOCKS_DIR = $(CURDIR)/mocks
|
|
|
|
mockgen_cmd=mockgen
|
|
|
|
|
2022-05-26 10:20:42 +00:00
|
|
|
.PHONY: mocks test
|
2022-01-11 23:49:04 +00:00
|
|
|
|
|
|
|
mocks: mocks/snapshot/publisher.go
|
|
|
|
|
|
|
|
mocks/snapshot/publisher.go: pkg/types/publisher.go
|
2022-02-09 15:19:10 +00:00
|
|
|
$(mockgen_cmd) -package snapshot_mock -destination $@ -source $< Publisher Tx
|
2022-01-11 23:49:04 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f mocks/snapshot/publisher.go
|
2022-05-23 11:26:48 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
go fmt ./...
|
|
|
|
go build
|
2022-05-26 10:20:42 +00:00
|
|
|
|
|
|
|
test: mocks
|
|
|
|
go clean -testcache && go test -v ./...
|