Condition Coverage

blib/lib/Monitoring/Livestatus.pm
Criterion Covered Total %
condition 10 99 10.1


and 3 conditions

line !l l&&!r l&&r condition
188 24 0 0 $self->{'verbose'} and not defined $self->{'logger'}
216 14 0 10 defined $self->{'CONNECTOR'}{'name'} and not defined $self->{'name'}
219 14 10 0 defined $self->{'CONNECTOR'}{'peer'} and not defined $self->{'peer'}
294 0 0 0 not $result and $self->{'verbose'}
307 0 0 0 not $opt->{'offset'} and defined $limit
0 0 0 not $opt->{'offset'} and defined $limit and $limit >= 1
679 9 0 0 defined $value and $value ne ''
726 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
812 0 0 0 defined $opt->{'header'} and ref $opt->{'header'} eq 'HASH'
837 0 0 0 defined $body and $body ne ''
926 0 0 0 defined $opt->{'addpeer'} and $opt->{'addpeer'}
930 0 0 0 defined $with_peers and $with_peers == 1
965 0 0 0 $self->{'keepalive'} and defined $self->{'sock'}
0 0 0 $self->{'keepalive'} and defined $self->{'sock'} and $self->{'sock'}->connected
1108 0 0 0 !defined($status) || ($status == 491 || $status == 497 || $status == 500) and $retries < $self->{'retries_on_connection_error'}
1124 0 0 0 defined $@ and $@ =~ /broken\ pipe/mx
1135 0 0 0 $status >= 400 and $self->{'errors_are_fatal'}
1157 0 0 0 $statement and $statement =~ /^COMMAND/mx
1176 0 0 0 $length > 0 and $sock->read(my $buf, $length)
1191 0 0 0 $status >= 400 and $recv

or 3 conditions

line l !l&&r !l&&!r condition
453 0 0 0 not defined $opt->{'columns'} or ref $opt->{'columns'} ne 'ARRAY'
726 0 0 0 $1 =~ /,/mx || $1 =~ /^\s*$/mx
0 0 0 $statement =~ /^GET\ /mx || $statement =~ /^COMMAND\ /mx
778 0 0 0 $statement =~ /^Stats:\ (.*)$/mx or $statement =~ /^StatsGroupBy:\ (.*)$/mx
832 0 0 0 not $status or $status >= 300
1108 0 0 0 !defined($status) || ($status == 491 || $status == 497 || $status == 500)
1115 0 0 0 $status == 491 or $status == 497
0 0 0 $status == 491 or $status == 497 or $status == 500
1429 12 5 0 $self->{'name'} || '' . $self->{'peer'}
1471 0 2 0 $self->{'name'} || '' . $self->{'socket'}
1475 0 1 0 $self->{'name'} || '' . $self->{'server'}