Branch Coverage

blib/lib/Statistics/Shannon.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
214 1 9 if (@_ == 2 and $base <= 1)
220 0 9 if (ref $self eq 'HASH')
223 2 7 if (ref $self eq 'ARRAY') { }
230 0 6 unless $prop
235 5 2 unless (exists $$self{'shannon'} and defined $$self{'shannon'}{$base})
238 0 10 unless $prop{$e}
241 5 0 if (defined $shannon)
244 0 0 if exists $_[0]{'shannon'}
249 1 8 @_ == 2 ? :
254 1 6 if (@_ == 2 and $base <= 1)
258 0 6 if (ref $self eq 'HASH')
262 1 5 $a ? :
263 1 3 $a ? :
4 2 $S > 1 ? :
264 1 3 @_ == 2 ? :
4 2 $S > 1 ? :
265 1 5 defined $E && @_ == 2 ? :