You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
778 B

  1. .PHONY: test fuzz
  2. test:
  3. go test -coverprofile=profile.out -coverpkg=github.com/yuin/goldmark,github.com/yuin/goldmark/ast,github.com/yuin/goldmark/extension,github.com/yuin/goldmark/extension/ast,github.com/yuin/goldmark/parser,github.com/yuin/goldmark/renderer,github.com/yuin/goldmark/renderer/html,github.com/yuin/goldmark/text,github.com/yuin/goldmark/util ./...
  4. cov: test
  5. go tool cover -html=profile.out
  6. fuzz:
  7. which go-fuzz > /dev/null 2>&1 || (GO111MODULE=off go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build; GO111MODULE=off go get -d github.com/dvyukov/go-fuzz-corpus; true)
  8. rm -rf ./fuzz/corpus
  9. rm -rf ./fuzz/crashers
  10. rm -rf ./fuzz/suppressions
  11. rm -f ./fuzz/fuzz-fuzz.zip
  12. cd ./fuzz && go-fuzz-build
  13. cd ./fuzz && go-fuzz