Branch Coverage

lib/WebService/GeoPost/Shipping/API.pm
Criterion Covered Total %
branch 18 54 33.3


line true false branch
131 0 1 unless $code
172 0 1 unless $shipping
188 0 1 unless $geoServiceCode
258 0 1 unless $data
292 0 1 unless $id and $format
342 0 0 unless $id
343 0 0 unless $format
370 0 0 if $params
388 0 0 unless $id
405 0 0 unless $id
426 0 0 unless $date
446 0 0 unless $id
464 0 0 unless $id
465 0 0 unless $date
486 0 0 unless $id
507 0 0 unless $date
543 0 0 unless $id
571 4 20 if (ref $$data{$_} eq 'HASH') { }
620 6 1 if $self->geoSession
632 1 6 if ($$args{'data'} and $type =~ /^(POST|PUT)$/)
643 0 7 if $self->debug
645 0 7 if $self->debug
646 7 0 if ($response->code == 200) { }
651 0 7 if $@ and not $$args{'raw_result'}
652 0 7 if ($$result{'error'})
654 0 0 ref $$result{'error'} eq 'ARRAY' ? :
663 1 6 if ($$args{'raw_result'})