Skip to content

[llvm-cov][MC/DC] Output should list *all* "relevant" test vectors #105679

@Swatinem

Description

@Swatinem

Right now, the output for MC/DC only shows the executed test vectors, it looks a bit like this (cleaned up):

  ------------------
  |  Executed MC/DC Test Vectors:
  |
  |     C1, C2, C3, C4    Result
  |  1 { F,  F,  -,  -  = F      }
  |  2 { F,  T,  F,  F  = F      }
  |  3 { F,  T,  T,  -  = T      }
  |  4 { F,  T,  F,  T  = T      }
  |
  |  C1-Pair: not covered
  |  C2-Pair: covered: (1,3)
  |  C3-Pair: covered: (2,3)
  |  C4-Pair: covered: (2,4)
  |  MC/DC Coverage for Decision: 75.00%
  ------------------

It would be nice to show all the test vectors (the "relevant" ones).
From a developers point of view, I want to see at first glance what I am missing, so I know which test cases I have to add to my test suite to improve the outcome of MC/DC.


Working on #105511, I noticed that this might be a bit more complex to implement, as it would seem that this data is not readily available internally, as opposed to only not being displayed/exported.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions