Branch Coverage

blib/lib/Text/ParagraphDiff.pm
Criterion Covered Total %
branch 50 82 60.9


line true false branch
41 2 18 if @_
45 1 19 unless @$new_orig
48 1 19 if ($$opt{'plain'}) { }
59 20 0 unless $$opt{'plus_order'}
64 21 0 unless exists $$opt{'escape'}
78 21 0 unless exists $$opt{'escape'}
86 4 16 unless exists $$opt{'sep'}
89 13 7 if @$plus
90 15 5 if @$minus
108 2 38 if (not ref $file) { }
109 2 0 if ($$opt{'string'}) { }
113 0 0 unless open FILE, "< $file"
130 36 24 if ($$_[$i][0] eq $$_[$i + 1][0])
147 20 24 if $$_[0] eq '+'
148 24 20 if $$_[0] eq '-'
165 19 2 unless @$d > $x
166 0 2 if $i - 1 == $$d[$x - 1][1]
191 3 21 if $$total_diff[$pos][0] eq '+'
194 9 7 if ($pos >= $#{$total_diff;})
203 0 7 if $minus_first
207 4 11 if @$min_diff
220 16 5 if $$total_diff[$pos][1]
232 19 2 if ($words_in_line > 0)
237 7 2 unless @$old_count
241 59 6 if $$total_diff[$total][0] ne '-'
242 45 20 if $$total_diff[$total][0] ne '+'
249 15 5 if (@$old_count and $$old_count[0] < $old_count_orig[0])
270 19 28 if ($$sect[0] eq ' ') { }
13 15 elsif ($$sect[0] eq '+') { }
289 0 0 ref $old ? :
292 0 0 ref $new ? :
296 0 0 !ref($old) ? :
297 0 0 !ref($new) ? :
299 0 0 if ($$opt{'plain'})
303 0 0 exists $$opt{'header'} ? :
312 0 0 $$opt{'functionality'} ? :
369 0 0 exists $$opt{'style'} ? :
391 0 0 $$opt{'functionality'} ? :
420 0 0 if (@_ == 3)
421 0 0 if exists $_[2]{'footer'}
422 0 0 unless $_[2]{'plain'}