File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 24
24
25
25
# "Version 1" had no format number at all.
26
26
# 2: add the meta.format field.
27
- FORMAT_VERSION = 2
27
+ # 3: add region information (functions, classes)
28
+ FORMAT_VERSION = 3
28
29
29
30
class JsonReporter :
30
31
"""A reporter for writing JSON coverage results."""
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def test_branch_coverage(self) -> None:
98
98
expected_result = {
99
99
'meta' : {
100
100
"branch_coverage" : True ,
101
- "format" : 2 ,
101
+ "format" : 3 ,
102
102
"show_contexts" : False ,
103
103
},
104
104
'files' : {
@@ -150,7 +150,7 @@ def test_simple_line_coverage(self) -> None:
150
150
expected_result = {
151
151
'meta' : {
152
152
"branch_coverage" : False ,
153
- "format" : 2 ,
153
+ "format" : 3 ,
154
154
"show_contexts" : False ,
155
155
},
156
156
'files' : {
@@ -184,7 +184,7 @@ def test_regions_coverage(self) -> None:
184
184
expected_result = {
185
185
"meta" : {
186
186
"branch_coverage" : False ,
187
- "format" : 2 ,
187
+ "format" : 3 ,
188
188
"show_contexts" : False ,
189
189
},
190
190
"files" : {
@@ -407,7 +407,7 @@ def test_branch_regions_coverage(self) -> None:
407
407
},
408
408
"meta" : {
409
409
"branch_coverage" : True ,
410
- "format" : 2 ,
410
+ "format" : 3 ,
411
411
"show_contexts" : False ,
412
412
},
413
413
"totals" : {
@@ -441,7 +441,7 @@ def run_context_test(self, relative_files: bool) -> None:
441
441
expected_result = {
442
442
'meta' : {
443
443
"branch_coverage" : False ,
444
- "format" : 2 ,
444
+ "format" : 3 ,
445
445
"show_contexts" : True ,
446
446
},
447
447
'files' : {
You can’t perform that action at this time.
0 commit comments