Condition Coverage

blib/lib/Number/Phone/Normalize.pm
Criterion Covered Total %
condition 33 39 84.6


and 3 conditions

line !l l&&!r l&&r condition
85 33 16 29 $nn = _remove_prefix($number, $self->LDPrefix) and defined $self->CountryCode
26 0 23 defined $self->CountryCode and defined $self->AreaCode
115 4 6 58 defined $self->CountryCodeOut and defined $self->AreaCodeOut
10 26 32 defined $self->CountryCodeOut and defined $self->AreaCodeOut and not $self->AlwaysLD
32 11 21 defined $self->CountryCodeOut and defined $self->AreaCodeOut and not $self->AlwaysLD and $nn = _remove_prefix($number, $self->CountryCodeOut . $self->AreaCodeOut)
4 11 32 $self->CountryCodeOut and $nn = _remove_prefix($number, $self->CountryCodeOut)
133 8 6 12 defined $self->AreaCodeOut and not $self->AlwaysLD
14 8 4 defined $self->AreaCodeOut and not $self->AlwaysLD and $nn = _remove_prefix($number, $self->LDPrefix . $self->AreaCodeOut)
3 0 7 defined $self->AreaCode and defined $self->AreaCodeOut
3 6 1 defined $self->AreaCode and defined $self->AreaCodeOut and $self->AreaCode ne $self->AreaCodeOut
7 0 2 $self->AlwaysLD and defined $self->AreaCodeOut
220 75 0 34 $$self{'AlwaysLD'} && defined $self->AreaCodeOut

or 3 conditions

line l !l&&r !l&&!r condition
44 0 99 0 ref $class || $class