Condition Coverage

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


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
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 0 0 1 $id and $format
620 6 0 1 $$args{'data'} and $type =~ /^(POST|PUT)$/
639 6 1 0 $@ and not $$args{'raw_result'}

or 2 conditions

line l !l condition
602 2 5 $$args{'type'} || 'GET'
611 0 7 $$args{'content_type'} || 'application/json'
612 1 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'} || ''