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
147 36 306 212 $t->[0] && $t->[0] eq 'compatible'
149 342 0 212 $c and shift @{$t;}
342 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]
155 28 2 120 $n eq 'MSIE' and index($m, ' ') == -1
170 12 0 2 not $self->[1] and $msie_matched == 2
12 0 2 not $self->[1] and $msie_matched == 2 and not $msie11{'version'}
259 138 0 50 $self->_is_gecko and $self->_parse_gecko(@args)
260 112 0 26 $self->_is_netscape(@args) and $self->_parse_netscape(@args)
261 110 0 2 $self->_is_docomo(@args) and $self->_parse_docomo(@args)
263 22 0 4 $self->_is_emacs(@args) and $self->_parse_emacs(@args)
264 2 0 20 $self->_is_moz_only(@args) and $self->_parse_moz_only(@args)
265 0 0 2 $self->_is_hotjava(@args) and $self->_parse_hotjava(@args)

or 2 conditions

line l !l condition
48 0 554 shift() || {}
127 48 1594 $parts[$i] ||= []
277 916 0 shift() || (return 0)
355 0 0 $@ || '[unknown error while parsing version]'

or 3 conditions

line l !l&&r !l&&!r condition
47 554 0 0 shift() || croak('No user agent string specified')
149 182 2 28 !$e || $self->[3]
206 48 184 0 $self->[15] ||= $pname
245 222 268 0 $OSFIX{$self->[14]} || $self->[14]
343 2 0 0 $msg =~ / Integer\ overflow\ in\ version /msx || $msg =~ / Version\ string .+? contains\ invalid\ data\;\ ignoring\:/msx