Home | History | Annotate | Download | only in Inputs
      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":"{{[^"]+}}showLineExecutionCounts.cpp",
      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":20,"covered":18,"percent":90},
     16 // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100},
     17 // CHECK-SAME: "regions":{"count":11,"covered":8,"notcovered":3,"percent":72}}}
     18 
     19 // Close Files Array
     20 // CHECK-SAME: ],
     21 
     22 // Functions List
     23 // CHECK-SAME: "functions":[
     24 // CHECK-SAME: {"name":"main","count":161,"regions":[
     25 // CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}
     26 // CHECK-SAME: ],
     27 // CHECK-SAME: "filenames":["{{[^"]+}}showLineExecutionCounts.cpp"]
     28 // CHECK-SAME: }],
     29 
     30 
     31 // Full Export Summary
     32 // CHECK-SAME: "totals":{
     33 // CHECK-SAME: "lines":{"count":20,"covered":18,"percent":90},
     34 // CHECK-SAME: "functions":{"count":1,"covered":1,"percent":100},
     35 // CHECK-SAME: "instantiations":{"count":1,"covered":1,"percent":100},
     36 // CHECK-SAME: "regions":{"count":11,"covered":8,"notcovered":3,"percent":72}}
     37 
     38 // Close the export object, data array, and root object
     39 // CHECK-SAME: }]}
     40