File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,9 @@ def statements(self):
226
226
227
227
return source_lines
228
228
229
+ def no_branch_lines (self ):
230
+ return set ()
231
+
229
232
230
233
def running_sum (seq ):
231
234
total = 0
Original file line number Diff line number Diff line change @@ -137,3 +137,15 @@ def test_string_template(self):
137
137
options = {},
138
138
)
139
139
self .assertEqual (text , "Hello, World!" )
140
+
141
+
142
+ class BranchTest (DjangoPluginTestCase ):
143
+
144
+ def test_with_branch_enabled (self ):
145
+ self .make_template ('Hello' )
146
+ text = self .run_django_coverage (
147
+ options = {'source' : ["." ], 'branch' : True }
148
+ )
149
+ self .assertEqual (text , 'Hello' )
150
+ self .assertEqual (self .get_line_data (), [- 1 , 1 ])
151
+ self .assertEqual (self .get_analysis (), ([1 ], []))
You can’t perform that action at this time.
0 commit comments