Branch Coverage

blib/lib/Plack/Middleware/MonocerosStatus.pm
Criterion Covered Total %
branch 6 26 23.0


line true false branch
12 2 0 if ($self->allow)
13 2 0 ref $self->allow ? :
18 2 2 if (/:/) { }
24 2 0 if (@ipv4)
29 2 0 if (@ipv6)
39 0 0 if ($self->path and $env->{'PATH_INFO'} eq $self->path)
48 0 0 unless ($self->allowed($env->{'REMOTE_ADDR'}))
52 0 0 unless ($env->{'X_MONOCEROS_WORKER_STATS'} and -f $env->{'X_MONOCEROS_WORKER_STATS'})
56 0 0 unless open my $fh, $env->{'X_MONOCEROS_WORKER_STATS'}
59 0 0 unless ($len)
77 0 0 if ($address =~ /:/)
78 0 0 unless $self->{'__cidr6'}
81 0 0 unless $self->{'__cidr4'}