Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support [@coverage off] for or-patterns #414

Closed
nlsandler opened this issue May 25, 2023 · 0 comments · Fixed by #415
Closed

Support [@coverage off] for or-patterns #414

nlsandler opened this issue May 25, 2023 · 0 comments · Fixed by #415
Labels

Comments

@nlsandler
Copy link

You can use [@coverage off] to exclude pattern-matching cases, but this doesn't work for or-patterns. Here's a minimal example:

image

I would expect the case

| B | C -> (1 [@coverage off])

to be excluded from code coverage checking, the same as if both cases appeared individually or in a wildcard pattern. Issue #246 mentions that [@coverage off] should be able to exclude or-patterns.

I'm using OCaml version 4.14.1, dune version 3.7.1, bisect_ppx version 2.8.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants