Condition Coverage

blib/lib/Parse/HTTP/UserAgent.pm
Criterion Covered Total %
condition 42 62 67.7


and 3 conditions

line !l l&&!r l&&r condition
146 36 314 212 $t->[0] && $t->[0] eq 'compatible'
148 350 0 212 $c and shift @{$t;}
350 28 184 $c and shift @{$t;} and !$e || $self->[3]
28 34 150 $c and shift @{$t;} and !$e || $self->[3] and not $self->[1]
154 28 2 120 $n eq 'MSIE' and index($m, ' ') == -1
169 12 0 2 not $self->[1] and $msie_matched == 2
12 0 2 not $self->[1] and $msie_matched == 2 and not $msie11{'version'}
258 138 0 50 $self->_is_gecko and $self->_parse_gecko(@args)
259 112 0 26 $self->_is_netscape(@args) and $self->_parse_netscape(@args)
260 110 0 2 $self->_is_docomo(@args) and $self->_parse_docomo(@args)
262 22 0 4 $self->_is_emacs(@args) and $self->_parse_emacs(@args)
263 2 0 20 $self->_is_moz_only(@args) and $self->_parse_moz_only(@args)
264 0 0 2 $self->_is_hotjava(@args) and $self->_parse_hotjava(@args)

or 2 conditions

line l !l condition
47 0 562 shift() || {}
126 48 1630 $parts[$i] ||= []
276 934 0 shift() || (return 0)
354 0 0 $@ || '[unknown error while parsing version]'

or 3 conditions

line l !l&&r !l&&!r condition
46 562 0 0 shift() || croak('No user agent string specified')
148 182 2 28 !$e || $self->[3]
205 48 192 0 $self->[15] ||= $pname
244 222 276 0 $OSFIX{$self->[14]} || $self->[14]
342 2 0 0 $msg =~ / Integer\ overflow\ in\ version /msx || $msg =~ / Version\ string .+? contains\ invalid\ data\;\ ignoring\:/msx