Condition Coverage

blib/lib/HTTP/UA/Parser.pm
Criterion Covered Total %
condition 6 32 18.7


or 2 conditions

line l !l condition
169 4 4 $_[0] || 'Other'
192 0 2 shift() || \&_makeParsers
245 22 1 $_[0] || 'Other'
343 0 8 $flag || ''

or 3 conditions

line l !l&&r !l&&!r condition
19 0 0 0 $REGEX ||= LoadFile($path)
37 0 0 0 $ua || $ENV{'HTTP_USER_AGENT'}
56 0 0 0 $$self{'os'} ||= 'HTTP::UA::Parser::OS'->parse($$self{'user_agent'})
62 0 0 0 $$self{'ua'} ||= 'HTTP::UA::Parser::UA'->parse($$self{'user_agent'})
68 0 0 0 $$self{'device'} ||= 'HTTP::UA::Parser::Device'->parse($$self{'user_agent'})
82 0 0 0 $$PARSER{'ua'} || ($$PARSER{'ua'} = $self->makeParser($$REGEX{'user_agent_parsers'}))
126 0 0 0 $$PARSER{'os'} || ($$PARSER{'os'} = $self->makeParser($$REGEX{'os_parsers'}))
185 0 0 0 $$PARSER{'device'} || ($$PARSER{'device'} = $self->makeParser($$REGEX{'device_parsers'}))