Condition Coverage

blib/lib/Duadua/Parser/FeaturePhone/FeaturePhone.pm
Criterion Covered Total %
condition 14 22 63.6


and 3 conditions

line !l l&&!r l&&r condition
9 50 0 2 index($d->ua, "DoCoMo/2.0") > -1 and $d->ua =~ m[^DoCoMo/2\.0 ([^\(]+)\(]
49 0 1 index($d->ua, "FOMA;") > -1 and index($d->ua, "Mozilla/") > -1
49 0 1 index($d->ua, "FOMA;") > -1 and index($d->ua, "Mozilla/") > -1 and $d->ua =~ / \(([^;]+);FOMA;/
46 0 1 index($d->ua, ";SoftBank") > -1 and index($d->ua, "Mozilla/") > -1
46 0 1 index($d->ua, ";SoftBank") > -1 and index($d->ua, "Mozilla/") > -1 and $d->ua =~ /\(([^;]+);SoftBank/
44 0 2 index($d->ua, "KDDI-") > -1 and $d->ua =~ /^KDDI-([^\s]+)\s/

or 2 conditions

line l !l condition
28 1 0 $elements[2] || ''
36 1 0 $elements[2] || ''