Branch Coverage

blib/lib/Plack/Middleware/Greylist.pm
Criterion Covered Total %
branch 28 36 77.7


line true false branch
28 0 2 unless defined $self->default_rate
30 0 2 unless $self->default_rate =~ /^[1-9][0-9]*$/u
32 0 2 unless defined $self->retry_after
33 0 2 unless $self->retry_after =~ /^[1-9][0-9]*$/u and $self->retry_after > 60
36 2 0 unless ($self->cache)
71 2 0 if (my $greylist = $self->greylist)
83 8 2 unless XXX
89 1 9 if $mask eq 1
92 4 6 if (exists $codes{$rate})
93 4 0 if $mask eq ""
108 47 6 $name ? :
112 3 4 if ($rate == 0 and $rule->[1] and $rule->[1] eq "norobots")
113 2 1 if ($env->{'PATH_INFO'} eq "/robots.txt")
118 41 12 if ($rate >= 0)
123 10 31 $hits > $rate ? :
125 10 31 if ($limit)
130 10 0 if (my $log = $env->{'psgix.logger'}) { }
137 5 5 if ($rate == 0) { }