Condition Coverage

lib/WebService/DPD/API.pm
Criterion Covered Total %
condition 8 57 14.0


and 2 conditions

line l !l condition
131 0 0 $self->errstr('No country code') and return
172 0 0 $self->errstr('No shipping information') and return
188 0 0 $self->errstr('No geoServiceCode') and return
258 0 0 $self->errstr('No data') and return
292 0 1 $self->errstr('No shipment ID/format provided') and return
340 0 0 $self->errstr('No id provided') and return
341 0 0 $self->errstr('No format provided') and return
384 0 0 $self->errstr('No id provided') and return
400 0 0 $self->errstr('No shipment ID provided') and return
420 0 0 $self->errstr('No date') and return
439 0 0 $self->errstr('No id provided') and return
456 0 0 $self->errstr('No id provided') and return
457 0 0 $self->errstr('No date provided') and return
477 0 0 $self->errstr('No id provided') and return
497 0 0 $self->errstr('No date provided') and return
531 0 0 $self->errstr('No id provided') and return
639 0 0 $self->errstr("Server response was invalid\n") and return

and 3 conditions

line !l l&&!r l&&r condition
292 1 0 0 $id and $format
620 5 0 1 $$args{'data'} and $type =~ /^(POST|PUT)$/
639 0 0 0 $@ and not $$args{'raw_result'}

or 2 conditions

line l !l condition
602 2 4 $$args{'type'} || 'GET'
611 0 6 $$args{'content_type'} || 'application/json'
612 0 6 $$args{'header'}{'Accept'} || 'application/json'
643 0 0 $$error{'errorType'} || ''
644 0 0 $$error{'obj'} || ''
645 0 0 $$error{'errorCode'} || ''
646 0 0 $$error{'errorMessage'} || ''