Condition Coverage

blib/lib/Onyphe/Api.pm
Criterion Covered Total %
condition 0 197 0.0


and 3 conditions

line !l l&&!r l&&r condition
54 0 0 0 $global->{'api_unrated_endpoint'} and $username
57 0 0 0 defined $username and defined $apikey
71 0 0 0 defined $total && $total
76 0 0 0 defined $maxpage && $maxpage
81 0 0 0 defined $results && @$results
105 0 0 0 defined $_->{'@category'} and $_->{'@category'} eq "none"
154 0 0 0 defined $params and ref $params eq "HASH"
0 0 0 defined $params and ref $params eq "HASH" and keys %$params
200 0 0 0 defined $params and $params->{'count'}
208 0 0 0 defined $input and not $this_max_page
216 0 0 0 defined $input and not @$results
224 0 0 0 defined $page and defined $maxpage
263 0 0 0 defined $params and ref $params eq "HASH"
0 0 0 defined $params and ref $params eq "HASH" and keys %$params
309 0 0 0 defined $input and not $this_max_page
317 0 0 0 defined $input and not @$results
325 0 0 0 defined $page and defined $maxpage
388 0 0 0 defined $bytes and $bytes =~ /"status":"nok"/
435 0 0 0 defined $params and ref $params eq "HASH"
0 0 0 defined $params and ref $params eq "HASH" and keys %$params
490 0 0 0 defined $params and ref $params eq "HASH"
0 0 0 defined $params and ref $params eq "HASH" and keys %$params
572 0 0 0 defined $filename and -f $filename
776 0 0 0 defined $param and $param->{'aslines'}
987 0 0 0 defined $param and $param->{'aslines'}
1002 0 0 0 defined $docs and @$docs
1016 0 0 0 ref $arg eq "ARRAY" and not ref $arg->[0]
1060 0 0 0 ref $arg eq "ARRAY" and not ref $arg->[0]
1153 0 0 0 defined $k and defined $v

or 2 conditions

line l !l condition
137 0 0 $page ||= 1
138 0 0 $global->{'api_maxpage'} || 1
247 0 0 $page ||= 1
248 0 0 $global->{'api_maxpage'} || 1

or 3 conditions

line l !l&&r !l&&!r condition
53 0 0 0 $global->{'api_unrated_email'} || $self->username
128 0 0 0 $global->{'api_unrated_endpoint'} || $global->{'api_endpoint'} || $self->endpoint
129 0 0 0 $global->{'api_key'} || $self->apikey
135 0 0 0 $cb ||= $self->_cb_request
138 0 0 0 $maxpage ||= $global->{'api_maxpage'} || 1
156 0 0 0 defined $params->{$this} or defined $$params{'api_' . $this}
157 0 0 0 $params->{$this} || $$global{'api_' . $this}
226 0 0 0 $page == $maxpage or $page >= $this_max_page
238 0 0 0 $global->{'api_unrated_endpoint'} || $global->{'api_endpoint'} || $self->endpoint
239 0 0 0 $global->{'api_key'} || $self->apikey
245 0 0 0 $cb ||= $self->_cb_request
248 0 0 0 $maxpage ||= $global->{'api_maxpage'} || 1
265 0 0 0 defined $params->{$this} or defined $$params{'api_' . $this}
266 0 0 0 $params->{$this} || $$global{'api_' . $this}
327 0 0 0 $page == $maxpage or $page >= $this_max_page
408 0 0 0 $global->{'api_unrated_endpoint'} || $global->{'api_endpoint'} || $self->endpoint
409 0 0 0 $global->{'api_key'} || $self->apikey
415 0 0 0 $cb ||= $self->_cb_stream
437 0 0 0 defined $params->{$this} or defined $$params{'api_' . $this}
438 0 0 0 $params->{$this} || $$global{'api_' . $this}
471 0 0 0 $global->{'api_unrated_endpoint'} || $global->{'api_endpoint'} || $self->endpoint
472 0 0 0 $global->{'api_key'} || $self->apikey
478 0 0 0 $cb ||= $self->_cb_stream
492 0 0 0 defined $params->{$this} or defined $$params{'api_' . $this}
493 0 0 0 $params->{$this} || $$global{'api_' . $this}
600 0 0 0 $global->{'api_unrated_endpoint'} || $global->{'api_endpoint'} || $self->endpoint
601 0 0 0 $global->{'api_key'} || $self->apikey
607 0 0 0 $cb ||= $self->_cb_alert
704 0 0 0 $global->{'api_ondemand_endpoint'} || $self->endpoint
705 0 0 0 $global->{'api_ondemand_key'} || $self->apikey
711 0 0 0 $cb ||= $self->_cb_ondemand
910 0 0 0 $global->{'api_asd_endpoint'} || $self->endpoint
911 0 0 0 $global->{'api_asd_key'} || $self->apikey
917 0 0 0 $cb ||= $self->_cb_asd