Condition Coverage

blib/lib/HTML/ParseBrowser.pm
Criterion Covered Total %
condition 27 47 57.4


and 3 conditions

line !l l&&!r l&&r condition
76 0 0 7 defined $5 and $5 ne ''
86 0 0 2 defined $3 and $3 ne ''
132 0 184 18 defined $browser->{'name'} and lc $browser->{'name'} eq 'webtv' || lc $browser->{'name'} eq 'opera'
160 202 0 0 m[\bCamino/([0-9.]+)] and do { $browser->{'name'} = 'Camino'; $browser->{'version'}{'v'} = $1; ($browser->{'version'}{'major'}, $browser->{'version'}{'minor'}) = split(/\./, $browser->{'version'}{'v'}, 2) }
178 16 0 1 $version >= 6.3 and $version < 7
217 198 1 3 /Android\s([\.0-9]+)/ and lc $browser->{'name'} ne 'edge'
251 0 40 8 defined $browser->{'name'} and exists $name_map{$browser->{'name'}}

or 2 conditions

line l !l condition
258 1 0 $browser->{'ostype'} ||= 'Linux'

or 3 conditions

line l !l&&r !l&&!r condition
34 0 1 0 ref $class || $class
51 2 0 0 $lang{$1} || $1
114 73 0 6 $br ne 'Safari' or not $seenchrome
132 1 18 183 lc $browser->{'name'} eq 'webtv' || lc $browser->{'name'} eq 'opera'
175 19 0 7 /Windows NT\s*((\d+)(\.\d+)?)/ or /^WinNT((\d+)(\.\d+)?)/
244 14 7 181 /^($langRE)-/ or /^($langRE)$/
255 48 0 0 $browser->{'name'} ||= $useragent
269 23 0 0 $lang{$browser->{'lang'}} || $browser->{'lang'}