Skip to content

Commit

Permalink
removed all of the test if package exists statements
Browse files Browse the repository at this point in the history
  • Loading branch information
YashdalfTheGray committed Aug 19, 2023
1 parent d366caa commit 0a55140
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,19 @@ all: coverage
# go list is the canonical utility to find go files
GOFILES := $(shell go list -f '{{ join .GoFiles "\n" }}' ./...)

GOACC := $(shell command -v go-acc 2> /dev/null)
GOBENCHDATA := $(shell command -v gobenchdata 2> /dev/null)

test:
go test -covermode=atomic -coverpkg=all ./...

benchmark:
go test -bench=. ./...

benchdata-gen:
ifndef GOBENCHDATA
go get -u go.bobheadxi.dev/gobenchdata
endif
go test -bench . -benchmem ./... | gobenchdata --append --json benchmarks.json

benchdata-serve: benchdata-gen
gobenchdata web serve

coverage: .artifacts-stamp
ifndef GOACC
go get github.com/ory/go-acc
endif
go-acc -o artifacts/c.out ./...
go tool cover -html=artifacts/c.out -o artifacts/coverage.html

Expand Down

0 comments on commit 0a55140

Please sign in to comment.