Branch Coverage

blib/lib/Business/cXML/Amount.pm
Criterion Covered Total %
branch 24 24 100.0


line true false branch
154 1 41 if $self->{'_nodeName'} eq "AvailablePrice" and not defined $self->{'type'}
155 2 40 if defined $self->{'type'} and $self->{'_nodeName'} =~ /^(AvailablePrice|Fee|OriginalPrice)$/u
156 2 40 if ($self->{'_nodeName'} eq "TaxAdjustmentDetail")
158 1 1 if defined $self->{'region'}
161 4 38 if ($self->{'_nodeName'} eq "Shipping")
162 1 3 if defined $self->{'tracking_domain'}
163 1 3 if defined $self->{'tracking_id'}
168 1 41 if ($self->{'_nodeName'} eq "FeeAmount")
172 1 41 if not defined $self->{'description'} and $self->{'_nodeName'} =~ /^(Penalty|Shipping|Tax)$/u
175 11 31 if defined $self->{'description'} and $self->{'_nodeName'} =~ /^(AvailablePrice|Penalty|Shipping|SpecialHandlingAmount|Tax)$/u
178 5 37 if ($self->{'_nodeName'} eq "Tax")
181 2 40 if ($self->{'_nodeName'} eq "TaxAdjustment")