Branch Coverage

blib/lib/Interchange6/Schema/Result/Zone.pm
Criterion Covered Total %
branch 84 86 100.0


line true false branch
212 4 955 if ($attrs->{'countries'}) { }
1 954 elsif ($attrs->{'states'}) { }
213 1 3 if (ref $attrs->{'countries'} eq 'ARRAY') { }
221 3 1 if ($attrs->{'states'})
222 1 2 if (ref $attrs->{'states'} eq 'ARRAY') { }
236 4 954 if $countries
237 3 955 if $states
266 2 32 if (not defined $country) { }
16 16 elsif (&blessed($country)) { }
12 4 elsif ($country =~ /^[a-z]{2}$/i) { }
273 2 14 unless $country->isa('Interchange6::Schema::Result::Country')
282 2 10 unless defined $result
299 1 21 if ($self->state_count > 0) { }
13 8 elsif (ref $arg ne 'ARRAY') { }
317 1 15 if ($self->has_country($country))
342 26 8 if (&blessed($country)) { }
343 25 1 if ($country->isa('Interchange6::Schema::Result::Country')) { }
347 9 16 if $rset->count == 1
358 6 2 if ($country =~ /^[a-z]{2}$/i) { }
363 4 2 if $rset->count == 1
371 1 1 if $rset->count == 1
403 1 10 if ($self->state_count > 0) { }
5 5 elsif (ref $arg ne 'ARRAY') { }
422 1 7 unless ($self->has_country($country))
461 0 28 if (not defined $state) { }
21 7 elsif (&blessed($state)) { }
5 2 elsif ($state =~ /^[a-z]{2}$/i) { }
469 3 18 unless $state->isa('Interchange6::Schema::Result::State')
475 4 1 if ($self->country_count == 1) { }
488 1 3 unless defined $result
499 1 0 if ($self->country_count == 0) { }
523 1 14 if ($self->country_count > 1) { }
7 7 elsif (ref $arg ne 'ARRAY') { }
542 1 18 if ($self->country_count == 0) { }
554 2 16 unless ($country->country_iso_code eq $state->country->country_iso_code)
564 1 16 if ($self->has_state($state))
591 19 7 if (&blessed($state)) { }
592 18 1 if ($state->isa('Interchange6::Schema::Result::State')) { }
600 2 16 if $rset->count == 1
611 5 2 if ($state =~ /^[a-z]{2}$/i) { }
615 3 2 if $rset->count == 1
623 1 1 if $rset->count == 1
656 3 1 if (ref $arg ne 'ARRAY')