mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
c3211a4807
When we load coverage data from multiple objects, we don't have a way to attribute a source object to a function record. Printing out the object filename next to the source filename is already not very useful: soon, it'll actually become misleading. Stop printing out the filename now. llvm-svn: 285043
39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
// Metadata section
|
|
// CHECK: {"version":"{{[0-9]\.[0-9]\.[0-9]}}","type":"llvm.coverage.json.export","data":[
|
|
|
|
// Open Export
|
|
// CHECK-SAME: {"files":[
|
|
|
|
// File Object
|
|
// CHECK-SAME: {"filename":"{{[^"]+}}showRegionMarkers.cpp",
|
|
// CHECK-SAME: "segments":[
|
|
// CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}],
|
|
// CHECK-SAME: "expansions":[],
|
|
|
|
// Verify the Summary Section for the first file
|
|
// CHECK-SAME: "summary":{
|
|
// CHECK-SAME: "lines":{"count":21,"covered":17,"percent":80},
|
|
// CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100},
|
|
// CHECK-SAME: "regions":{"count":10,"covered":7,"notcovered":3,"percent":70}}
|
|
|
|
// Close Files Array
|
|
// CHECK-SAME: ],
|
|
|
|
// Functions List
|
|
// CHECK-SAME: "functions":[
|
|
// CHECK-SAME: {"name":"main","count":1111000,"regions":[
|
|
// CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}
|
|
// CHECK-SAME: ],
|
|
// CHECK-SAME: "filenames":["{{[^"]+}}showRegionMarkers.cpp"]
|
|
// CHECK-SAME: }],
|
|
|
|
// Full Export Summary
|
|
// CHECK-SAME: "totals":{
|
|
// CHECK-SAME: "lines":{"count":21,"covered":17,"percent":80},
|
|
// 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
|
|
// CHECK-SAME: }]}
|