Branch Coverage

blib/lib/Duadua/Parser/FeaturePhone/FeaturePhone.pm
Criterion Covered Total %
branch 15 16 93.7


line true false branch
9 2 50 if (index($d->ua, 'DoCoMo/2.0') > -1 and $d->ua =~ m[^DoCoMo/2\.0 ([^\(]+)\(]) { }
1 49 elsif (index($d->ua, 'FOMA;') > -1 and index($d->ua, 'Mozilla/') > -1 and $d->ua =~ / \(([^;]+);FOMA;/) { }
1 48 elsif (index($d->ua, 'SoftBank/') > -1) { }
1 47 elsif (index($d->ua, 'Vodafone/') > -1) { }
1 46 elsif (index($d->ua, ';SoftBank') > -1 and index($d->ua, 'Mozilla/') > -1 and $d->ua =~ /\(([^;]+);SoftBank/) { }
2 88 elsif (index($d->ua, 'KDDI-') > -1 and $d->ua =~ /^KDDI-([^\s]+)\s/) { }
55 1 1 if ($d->opt_version)
57 1 0 if $version