diff options
| author | 2024-11-25 15:42:37 +0000 | |
|---|---|---|
| committer | 2024-11-25 15:42:37 +0000 | |
| commit | 3fceb5fc1a83a6ba3ca3c314eef50f0b45cd6009 (patch) | |
| tree | d9fd78a82ec2352aad47d50cd9176e150f600b07 /vendor/github.com/wk8/go-ordered-map/v2/Makefile | |
| parent | [bugfix] notification types missing from link header (#3571) (diff) | |
| download | gotosocial-3fceb5fc1a83a6ba3ca3c314eef50f0b45cd6009.tar.xz | |
bumps uptrace/bun dependencies to v1.2.6 (#3569)
Diffstat (limited to 'vendor/github.com/wk8/go-ordered-map/v2/Makefile')
| -rw-r--r-- | vendor/github.com/wk8/go-ordered-map/v2/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/github.com/wk8/go-ordered-map/v2/Makefile b/vendor/github.com/wk8/go-ordered-map/v2/Makefile new file mode 100644 index 000000000..6e0e18a1b --- /dev/null +++ b/vendor/github.com/wk8/go-ordered-map/v2/Makefile @@ -0,0 +1,32 @@ +.DEFAULT_GOAL := all + +.PHONY: all +all: test_with_fuzz lint + +# the TEST_FLAGS env var can be set to eg run only specific tests +TEST_COMMAND = go test -v -count=1 -race -cover $(TEST_FLAGS) + +.PHONY: test +test: + $(TEST_COMMAND) + +.PHONY: bench +bench: + go test -bench=. + +FUZZ_TIME ?= 10s + +# see https://github.com/golang/go/issues/46312 +# and https://stackoverflow.com/a/72673487/4867444 +# if we end up having more fuzz tests +.PHONY: test_with_fuzz +test_with_fuzz: + $(TEST_COMMAND) -fuzz=FuzzRoundTripJSON -fuzztime=$(FUZZ_TIME) + $(TEST_COMMAND) -fuzz=FuzzRoundTripYAML -fuzztime=$(FUZZ_TIME) + +.PHONY: fuzz +fuzz: test_with_fuzz + +.PHONY: lint +lint: + golangci-lint run |
