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
112 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
139 0 2 6 $country_code and $country_code =~ /[a-z]/i
296 4745 6 7 $country eq "AQ" and $number =~ /^\+882/
303 4753 3 2 $country eq "VA" and $original_country eq "IT"
4631 119 6 $country =~ /^(IM|GG|JE)$/ and $original_country eq "GB"
345 3874 21 18 $@ and $number =~ /^\+881/
3874 13 8 $@ and $number =~ /^\+882/
3887 0 8 $@ and $number =~ /^\+882/ and $country_name ne "AQ"
3874 7 6 $@ and $number =~ /^\+883/

or 2 conditions

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

or 3 conditions

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