Branch Coverage

blib/lib/Algorithm/Diff/Apply.pm
Criterion Covered Total %
branch 61 80 76.2


line true false branch
34 30 36 if ($op eq '-') { }
39 2 elsif ($op eq '+') { }
50 5 0 wantarray ? :
63 15 2 if ref $_[0] and ref $_[0] eq 'HASH'
67 0 42 if ref $tag
69 0 42 unless ref $diff eq 'ARRAY'
76 0 17 if (scalar keys %diffset < 1)
78 0 0 wantarray ? :
86 17 0 wantarray ? :
106 5 48 if $first_op eq '+'
115 97 114 $op eq '+' ? :
116 40 171 exists $opt{'key_generator'} ? :
133 0 17 unless $args{'diffset'}
134 0 17 unless $args{'opts'}
137 4 13 if ($opt{'optimisers'} or $opt{'optimizers'}) { }
139 0 4 unless $opt{'optimisers'}
140 4 0 unless $opt{'optimizers'}
151 15 17 if (scalar keys %u_alt <= 1)
188 34 49 unless defined $id
208 33 35 if ($$tmp_hunk{'start'} <= $cflict_max) { }
210 33 0 unless exists $cflict{$tmp_id}
213 1 32 if $tmp_max > $cflict_max
235 68 495 if $ignore{$id}
237 278 217 if $#$diff < 0
239 133 84 if (not defined $lo_start or $start < $lo_start)
254 9 27 $#{$dset{$_};} < 0 ? :
262 0 17 unless $args{'opts'}
264 0 17 unless $args{'alts'}
286 20 12 if (scalar keys %alt_txts == 1) { }
314 72 89 if ($$change[0] eq '+') { }
335 0 3 unless defined $opt{'alt_txts'}
352 0 13 unless defined $block
365 3 10 if __hunks_identical($hunk, $h)
379 3 18 unless $$h1{'start'} == $$h2{'start'}
380 3 15 unless $#{$$h1{'changes'};} == $#{$$h2{'changes'};}
385 0 65 unless $op1 eq $op2
386 18 47 if (defined $hash1 and defined $hash2) { }
388 1 17 unless $hash1 eq $hash2
392 5 42 unless $data1 eq $data2
415 0 0 $2 eq '' ? :