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
340 0 0 unless $id
341 0 0 unless $format
367 0 0 if $params
384 0 0 unless $id
400 0 0 unless $id
420 0 0 unless $date
439 0 0 unless $id
456 0 0 unless $id
457 0 0 unless $date
477 0 0 unless $id
497 0 0 unless $date
531 0 0 unless $id
559 4 20 if (ref $$data{$_} eq 'HASH') { }
608 6 1 if $self->geoSession
620 1 6 if ($$args{'data'} and $type =~ /^(POST|PUT)$/)
631 0 7 if $self->debug
633 0 7 if $self->debug
634 7 0 if ($response->code == 200) { }
639 0 7 if $@ and not $$args{'raw_result'}
640 0 7 if ($$result{'error'})
642 0 0 ref $$result{'error'} eq 'ARRAY' ? :
651 1 6 if ($$args{'raw_result'})