Condition Coverage

blib/lib/Opsview/RestAPI.pm
Criterion Covered Total %
condition 9 23 39.1


and 3 conditions

line !l l&&!r l&&r condition
165 5 0 0 $self->_client->responseContent =~ /deadlock/iu and $deadlock_attempts < 5
290 5 0 0 $args{'batch_size'} and $args{'params'}{'rows'}

or 2 conditions

line l !l condition
23 6 0 $self->{'url'} ||= 'http://localhost'
25 6 0 $self->{'username'} ||= 'admin'
26 6 0 $self->{'password'} ||= 'initial'
27 0 6 $self->{'debug'} //= 0

or 3 conditions

line l !l&&r !l&&!r condition
146 0 0 5 $self->{'token'} or not defined $args{'api'}
0 5 0 $self->{'token'} or not defined $args{'api'} or not $args{'api'}
5 0 0 $self->{'token'} or not defined $args{'api'} or not $args{'api'} or $args{'api'} =~ /login/u