Condition Coverage

lib/WebService/DPD/API.pm
Criterion Covered Total %
condition 10 57 17.5


and 2 conditions

line l !l condition
135 0 0 $self->errstr('No country code') and return
176 0 0 $self->errstr('No shipping information') and return
192 0 0 $self->errstr('No geoServiceCode') and return
262 0 0 $self->errstr('No data') and return
296 0 0 $self->errstr('No shipment ID/format provided') and return
344 0 0 $self->errstr('No id provided') and return
345 0 0 $self->errstr('No format provided') and return
388 0 0 $self->errstr('No id provided') and return
404 0 0 $self->errstr('No shipment ID provided') and return
424 0 0 $self->errstr('No date') and return
443 0 0 $self->errstr('No id provided') and return
460 0 0 $self->errstr('No id provided') and return
461 0 0 $self->errstr('No date provided') and return
481 0 0 $self->errstr('No id provided') and return
501 0 0 $self->errstr('No date provided') and return
535 0 0 $self->errstr('No id provided') and return
643 0 0 $self->errstr("Server response was invalid\n") and return

and 3 conditions

line !l l&&!r l&&r condition
296 0 0 1 $id and $format
624 6 0 1 $$args{'data'} and $type =~ /^(POST|PUT)$/
643 6 1 0 $@ and not $$args{'raw_result'}

or 2 conditions

line l !l condition
606 2 5 $$args{'type'} || 'GET'
615 0 7 $$args{'content_type'} || 'application/json'
616 1 6 $$args{'header'}{'Accept'} || 'application/json'
647 0 0 $$error{'errorType'} || ''
648 0 0 $$error{'obj'} || ''
649 0 0 $$error{'errorCode'} || ''
650 0 0 $$error{'errorMessage'} || ''