Branch Coverage

blib/lib/Number/Phone/StubCountry.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
27 2062 2128 if (exists $self->{'country'})
39 26 5460 if (exists $self->{'is_valid'})
43 4202 17634 if $self->$_
60 4323 21279 unless $validator
61 7691 13588 $self->raw_number =~ /^($validator)$/x ? :
67 17 9 unless (@languages)
69 15 2 unless (grep {$_ eq "en";} @languages)
76 8 24 unless exists $self->{'areanames'}{$language}
79 23 141 if exists $map{$self->country_code . $prefix}
90 79 359 if (!$leading_digits || $number =~ /^($leading_digits)/x and $number =~ /^$pattern$/x)