Condition Coverage

blib/lib/HTTP/DetectUserAgent.pm
Criterion Covered Total %
condition 0 61 0.0


and 3 conditions

line !l l&&!r l&&r condition
49 0 0 0 $block->{'_comment'} and index($block->{'_comment'}, 'msie') != -1
90 0 0 0 index($ua, 'yeti') != -1 and index($ua, 'naver') != -1
351 0 0 0 $block->{'up.browser'} and $ua =~ /^KDDI-(\S+)/
383 0 0 0 $block->{'mozilla'} and $ua =~ /([A-Za-z0-9]+);\s*FOMA/

or 2 conditions

line l !l condition
78 0 0 $block{'_comment'} || ''
82 0 0 $block{'_illigal'} || ''
385 0 0 $1 || 'Unknown'
429 0 0 $1 || 'Unknown'
433 0 0 $1 || 'Unknown'

or 3 conditions

line l !l&&r !l&&!r condition
57 0 0 0 $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block)
0 0 0 $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block) or $self->_check_other_browsers($ua, $block)
0 0 0 $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block) or $self->_check_other_browsers($ua, $block) or $self->_check_webservice($ua, $block)
0 0 0 $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block) or $self->_check_other_browsers($ua, $block) or $self->_check_webservice($ua, $block) or $self->_check_robot($ua, $block)
90 0 0 0 index($ua, 'spider') != -1 or index($ua, 'crawler') != -1
105 0 0 0 index($ua, 'y!j-srd') != -1 or index($ua, 'y!j-mbs') != -1
275 0 0 0 $block->{'version'} || $block->{'shiira'}
310 0 0 0 $block->{'firefox'} or $block->{'granparadiso'}
0 0 0 $block->{'firefox'} or $block->{'granparadiso'} or $block->{'bonecho'}
320 0 0 0 $block->{'firefox'} || $block->{'granparadiso'} || $block->{'bonecho'}
350 0 0 0 $self->{'user_agent'} || $ua
351 0 0 0 $block->{'softbank'} || $block->{'vodafone'} || $block->{'j-phone'}
382 0 0 0 $self->{'user_agent'} || $ua