lib/Parse/PhoneNumber.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 22 | 72.7 |
line | true | false | branch |
---|---|---|---|
86 | 0 | 110 | unless $data{'number'} |
102 | 0 | 110 | if (/$Parse::PhoneNumber::EXT$/) |
103 | 0 | 0 | if (length $1 > 4) { } |
115 | 13 | 97 | if ($data{'assume_us'}) { } |
116 | 7 | 6 | if (length $_ < $Parse::PhoneNumber::MIN_US_LENGTH) { } |
127 | 53 | 229 | if $number{'cc'} |
131 | 92 | 137 | if (grep {$_ eq $cc;} @Parse::PhoneNumber::CCODES) |
137 | 91 | 6 | if ($number{'cc'} and length "$number{'cc'}$_" >= $Parse::PhoneNumber::MINLEN) { } |
146 | 0 | 97 | if $number{'ext'} |
149 | 0 | 97 | if $number{'ext'} |
162 | 13 | 12 | if $_[1] |