Condition Coverage

blib/lib/HTML/ParseBrowser.pm
Criterion Covered Total %
condition 26 47 55.3


and 3 conditions

line !l l&&!r l&&r condition
75 0 0 7 defined $5 and $5 ne ''
85 0 0 2 defined $3 and $3 ne ''
131 0 195 0 defined $browser->{'name'} and lc $browser->{'name'} eq 'webtv' || lc $browser->{'name'} eq 'opera'
159 195 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) }
177 16 0 1 $version >= 6.3 and $version < 7
216 191 1 3 /Android\s([\.0-9]+)/ and lc $browser->{'name'} ne 'edge'
250 0 39 7 defined $browser->{'name'} and exists $name_map{$browser->{'name'}}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
33 0 1 0 ref $class || $class
50 2 0 0 $lang{$1} || $1
113 66 0 5 $br ne 'Safari' or not $seenchrome
131 1 18 176 lc $browser->{'name'} eq 'webtv' || lc $browser->{'name'} eq 'opera'
174 18 0 6 /Windows NT\s*((\d+)(\.\d+)?)/ or /^WinNT((\d+)(\.\d+)?)/
243 14 7 174 /^($langRE)-/ or /^($langRE)$/
254 46 0 0 $browser->{'name'} ||= $useragent
268 23 0 0 $lang{$browser->{'lang'}} || $browser->{'lang'}