[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / tools / llvm-cov / mcdc-export-json.test
blobc2cebf52db8cc55730f054fdae9588597d5b57ae
1 // RUN: llvm-profdata merge %S/Inputs/mcdc-general.proftext -o %t.profdata
2 // RUN: llvm-cov export --format=text %S/Inputs/mcdc-general.o -instr-profile %t.profdata | FileCheck %s
4 // CHECK: 12,7,12,27,0,5,[true,true,true,true]
5 // CHECK: 15,7,15,13,0,5,[true,true]
6 // CHECK: 15,19,15,25,0,5,[true,false]
7 // CHECK: 18,7,19,15,0,5,[true,true,false,true]
8 // CHECK: "mcdc":{"count":12,"covered":10,"notcovered":2,"percent":83.333333333333343}
10 Instructions for regenerating the test:
12 # cd %S/Inputs
13 cp mcdc-general.cpp /tmp
15 clang -fcoverage-mcdc -fprofile-instr-generate -fcoverage-compilation-dir=. \
16     -fcoverage-mapping /tmp/mcdc-general.cpp -o /tmp/mcdc-const.o
18 mv /tmp/mcdc-general.o %S/Inputs