Condition Coverage

blib/lib/Monitoring/Livestatus.pm
Criterion Covered Total %
condition 10 108 9.2


and 3 conditions

line !l l&&!r l&&r condition
193 24 0 0 $self->{'verbose'} and not defined $self->{'logger'}
221 14 0 10 defined $self->{'CONNECTOR'}{'name'} and not defined $self->{'name'}
224 14 10 0 defined $self->{'CONNECTOR'}{'peer'} and not defined $self->{'peer'}
299 0 0 0 not $result and $self->{'verbose'}
311 0 0 0 not $opt->{'offset'} and defined $limit
0 0 0 not $opt->{'offset'} and defined $limit and $limit >= 1
683 9 0 0 defined $value and $value ne ''
725 0 0 0 $statement =~ /^Limit:\ (.*)$/mx and not $1 =~ /^\d+$/mx
0 0 0 $statement =~ /^GET\ (.*)$/mx and $1 =~ /^\s*$/mx
0 0 0 $statement =~ /^Columns:\ (.*)$/mx and $1 =~ /,/mx || $1 =~ /^\s*$/mx
811 0 0 0 defined $opt->{'header'} and ref $opt->{'header'} eq 'HASH'
835 0 0 0 defined $body and $body ne ''
924 0 0 0 defined $opt->{'addpeer'} and $opt->{'addpeer'}
928 0 0 0 defined $with_peers and $with_peers == 1
963 0 0 0 $self->{'keepalive'} and defined $self->{'sock'}
0 0 0 $self->{'keepalive'} and defined $self->{'sock'} and $self->{'sock'}->connected
1104 0 0 0 !defined($status) || ($status == 491 || $status == 497 || $status == 500) and $retries < $self->{'retries_on_connection_error'}
1119 0 0 0 defined $@ and $@ =~ /broken\ pipe/mx
1129 0 0 0 $status >= 400 and $self->{'errors_are_fatal'}
1151 0 0 0 $statement and $statement =~ /^COMMAND/mx
1183 0 0 0 $length > 0 and $sock->read(my $buf, $length)
1198 0 0 0 $status >= 400 and $recv

or 3 conditions

line l !l&&r !l&&!r condition
457 0 0 0 not defined $opt->{'columns'} or ref $opt->{'columns'} ne 'ARRAY'
725 0 0 0 $1 =~ /,/mx || $1 =~ /^\s*$/mx
0 0 0 $statement =~ /^GET\ /mx || $statement =~ /^COMMAND\ /mx
777 0 0 0 $statement =~ /^Stats:\ (.*)$/mx or $statement =~ /^StatsGroupBy:\ (.*)$/mx
830 0 0 0 not $status or $status >= 300
1104 0 0 0 !defined($status) || ($status == 491 || $status == 497 || $status == 500)
1110 0 0 0 $status == 491 or $status == 497
0 0 0 $status == 491 or $status == 497 or $status == 500
1137 0 0 0 $@ || $!
0 0 0 $@ || $!
1140 0 0 0 $@ || $!
1438 12 5 0 $self->{'name'} || '' . $self->{'peer'}
1480 0 2 0 $self->{'name'} || '' . $self->{'socket'}
1484 0 1 0 $self->{'name'} || '' . $self->{'server'}