Condition Coverage

blib/lib/Catmandu/Importer/Pure.pm
Criterion Covered Total %
condition 22 71 30.9


and 3 conditions

line !l l&&!r l&&r condition
57 1 1 22 $self->base and $self->endpoint
2 1 21 $self->base and $self->endpoint and $self->apiKey
60 19 1 1 $self->user and not $self->password
63 18 1 1 $self->filter and not is_code_ref($self->filter)
84 0 16 0 not $self->fullResponse and $self->post_xml
85 0 0 0 defined $options->{'size'} and $options->{'size'} == 0
90 0 15 1 not $self->fullResponse and $options->{'offset'}
116 1 1 23 is_string($handler) and not is_number($handler)
154 0 0 0 $res->status >= 500 and $tries--
0 0 0 $res->status >= 500 and $tries-- and sleep 10
161 0 0 0 $res->content and $res->content =~ /<\?xml/
178 0 0 0 $options and %$options
191 0 0 0 not $self->fullResponse and $self->post_xml
244 0 0 0 not $self->_next_url and $self->_total_size
0 0 0 not $self->_next_url and $self->_total_size and $self->_start + $self->_n >= $self->_total_size

or 2 conditions

line l !l condition
131 2 0 $handler ||= ''
241 0 0 $self->_nextRecordSet || (return)
278 0 0 $t =~ s/\A\s+// || 0
0 0 $t =~ s/\s+\Z// || 0

or 3 conditions

line l !l&&r !l&&!r condition
85 0 0 0 $options->{'offset'} or $options->{'page'}
0 0 0 $options->{'offset'} or $options->{'page'} or defined $options->{'size'} and $options->{'size'} == 0
114 1 1 25 is_invocant($handler) or is_code_ref($handler)
161 0 0 0 $res->is_success or $res->content and $res->content =~ /<\?xml/
195 0 0 0 $self->_next_url || $self->_url(\%options)
241 0 0 0 $self->{'_currentRecordSet'} ||= $self->_nextRecordSet || (return)