Skip to content

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

@nlsandler

Description

@nlsandler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions