Branch Coverage

blib/lib/Business/Shipping/Shipment/UPS.pm
Criterion Covered Total %
branch 10 50 20.0


line true false branch
99 0 0 if $package->packaging
102 0 0 if (my $service_nick = $self->service_nick)
106 0 0 if ($dflt_pkg_code_for_svc) { }
116 0 0 if not $package->weight or $package->weight < 0.1
121 0 0 unless $self->to_country
122 0 0 if ($self->to_zip)
123 0 0 if $self->to_zip =~ /^(\d{5})/
128 0 0 if $self->to_country eq 'UK'
139 0 0 if $_[0]->to_canada and $_[0]->offline
140 0 0 if $_[0]->intl and $_[0]->offline
167 0 0 unless $self->from_state
168 0 0 if $self->from_state =~ /^(AK|HI)$/i
198 1 1 if (defined $service)
203 1 0 if ($service_map) { }
222 0 1 unless ($self->to_residential)
223 0 0 if ($self->service_name eq 'Ground Residential') { }
0 0 elsif ($self->service_name eq 'Ground Commercial') { }
254 0 1 unless $service and $type
256 0 1 if $service eq 'shop' and $type eq 'get_map'
280 1 0 if ($type eq 'get_map') { }
281 0 1 if ($service eq $$service_map{'code'}) { }
1 0 elsif (lc $service eq lc $$service_map{'nick'}) { }
0 0 elsif (lc $service eq lc $$service_map{'name'}) { }
291 1 0 if ($match)
298 0 0 if ($$service_map{'code'} eq $service)