Branch Coverage

blib/lib/HTTP/UA/Parser.pm
Criterion Covered Total %
branch 48 66 72.7


line true false branch
12 0 0 if (ref $op eq 'HASH') { }
17 0 0 unless ($REGEX)
18 0 0 if ($path) { }
23 0 0 unless (-e ($regFile = $PATH . '/regexes.yaml'))
105 0 3 unless (@m)
106 1 2 defined $famRep ? :
107 1 2 defined $majorRep ? :
108 1 2 defined $minorRep ? :
109 1 2 defined $patchRep ? :
150 0 3 unless (@m)
151 1 2 $famRep ? :
152 1 2 defined $majorRep ? :
153 1 2 defined $minorRep ? :
154 1 2 defined $patchRep ? :
155 1 2 defined $patchMinorRep ? :
202 4 3 if $obj[0]
223 3 4 unless (@m)
224 0 3 $m[0] eq '1' ? :
1 3 $deviceRep ? :
227 0 4 $brandRep ? :
230 0 4 $m[0] eq '1' ? :
0 4 $modelRep ? :
258 14 4 if (defined $$self{'major'})
260 12 2 if (defined $$self{'minor'})
262 10 2 if (defined $$self{'patch'})
263 8 2 if (HTTP::UA::Parser::Utils::startsWithDigit($$self{'patch'}))
265 6 4 if (defined $$self{'patchMinor'})
266 4 2 if (HTTP::UA::Parser::Utils::startsWithDigit($$self{'patchMinor'}))
278 2 2 if ($suffix)
309 6 0 if $obj[0]
330 1 0 defined @{$matches;}[$1 - 1] ? :
334 0 1 if ($stringToReplace eq '')
344 0 8 if ($flag eq 'i')