Branch Coverage

blib/lib/Interchange6/Schema/Result/Tax.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
230 2 13 unless defined $args->{'price'}
234 1 12 unless $args->{'price'} =~ /^(\d+)*(\.\d+)*$/
236 1 11 if ($args->{'tax_included'}) { }
248 5 7 if ($self->rounding) { }
256 2 3 if ($self->rounding eq 'c') { }
2 1 elsif ($self->rounding eq 'f') { }
286 130 2 unless defined $attrs->{'decimal_places'}
347 130 5 if (defined $self->country_iso_code)
351 1 129 if ($rset->count == 0)
359 4 130 if (defined $self->rounding)
366 1 3 unless ($self->rounding =~ /^(c|f)$/)
377 6 127 if (defined $self->valid_to)
382 2 4 unless ($self->valid_to > $self->valid_from)
391 2 129 if ($self->in_storage)
401 4 127 if (defined $self->valid_to) { }
422 3 1 if ($rset->count > 0)
446 3 125 if ($rset->count > 0)