s0rg/fantasyname

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
COP=cover.out

.PHONY: vet lint test test-cover fuzz clean

vet:
    @- go vet ./...

lint: vet
    @- golangci-lint run

test: vet
    @- go test -race -count 1 -v -coverprofile="$(COP)" ./...

test-cover: test
    @- go tool cover -func="$(COP)"

fuzz:
    @- go test -fuzz=Fuzz -fuzztime 1m

clean:
    @- rm -f "$(COP)"