Branch Coverage

blib/lib/Text/Document.pm
Criterion Covered Total %
branch 23 52 44.2


line true false branch
16 0 5 if ($@) { }
34 0 14 if defined $self{$k}
47 0 7 if $$self{'freqs'}
76 7 0 if ($$self{'lowercase'}) { }
87 0 0 if $$self{'freqs'}
95 0 0 unless $sum > 0
124 0 0 $terms{$_} ? :
126 0 0 unless $unionCardinality > 0
142 1 0 if ($COMPRESS_AVAILABLE and $$self{'compress'})
147 1 0 $compressed ? :
178 1 0 if ($stored_checksum != $computed_checksum)
184 0 1 if ($stored_checksum != $computed_checksum)
200 0 1 if ($header{'p'} ne 'Text::Document')
208 0 1 if ($header{'v'} > $Text::Document::VERSION)
216 0 1 if ($header{'l'} != length $block)
225 0 1 if ($header{'compress'} and not $COMPRESS_AVAILABLE)
232 1 0 if ($header{'compress'})
255 20 6 $$self{'terms'}{$_} ? :
260 8 0 if ((my $unionSize = scalar keys %union) > 0) { }
277 7 1 defined $$Dv{$_} ? :
7 1 defined $$Ev{$_} ? :
286 0 3 if ($nD == 0 or $nE == 0) { }
296 3 3 if defined $$self{'EuclideanNorm'}
318 0 0 defined $$Dv{$_} ? :
324 0 0 defined $$Ev{$_} ? :
343 0 0 if ($nD == 0 or $nE == 0) { }