Branch Coverage

blib/lib/Business/UPS.pm
Criterion Covered Total %
branch 51 56 91.0


line true false branch
42 7 0 if $country
43 1 6 if $length
44 1 6 if $width
45 1 6 if $height
46 1 6 if $oversized
47 1 6 if $rate_chart
48 1 6 if $cod
57 1 6 unless $result->is_success
61 1 5 if (not $ret[5]) { }
78 2 13 unless $tracking_number
96 1 12 unless $result->is_success
100 1 11 if $@
103 1 9 unless $details and ref $details eq "ARRAY" and @$details
107 9 0 if $track->{'packageStatus'}
108 3 6 if $track->{'service'}
110 4 5 if (my $w = $track->{'weight'})
111 3 1 if ($w->{'weight'})
113 2 1 length $unit ? :
117 4 5 if (my $addr = $track->{'shipToAddress'})
119 4 0 if @parts
123 4 5 if $delivery_date
124 1 8 if $track->{'receivedBy'}
125 1 8 if $track->{'leftAt'}
130 4 5 if (my $activities = $track->{'shipmentProgressActivities'})
133 5 0 if $act->{'date'}
134 4 1 if $act->{'time'}
135 4 1 if $act->{'location'}
136 5 0 if $act->{'activityScan'}