Condition Coverage

blib/lib/Monitoring/Livestatus.pm
Criterion Covered Total %
condition 22 96 22.9


and 3 conditions

line !l l&&!r l&&r condition
188 26 0 0 $self->{'verbose'} and not defined $self->{'logger'}
216 15 0 11 defined $self->{'CONNECTOR'}{'name'} and not defined $self->{'name'}
219 15 11 0 defined $self->{'CONNECTOR'}{'peer'} and not defined $self->{'peer'}
294 0 1 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 1 0 0 $statement =~ /^Limit:\ (.*)$/mx and not $1 =~ /^\d+$/mx
0 1 0 $statement =~ /^GET\ (.*)$/mx and $1 =~ /^\s*$/mx
0 1 0 $statement =~ /^Columns:\ (.*)$/mx and $1 =~ /,/mx || $1 =~ /^\s*$/mx
812 1 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 1 0 0 $self->{'keepalive'} and defined $self->{'sock'}
1 0 0 $self->{'keepalive'} and defined $self->{'sock'} and $self->{'sock'}->connected
1108 0 0 1 !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 1 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)

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 1 $1 =~ /,/mx || $1 =~ /^\s*$/mx
1 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 1 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
1426 13 6 0 $self->{'name'} || '' . $self->{'peer'}
1468 0 2 0 $self->{'name'} || '' . $self->{'socket'}
1472 0 1 0 $self->{'name'} || '' . $self->{'server'}