Branch Coverage

blib/lib/Text/Patch.pm
Criterion Covered Total %
branch 0 58 0.0


line true false branch
16 0 0 ref $_[0] eq 'HASH' ? :
23 0 0 unless $style
24 0 0 unless defined $text
25 0 0 unless defined $diff
33 0 0 @text > 1 ? :
42 0 0 if $lastline eq '\\ No newline at end of file'
55 0 0 if (/^\@\@\s*-([\d,]+)/)
63 0 0 if $hunk{'FROM'} < 0
64 0 0 $pos1 == 0 ? :
0 0 defined $count1 ? :
84 0 0 unless defined $r1 and $type and defined $r2
94 0 0 if $l =~ /$hunk_head/
95 0 0 if $l =~ /^---/
100 0 0 if ($type eq 'a')
129 0 0 if /^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*$/
136 0 0 unless $l =~ /^(?:\*\*\*|---)\s+([\d,]+)\s+(?:\*\*\*|---)/
142 0 0 if $l =~ /^(\*\*\*|---)/
166 0 0 unless defined $c1 or defined $c2
168 0 0 if (defined $c1 and $c1 =~ /^-/) { }
0 0 elsif (defined $c2 and $c2 =~ /^\+/) { }
174 0 0 defined $x1 ? :
193 0 0 defined $pos2 ? :
199 0 0 unless @$hunks
208 0 0 unless s/^([ \-\+])//
210 0 0 if ($1 ne '+')
217 0 0 unless $orig eq $expect
220 0 0 if $1 eq '-'
233 0 0 if ($sep) { }
238 0 0 wantarray ? :