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":"{{[^"]+}}showHighlightedRanges.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":40,"covered":33,"percent":82},
     16 // CHECK-SAME: "functions":{"count":4,"covered":4,"percent":100},
     17 // CHECK-SAME: "regions":{"count":21,"covered":13,"notcovered":8,"percent":61}}}
     18 
     19 // Close Files Array
     20 // CHECK-SAME: ],
     21 
     22 // Functions List
     23 // CHECK-SAME: "functions":[
     24 // CHECK-SAME: {"name":"_Z4funcv","count":1,"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":["{{[^"]+}}showHighlightedRanges.cpp"]
     28 // CHECK-SAME: },
     29 // CHECK-SAME: {"name":"_Z5func2i","count":1,"regions":[
     30 // CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}
     31 // CHECK-SAME: ],
     32 // CHECK-SAME: "filenames":["{{[^"]+}}showHighlightedRanges.cpp"]
     33 // CHECK-SAME: }
     34 // CHECK-SAME: {"name":"_Z4testv","count":1,"regions":[
     35 // CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}
     36 // CHECK-SAME: ],
     37 // CHECK-SAME: "filenames":["{{[^"]+}}showHighlightedRanges.cpp"]
     38 // CHECK-SAME: }
     39 // CHECK-SAME: {"name":"main","count":1,"regions":[
     40 // CHECK-SAME: {{(\[[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+,[0-9]+\],?)+}}
     41 // CHECK-SAME: ],
     42 // CHECK-SAME: "filenames":["{{.*}}showHighlightedRanges.cpp"]
     43 // CHECK-SAME: }],
     44 
     45 
     46 // Full Export Summary
     47 // CHECK-SAME: "totals":{
     48 // CHECK-SAME: "lines":{"count":40,"covered":33,"percent":82},
     49 // CHECK-SAME: "functions":{"count":4,"covered":4,"percent":100},
     50 // CHECK-SAME: "instantiations":{"count":4,"covered":4,"percent":100},
     51 // CHECK-SAME: "regions":{"count":21,"covered":13,"notcovered":8,"percent":61}}}
     52