Condition Coverage

blib/lib/Number/Phone.pm
Criterion Covered Total %
condition 31 41 75.6


and 3 conditions

line !l l&&!r l&&r condition
113 0 0 0 defined $from->areacode and defined $to->areacode
0 0 0 defined $from->areacode and defined $to->areacode and $from->areacode eq $to->areacode
140 0 2 6 $country_code and $country_code =~ /[a-z]/i
296 4742 6 7 $country eq "AQ" and $number =~ /^\+882/
303 4750 3 2 $country eq "VA" and $original_country eq "IT"
4628 119 6 $country =~ /^(IM|GG|JE)$/ and $original_country eq "GB"
345 3871 21 18 $@ and $number =~ /^\+881/
3871 13 8 $@ and $number =~ /^\+882/
3884 0 8 $@ and $number =~ /^\+882/ and $country_name ne "AQ"
3871 7 6 $@ and $number =~ /^\+883/

or 2 conditions

line l !l condition
139 8 0 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
303 2 6 4747 $country eq "VA" and $original_country eq "IT" or $country =~ /^(IM|GG|JE)$/ and $original_country eq "GB"
310 2576 2179 0 $original_country || $country
326 124 1 844 $@ or not "Number::Phone::$country"->isa("Number::Phone")