Branch Coverage

blib/lib/Algorithm/Bayesian.pm
Criterion Covered Total %
branch 30 44 68.1


line true false branch
46 0 3 unless my $self = shift()
49 3 0 unless defined $$s{'HAMSTR'}
50 3 0 unless defined $$s{'SPAMSTR'}
64 0 64 unless my $self = shift()
65 0 64 unless my $s = $$self{'storage'}
69 34 30 unless defined $w
82 0 64 unless my $self = shift()
83 0 64 unless my $s = $$self{'storage'}
87 34 30 unless defined $w
100 0 2 unless my $self = shift()
101 0 2 unless my $s = $$self{'storage'}
119 0 2 unless my $self = shift()
120 0 2 unless my $s = $$self{'storage'}
138 0 5 unless my $self = shift()
148 11 12 if $pr > 0.99
149 11 12 if $pr < 0.01
169 0 31 unless my $self = shift()
170 0 31 unless my $w = shift()
176 1 30 if 0 == $totalNum
181 2 28 if 0 == $wSpam and 0 == $wHam
182 13 15 if 0 == $wSpam
183 13 2 if 0 == $wHam