Condition Coverage

lib/WebService/GeoPost/Shipping/API.pm
Criterion Covered Total %
condition 10 57 35.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 0 $self->errstr('No shipment ID/format provided') and return
342 0 0 $self->errstr('No id provided') and return
343 0 0 $self->errstr('No format provided') and return
388 0 0 $self->errstr('No id provided') and return
405 0 0 $self->errstr('No shipment ID provided') and return
426 0 0 $self->errstr('No date') and return
446 0 0 $self->errstr('No id provided') and return
464 0 0 $self->errstr('No id provided') and return
465 0 0 $self->errstr('No date provided') and return
486 0 0 $self->errstr('No id provided') and return
507 0 0 $self->errstr('No date provided') and return
543 0 0 $self->errstr('No id provided') and return
651 0 0 $self->errstr("Server response was invalid\n") and return

and 3 conditions

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

or 2 conditions

line l !l condition
614 2 5 $$args{'type'} || 'GET'
623 0 7 $$args{'content_type'} || 'application/json'
624 1 6 $$args{'header'}{'Accept'} || 'application/json'
655 0 0 $$error{'errorType'} || ''
656 0 0 $$error{'obj'} || ''
657 0 0 $$error{'errorCode'} || ''
658 0 0 $$error{'errorMessage'} || ''