| 1 | { |
| 2 | "gcovr/format_version": "0.14", |
| 3 | "files": [ |
| 4 | { |
| 5 | "file": "lib.c", |
| 6 | "lines": [ |
| 7 | { |
| 8 | "line_number": 4, |
| 9 | "function_name": "foo", |
| 10 | "block_ids": [], |
| 11 | "count": 2, |
| 12 | "branches": [], |
| 13 | "gcovr/md5": "69fb94284e99eab36821cf19f0ac3b2f" |
| 14 | }, |
| 15 | { |
| 16 | "line_number": 5, |
| 17 | "function_name": "foo", |
| 18 | "block_ids": [ |
| 19 | 2 |
| 20 | ], |
| 21 | "count": 2, |
| 22 | "branches": [ |
| 23 | { |
| 24 | "count": 1, |
| 25 | "fallthrough": true, |
| 26 | "throw": false, |
| 27 | "source_block_id": 2, |
| 28 | "destination_block_id": 3 |
| 29 | }, |
| 30 | { |
| 31 | "count": 1, |
| 32 | "fallthrough": false, |
| 33 | "throw": false, |
| 34 | "source_block_id": 2, |
| 35 | "destination_block_id": 4 |
| 36 | } |
| 37 | ], |
| 38 | "gcovr/md5": "bcb3b1b99a21a2a65ea96effd8a8bb89" |
| 39 | }, |
| 40 | { |
| 41 | "line_number": 6, |
| 42 | "function_name": "foo", |
| 43 | "block_ids": [ |
| 44 | 3 |
| 45 | ], |
| 46 | "count": 1, |
| 47 | "branches": [], |
| 48 | "gcovr/md5": "5d1e6f3017f24bee35e821720c83e4d7" |
| 49 | }, |
| 50 | { |
| 51 | "line_number": 9, |
| 52 | "function_name": "foo", |
| 53 | "block_ids": [ |
| 54 | 4 |
| 55 | ], |
| 56 | "count": 1, |
| 57 | "branches": [], |
| 58 | "gcovr/md5": "4071653b480e72354bcfb2b2e78f92fd" |
| 59 | } |
| 60 | ], |
| 61 | "functions": [ |
| 62 | { |
| 63 | "name": "foo", |
| 64 | "demangled_name": "foo", |
| 65 | "lineno": 4, |
| 66 | "execution_count": 2, |
| 67 | "blocks_percent": 100.0, |
| 68 | "pos": [ |
| 69 | "4:5", |
| 70 | "10:1" |
| 71 | ] |
| 72 | } |
| 73 | ] |
| 74 | }, |
| 75 | { |
| 76 | "file": "test/main.c", |
| 77 | "lines": [ |
| 78 | { |
| 79 | "line_number": 4, |
| 80 | "function_name": "main", |
| 81 | "block_ids": [], |
| 82 | "count": 1, |
| 83 | "branches": [], |
| 84 | "gcovr/md5": "d9d7d650613a8ac26f6dfe250d77e8ea" |
| 85 | }, |
| 86 | { |
| 87 | "line_number": 5, |
| 88 | "function_name": "main", |
| 89 | "block_ids": [ |
| 90 | 2, |
| 91 | 4 |
| 92 | ], |
| 93 | "count": 2, |
| 94 | "branches": [], |
| 95 | "calls": [ |
| 96 | { |
| 97 | "source_block_id": 2, |
| 98 | "destination_block_id": 1, |
| 99 | "returned": 1 |
| 100 | }, |
| 101 | { |
| 102 | "source_block_id": 4, |
| 103 | "destination_block_id": 1, |
| 104 | "returned": 1 |
| 105 | } |
| 106 | ], |
| 107 | "gcovr/md5": "dc768c8e1b15f4a864f2a7eddcdf98d7" |
| 108 | }, |
| 109 | { |
| 110 | "line_number": 7, |
| 111 | "function_name": "main", |
| 112 | "block_ids": [ |
| 113 | 3, |
| 114 | 5, |
| 115 | 6, |
| 116 | 7, |
| 117 | 8 |
| 118 | ], |
| 119 | "count": 2, |
| 120 | "branches": [ |
| 121 | { |
| 122 | "count": 1, |
| 123 | "fallthrough": true, |
| 124 | "throw": false, |
| 125 | "source_block_id": 3, |
| 126 | "destination_block_id": 4 |
| 127 | }, |
| 128 | { |
| 129 | "count": 0, |
| 130 | "fallthrough": false, |
| 131 | "throw": false, |
| 132 | "source_block_id": 3, |
| 133 | "destination_block_id": 7 |
| 134 | }, |
| 135 | { |
| 136 | "count": 0, |
| 137 | "fallthrough": true, |
| 138 | "throw": false, |
| 139 | "source_block_id": 5, |
| 140 | "destination_block_id": 6 |
| 141 | }, |
| 142 | { |
| 143 | "count": 1, |
| 144 | "fallthrough": false, |
| 145 | "throw": false, |
| 146 | "source_block_id": 5, |
| 147 | "destination_block_id": 7 |
| 148 | } |
| 149 | ], |
| 150 | "gcovr/md5": "96f3bff1e93bc1ebe1bd098ac20dfee2" |
| 151 | } |
| 152 | ], |
| 153 | "functions": [ |
| 154 | { |
| 155 | "name": "main", |
| 156 | "demangled_name": "main", |
| 157 | "lineno": 4, |
| 158 | "execution_count": 1, |
| 159 | "blocks_percent": 87.5, |
| 160 | "pos": [ |
| 161 | "4:5", |
| 162 | "8:1" |
| 163 | ] |
| 164 | } |
| 165 | ] |
| 166 | } |
| 167 | ] |
| 168 | } |