Files
tsnet-proxy/vendor/github.com/tcnksm/go-httpstat/Makefile
2024-11-01 17:43:06 +00:00

27 lines
471 B
Makefile

PACKAGES = $(shell go list ./... | grep -v '/vendor/')
default: test
test-all: vet lint test
test:
go test -v -parallel=4 ${PACKAGES}
test-race:
go test -v -race ${PACKAGES}
vet:
go vet ${PACKAGES}
lint:
@go get github.com/golang/lint/golint
go list ./... | grep -v vendor | xargs -n1 golint
cover:
@go get golang.org/x/tools/cmd/cover
go test -coverprofile=cover.out
go tool cover -html cover.out
rm cover.out
.PHONY: test test-race vet lint cover