diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-09-19 00:38:29 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-09-19 00:38:29 +0000 |
| commit | 3c46abb2eab8c0e62f3fdf552a6c5d501aed2738 (patch) | |
| tree | 26280e1826dd60f331b3d38e3deb5edee85cbdba /llvm/test/tools/llvm-cov | |
| parent | 9cbf80afc836c800fb7600e282afe4ceb9e66cfc (diff) | |
| download | bcm5719-llvm-3c46abb2eab8c0e62f3fdf552a6c5d501aed2738.tar.gz bcm5719-llvm-3c46abb2eab8c0e62f3fdf552a6c5d501aed2738.zip | |
[llvm-cov] Teach the coverage exporter about instantiation coverage
While we're at it, re-use the logic from CoverageReport to compute
summaries.
llvm-svn: 281877
Diffstat (limited to 'llvm/test/tools/llvm-cov')
6 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/binary-formats.canonical.json b/llvm/test/tools/llvm-cov/Inputs/binary-formats.canonical.json index cd2b052000c..276bbfa4e30 100644 --- a/llvm/test/tools/llvm-cov/Inputs/binary-formats.canonical.json +++ b/llvm/test/tools/llvm-cov/Inputs/binary-formats.canonical.json @@ -32,6 +32,7 @@ // CHECK-SAME: "totals":{ // CHECK-SAME: "lines":{"count":1,"covered":1,"percent":100,"noncode":0}, // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, +// CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100}, // CHECK-SAME: "regions":{"count":1,"covered":1,"notcovered":0,"percent":100}} // Close the export object, data array, and root object diff --git a/llvm/test/tools/llvm-cov/Inputs/highlightedRanges.json b/llvm/test/tools/llvm-cov/Inputs/highlightedRanges.json index 4b441ab770f..0ef3cde17d2 100644 --- a/llvm/test/tools/llvm-cov/Inputs/highlightedRanges.json +++ b/llvm/test/tools/llvm-cov/Inputs/highlightedRanges.json @@ -47,6 +47,7 @@ // CHECK-SAME: "totals":{ // CHECK-SAME: "lines":{"count":40,"covered":26,"percent":65,"noncode":0}, // CHECK-SAME: "functions":{"count":4,"covered":4,"percent":100}, +// CHECK-SAME: "instantiations":{"count":4,"covered":4,"percent":100}, // CHECK-SAME: "regions":{"count":19,"covered":11,"notcovered":8,"percent":57}} // Close the export object, data array, and root object diff --git a/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.json b/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.json index 4beab24e689..ff1c8f59dba 100644 --- a/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.json +++ b/llvm/test/tools/llvm-cov/Inputs/lineExecutionCounts.json @@ -32,6 +32,7 @@ // CHECK-SAME: "totals":{ // CHECK-SAME: "lines":{"count":20,"covered":16,"percent":80,"noncode":0}, // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, +// CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100}, // CHECK-SAME: "regions":{"count":10,"covered":7,"notcovered":3,"percent":70}} // Close the export object, data array, and root object diff --git a/llvm/test/tools/llvm-cov/Inputs/regionMarkers.json b/llvm/test/tools/llvm-cov/Inputs/regionMarkers.json index 7565c9fa5d8..5bc506e4071 100644 --- a/llvm/test/tools/llvm-cov/Inputs/regionMarkers.json +++ b/llvm/test/tools/llvm-cov/Inputs/regionMarkers.json @@ -31,6 +31,7 @@ // CHECK-SAME: "totals":{ // CHECK-SAME: "lines":{"count":21,"covered":17,"percent":80,"noncode":0}, // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, +// CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100}, // CHECK-SAME: "regions":{"count":10,"covered":7,"notcovered":3,"percent":70}} // Close the export object, data array, and root object diff --git a/llvm/test/tools/llvm-cov/Inputs/showExpansions.json b/llvm/test/tools/llvm-cov/Inputs/showExpansions.json index 738c5e1d364..4a5bb9037fa 100644 --- a/llvm/test/tools/llvm-cov/Inputs/showExpansions.json +++ b/llvm/test/tools/llvm-cov/Inputs/showExpansions.json @@ -45,6 +45,7 @@ // CHECK-SAME: "totals":{ // CHECK-SAME: "lines":{"count":17,"covered":15,"percent":88,"noncode":0}, // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, +// CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100}, // CHECK-SAME: "regions":{"count":13,"covered":12,"notcovered":1,"percent":92}} // Close the export object, data array, and root object diff --git a/llvm/test/tools/llvm-cov/Inputs/universal-binary.json b/llvm/test/tools/llvm-cov/Inputs/universal-binary.json index 75d7a2fa83c..edf09f374f7 100644 --- a/llvm/test/tools/llvm-cov/Inputs/universal-binary.json +++ b/llvm/test/tools/llvm-cov/Inputs/universal-binary.json @@ -30,6 +30,7 @@ // CHECK-SAME: "totals":{ // CHECK-SAME: "lines":{"count":1,"covered":1,"percent":100,"noncode":0}, // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, +// CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100}, // CHECK-SAME: "regions":{"count":1,"covered":1,"notcovered":0,"percent":100} // Close the export object, data array, and root object |

