aantron / bisect_ppx

Code coverage for OCaml and ReScript
http://aantron.github.io/bisect_ppx/demo/
MIT License
302 stars 60 forks source link

Respect [@coverage off] for or-patterns #415

Closed aantron closed 1 year ago

aantron commented 1 year ago

Fixes #414.

As a side-effect, we also don't instrument exception cases with assert false anymore, which was arguably another bug.

cc @nlsandler

I'm going to hold off merging this PR because I want to do some things to the CI first and do a release to npm, but I will merge it right after. You can use this immediately using

opam pin add bisect_ppx 'git+https://github.com/aantron/bisect_ppx.git#or-coverage-off'

...or otherwise getting the or-coverage-off branch.