Branch Coverage

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


line true false branch
27 2064 2130 if (exists $self->{'country'})
39 26 5475 if (exists $self->{'is_valid'})
43 4211 17739 if $self->$_
60 4359 21360 unless $validator
61 7703 13657 $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)