Condition Coverage

blib/lib/NetServer/Generic.pm
Criterion Covered Total %
condition 16 58 27.5


and 3 conditions

line !l l&&!r l&&r condition
740 0 0 0 $all_kids - $busycnt < $spare_servers and $all_kids <= $max_servers
1134 0 2 34 $triggerval ne '' and $triggerval ne '0'
1236 0 0 0 $found_banned and not $found_allowed
1237 0 0 0 $found_allowed and not $found_banned
1238 0 0 0 $found_allowed and $found_banned

or 2 conditions

line l !l condition
595 28 0 $class || 'Server'
613 2 0 $self->start_servers || 5
614 2 0 $self->min_spare_servers || 1
615 2 0 $self->max_servers || 10
616 2 0 $self->server_lifespan || 1000
690 0 0 $self->start_servers || 5
691 0 0 $self->min_spare_servers || 1
692 0 0 $self->max_servers || 10
693 0 0 $self->scoreboard || {}
784 2 0 $self->server_lifespan || 1000
785 0 2 $self->my_age || 0
1023 0 0 ref $self || ' kangaroo '
1129 11 0 $self->trigger || sub { ++$NetServer::Generic::default_trigger; return $NetServer::Generic::default_trigger > 1 ? 0 : 1; }
1295 44 64 ref $val || 'scalar'

or 3 conditions

line l !l&&r !l&&!r condition
800 8 0 0 @ready = $rh->can_read or @err = $rh->has_error(0)
1174 0 1 13 not defined $self->mode or lc $self->mode eq 'forking'
1204 0 0 6 defined $self->forbidden or defined $self->allowed
1215 0 0 0 $peername =~ /^$_$/i or $peeraddr =~ /^$_$/i
1227 0 0 0 $peername =~ /^$_$/i or $peeraddr =~ /^$_$/i