1 // Metadata section 2 // CHECK: {"version":"{{[0-9]\.[0-9]\.[0-9]}}","type":"llvm.coverage.json.export","data":[ 3 4 // Open Export 5 // CHECK-SAME: {"files":[ 6 7 // File Object 8 // CHECK-SAME: {"filename":"{{[^"]+}}universal-binary.c", 9 // CHECK-SAME: "segments":[ 10 // CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}], 11 // CHECK-SAME: "expansions":[], 12 13 // Verify the Summary Section for the first file 14 // CHECK-SAME: "summary":{ 15 // CHECK-SAME: "lines":{"count":1,"covered":1,"percent":100}, 16 // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, 17 // CHECK-SAME: "regions":{"count":1,"covered":1,"notcovered":0,"percent":100}} 18 19 // Close Files Array 20 // CHECK-SAME: ], 21 22 // Functions List 23 // CHECK-SAME: "functions":[ 24 // CHECK-SAME: {"name":"main","count":100,"regions":[ 25 // CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}], 26 // CHECK-SAME: "filenames":["{{[^"]+}}universal-binary.c"] 27 // CHECK-SAME: }], 28 29 // Full Export Summary 30 // CHECK-SAME: "totals":{ 31 // CHECK-SAME: "lines":{"count":1,"covered":1,"percent":100}, 32 // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100}, 33 // CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100}, 34 // CHECK-SAME: "regions":{"count":1,"covered":1,"notcovered":0,"percent":100} 35 36 // Close the export object, data array, and root object 37 // CHECK-SAME: }]} 38