Branch Coverage

blib/lib/Text/Perfide/PartialAlign.pm
Criterion Covered Total %
branch 21 74 28.3


line true false branch
59 0 0 unless open my $fh, '>', $file
72 0 0 if $$options{'v'}
77 0 0 if ($maximalChunkSize > 0)
82 0 0 if $forced
85 0 0 if $$options{'v'}
90 0 0 if ($$i[0] != $newchain[-1][0] and $$i[1] != $newchain[-1][1]) { }
99 0 0 if $$options{'v'}
118 0 0 if $$options{'v'}
119 0 0 if $$options{'v'}
130 0 0 if $$options{'v'}
159 0 0 if $$pos[0] == $$lastPos[0] and $$pos[1] == $$lastPos[1]
227 0 0 if $count == 1
245 0 0 if defined $$hapaxes{$t}
302 0 0 if ($$a[0] < $$b[0] and $$a[1] < $$b[1]) { }
316 0 0 if ($$a[0] == $$b[0] and $$a[1] == $$b[1])
329 0 0 if ($$a[0] <= $$b[0] and $$a[1] <= $$b[1]) { }
349 0 0 if (less_relaxed($q, $p) and defined $$lattice{$$q[0]}{$$q[1]})
351 0 0 if ($bestLength < $length + $$q[2])
400 1 1 if (defined $corresp_file)
408 6 12 if (defined $$l1Hap{$_})
413 1 4 unless $l1_sum == 1
418 4 10 if (defined $$l2Hap{$_})
423 0 4 unless $l2_sum == 1
445 0 0 if ($ind == 0)
450 0 0 if ($$p[0] - $$cursor[0] > $maximalChunkSize or $$p[1] - $$cursor[1] > $maximalChunkSize)
453 0 0 $ind != 0 ? :
454 0 0 if ($lastPos != $cursor) { }
464 0 0 unless defined $$filteredChain[-1] and $$filteredChain[-1] == $$chain[-1]
483 0 1 unless open my $fh, '<', $filename
496 0 1 unless open $fh, '<', $filename
519 0 0 if (not defined $offsets) { }
550 0 1 unless open my $fh, '<', $filepath
559 0 5 if /^\s*$/
577 1 1 if $$options{'-pml'}
578 1 1 if $$options{'-newline'}
615 5 5 if $$options{'-ws'}
616 5 5 if $$options{'-punct'}