Branch Coverage

blib/lib/Algorithm/Merge.pm
Criterion Covered Total %
branch 95 108 87.9


line true false branch
19 0 1547 if $Algorithm::Merge::DEBUG
30 1 3 if (@$doca == 0 and @$docb == 0 and @$pivot == 0)
61 23 8 if defined $_[0]
62 30 1 if defined $_[1]
63 30 1 if defined $_[2]
68 26 20 if (@_ == 1) { }
15 5 elsif (@_ == 2) { }
5 0 elsif (@_ == 3) { }
80 14 32 if (@_ == 1) { }
22 10 elsif (@_ == 2) { }
10 0 elsif (@_ == 3) { }
92 13 33 if (@_ == 1) { }
20 13 elsif (@_ == 2) { }
13 0 elsif (@_ == 3) { }
93 13 0 defined $_[0] ? :
96 20 0 defined $_[0] ? :
20 0 defined $_[1] ? :
99 13 0 defined $_[0] ? :
8 5 defined $_[1] ? :
13 0 defined $_[0] ? :
115 0 60 if (wantarray) { }
159 19 41 $b_len < $c_len ? :
185 35 25 if ($bc_different_lengths) { }
195 4 31 if (join(',', @{$diffs{&CB_B};}) ne join(',', @{$diffs{&BC_B};}) or join(',', @{$diffs{&CB_C};}) ne join(',', @{$diffs{&BC_C};}))
208 4 31 if (scalar @bdoc_save or scalar @cdoc_save)
209 2 2 if $target_len < $b_len
210 2 2 if $target_len < $c_len
321 927 1854 if $i == $j
323 534 1320 if @{$diffs{$t};} and $pos[$i] == $diffs{$t}[0]
331 1 308 if @args == 1
334 1 308 unless @args
335 534 1320 defined $_ ? :
336 1103 751 defined $_ ? :
337 745 17 defined $_ ? :
341 745 17 unless $_ == 8
342 259 503 if ($_ eq 4) { }
241 262 elsif ($_ eq 2) { }
245 17 elsif ($_ eq 1) { }
353 1 308 unless @args
363 67 5 if ($pos[$i] < $sizes[$i])
375 24 0 if $Callback_Map[$switch]
406 22 260 if ($$h[0] eq 'c') { }
407 21 1 if defined $$h[2]
408 21 1 if defined $$h[3]
411 18 242 if (@{$conflict[0];} or @{$conflict[1];})
415 140 120 if ($$h[0] eq 'u') { }
41 79 elsif ($$h[0] eq 'o') { }
39 40 elsif ($$h[0] eq 'l') { }
40 0 elsif ($$h[0] eq 'r') { }
419 18 23 if defined $$h[2]
422 20 19 if defined $$h[2]
425 20 20 if defined $$h[3]
431 2 38 if (@{$conflict[0];} or @{$conflict[1];})
435 0 40 if (wantarray)