Condition Coverage

blib/lib/HTTP/DetectUserAgent.pm
Criterion Covered Total %
condition 32 61 52.4


and 3 conditions

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

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
57 5 0 8 $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block)
5 0 8 $self->_check_mobile($ua, $block) or $self->_check_mobile_pc_viewer($ua, $block) or $self->_check_other_browsers($ua, $block)
0 4 4 $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)
4 1 3 $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 23 index($ua, 'spider') != -1 or index($ua, 'crawler') != -1
105 0 0 2 index($ua, 'y!j-srd') != -1 or index($ua, 'y!j-mbs') != -1
275 2 0 0 $block->{'version'} || $block->{'shiira'}
310 1 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 13 0 0 $self->{'user_agent'} || $ua
351 1 0 9 $block->{'softbank'} || $block->{'vodafone'} || $block->{'j-phone'}
382 8 0 0 $self->{'user_agent'} || $ua