Search code examples
iosformatllvmcode-coveragecriteria

What coverage criteria are implemented in LLVM Code Coverage / Slather?


I'm using LLVM Code Coverage to determine the code coverage of my iOS app's source code, and after that generate a report using Slather.

I was wondering which of the criteria listed at the code coverage wikipedia, however I have trouble finding this information.

In other words; what criteria does LLVM Code Coverage Mapping Format (or Slather) use to determine the code coverage?

Thanks


Solution

  • LLVM Coverage is at the finer of the wikipedia list, i.e. the condition level.

    For example here: http://lab.llvm.org:8080/coverage/coverage-reports/clang/coverage/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp.html#L659

    You can mouse over each side of the condition line 664 and see how many times each was evaluated.