Condition Coverage

lib/Geo/Address/Formatter.pm
Criterion Covered Total %
condition 54 76 71.0


and 3 conditions

line !l l&&!r l&&r condition
54 19 0 1 defined $params{'no_warnings'} and $params{'no_warnings'}
57 18 0 2 defined $params{'only_address'} && $params{'only_address'}
58 15 0 5 defined $params{'debug'} && $params{'debug'}
682 2 437 46 defined $self->{'templates'}{$cc} and defined $self->{'templates'}{$cc}{'use_country'}
736 8 94 386 defined $rh_c->{'country'} and defined $rh_c->{'state'}
801 278 0 26 $cc eq "US" and $keyname eq "state"
278 24 2 $cc eq "US" and $keyname eq "state" and not defined $rh_components->{'state_code'}
830 0 1 162 ref $ra_rules eq "ARRAY" and @$ra_rules
1 160 2 ref $ra_rules eq "ARRAY" and @$ra_rules and ref $ra_rules->[0] eq "ARRAY"
968 10 3912 2 defined $seen_words{$w} and $seen_words{$w} > 1

or 2 conditions

line l !l condition
51 20 0 $params{'conf_path'} || die('no conf_path set')
57 20 0 defined $params{'only_address'} && $params{'only_address'} // 0
58 20 0 defined $params{'debug'} && $params{'debug'} // 0
271 38 0 $self->{$type} // (next)
303 15 4 $self->{'abbreviations'} // (return)
334 488 0 &clone(shift()) || (return)
335 15 473 shift() || {}
359 484 4 $rh_options->{'country'} || $self->_determine_country_code($rh_components) || ''
368 10 478 $rh_options->{'abbreviate'} // 0
612 489 0 shift() || (return)
646 486 0 shift() || (return)
665 489 0 shift() || (return)
732 488 0 shift() || (return)
748 493 0 shift() // (return)
757 492 0 shift() // (return)
766 607 0 shift() // (return)
822 163 0 shift() // (return)
883 12 0 shift() // (return)
927 981 1 shift() // (return)
1056 484 0 shift() // (return)

or 3 conditions

line l !l&&r !l&&!r condition
441 482 6 0 $self->{'templates'}{uc $cc} || $self->{'templates'}{'default'}
531 363 125 0 $self->{'compiled_template_cache'}{$template_text} //= $THC->compile($template_text, {"numeric_string_as_string", 1})