blib/lib/Number/Phone/Formatter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 8 | 8 | 100.0 |
line | true | false | branch |
---|---|---|---|
20 | 8 | 16 | unless $national |
31 | 3 | 21 | unless ($object->isa("Number::Phone::StubCountry")) |
38 | 24 | 128 | if (!$leading_digits || $number =~ /^($leading_digits)/x and $number =~ /^$pattern$/x) |
40 | 12 | 12 | if ($national and $formatter->{'national_rule'}) { } |