Condition Coverage

blib/lib/Encode/Detect/Upload.pm
Criterion Covered Total %
condition 30 69 43.4


and 3 conditions

line !l l&&!r l&&r condition
84 2 0 0 @_ == 1 and ref $_[0] eq 'HASH'
120 9 0 1 not $agent and $$self{'die_on_missing'}
149 0 0 0 $ip =~ /\A(?:0|[1-9]\d*)(?:\.(?:0|[1-9]\d*)){3}\z/ and not grep(($_ > 255), split(/\./, $ip, 0))
235 5 0 1 not $accept and $$self{'die_on_missing'}
462 5 0 0 @_ == 1 and ref $_[0] eq 'HASH'
589 0 0 0 $rank{'mozilla_move'} and $char_meta{$mozilla}{'pos'} != 1
659 0 3 0 $$conf{'ip'} and $has_ipcountry || $has_geoip
747 0 3 0 $accept_seen{$lang} && $country_seen{$lang}

or 2 conditions

line l !l condition
366 5 2 $max ||= 10
684 0 0 $country_meta{$country}{'extra'} ||= []
747 3 0 $accept_seen{$lang} || 0
0 3 $country_seen{$lang} || 0
0 3 $extra_seen{'start'}{$lang} || 0
0 3 $extra_seen{'end'}{$lang} || 0

or 3 conditions

line l !l&&r !l&&!r condition
119 5 4 1 $agent ||= $ENV{'HTTP_USER_AGENT'}
145 0 0 0 $has_ipcountry or $has_geoip
147 0 0 0 $ip ||= $ENV{'REMOTE_ADDR'}
234 3 2 1 $accept ||= $ENV{'HTTP_ACCEPT_LANGUAGE'}
558 5 0 0 $rank{'char'}{$conf{'os'}}{'start'} ||= $rank{'char'}{$conf{'os'}}{'repeat'}
562 5 15 5 @{$char_hash{'W'};} or @{$char_hash{'M'};}
20 0 5 @{$char_hash{'W'};} or @{$char_hash{'M'};} or @{$char_hash{'L'};}
659 0 0 3 $has_ipcountry || $has_geoip
769 3 0 0 $$rank{'lang'}{'start'} ||= $$rank{'lang'}{'repeat'}
772 3 0 3 @{$lang_hash{'A'};} or @{$lang_hash{'C'};}
793 0 0 0 $lang_meta{$b}{'start'} <=> $lang_meta{$a}{'start'} or $lang_meta{$b}{'both'} <=> $lang_meta{$a}{'both'}