test: replace hand-written mocks with gomock (#63)

This commit is contained in:
Daniel Moran
2021-05-06 10:19:41 -04:00
committed by GitHub
parent c44fec7d6d
commit d995f7d182
24 changed files with 1313 additions and 983 deletions

View File

@ -67,6 +67,9 @@ vet:
go vet ./...
# Testing
mock: ./internal/mock/gen.go
go generate ./internal/mock/
test:
$(GO_TEST) $(GO_TEST_PATHS)
@ -74,4 +77,4 @@ test-race:
$(GO_TEST) -v -race -count=1 $(GO_TEST_PATHS)
### List of all targets that don't produce a file
.PHONY: influx openapi fmt build checkfmt checktidy staticcheck vet test test-race
.PHONY: influx openapi fmt build checkfmt checktidy staticcheck vet mock test test-race