Condition Coverage

blib/lib/Net/SNPP/Server.pm
Criterion Covered Total %
condition 22 68 32.3


and 3 conditions

line !l l&&!r l&&r condition
337 0 0 15 $timeout == 0 and my $input = $client->getline
376 0 0 2 $valid_pgr_id and $valid_pin
391 0 0 1 $key and $key eq 'MESS'
0 1 0 $key and $key eq 'MESS' and defined $$page{'mess'}
436 0 1 0 $res and exists $$page{'twoway'}
476 0 0 1 defined $buffer && length $buffer
492 0 1 0 defined $cmd[0] and $cmd[0] == 1 || $cmd[0] == 0
506 0 0 1 defined $cmd[0] and not $cmd[0] =~ /[^0-9]/
0 1 0 defined $cmd[0] and not $cmd[0] =~ /[^0-9]/ and length $cmd[0] == 12 || length $cmd[0] == 14
542 0 0 4 not $cmd[0] =~ /[^0-9]/ and length $cmd[0] < 3
0 0 4 not $cmd[0] =~ /[^0-9]/ and length $cmd[0] < 3 and length $cmd[1] >= 1
0 0 4 not $cmd[0] =~ /[^0-9]/ and length $cmd[0] < 3 and length $cmd[1] >= 1 and length $cmd[1] < 16
582 14 0 0 $$self{'MaxErrors'} and $errors >= $$self{'MaxErrors'}

or 2 conditions

line l !l condition
187 1 0 $_[1] || 2

or 3 conditions

line l !l&&r !l&&!r condition
67 0 0 2 exists $args{'MultiHomed'} || exists $args{'BindTo'}
93 0 0 0 sockaddr_un($args{'UnixSocket'}) || croak("couldn't get socket address: $!")
97 2 0 0 sockaddr_in($args{'Port'}, $args{'BindTo'}) || croak("couldn't get socket address: $!")
114 0 0 2 $_[0] =~ /\D/ or length $_[0] < 7
396 0 0 1 not defined $cmd[0] or $cmd[0] eq ''
492 1 0 0 $cmd[0] == 1 || $cmd[0] == 0
506 1 0 0 length $cmd[0] == 12 || length $cmd[0] == 14
523 0 0 1 exists $$page{'mess'} or @pgrs > 0
663 0 1 0 not $count_arg or $count > 0