Condition Coverage

blib/lib/Eeucjp.pm
Criterion Covered Total %
condition 146 379 38.5


and 3 conditions

line !l l&&!r l&&r condition
81 0 0 0 not ref $name and &Eeucjp::index($name, '::') == -1
0 0 0 not ref $name and &Eeucjp::index($name, '::') == -1 and &Eeucjp::index($name, q[']) == -1
653 0 0 0 --$limit > 0 and $string =~ s/\A((?:$Eeucjp::q_char)+?)$pattern//m
682 0 0 0 --$limit > 0 and length $string > 0
695 0 0 0 --$limit > 0 and length $string > 0
714 0 0 0 scalar @split >= 1 and $split[-1] eq ''
797 0 0 0 defined $replacementlist[$i] and $replacementlist[$i] ne ''
0 0 0 defined $replacementlist[-1] and $replacementlist[-1] ne ''
822 0 0 0 @char and not exists $tr{$char[0]}
839 0 0 0 @char and exists $tr{$char[0]}
0 0 0 @char and exists $tr{$char[0]} and $tr{$char[0]} eq $tr{$char}
921 0 0 0 $pos < length $str and $pos <= $position
941 0 0 0 @_ and wantarray
966 0 0 0 @_ and wantarray
992 0 0 0 @_ and wantarray
1017 2780 0 0 @_ and wantarray
1043 2855 0 0 @_ and wantarray
1074 0 0 0 $last_s_matched and $_[0] =~ /\A (?>[1-9][0-9]*) \z/mosx
1457 0 0 0 0 < $i and $i < $#char
1791 812 0 497 $min le $first and $first le $max
812 477 20 $min le $first and $first le $max and $max le $last
1289 0 0 $min eq $first and $max eq $last
477 752 60 $first le $min and $max le $last
752 0 477 $min le $first and $last le $max
0 732 20 $first le $min and $min le $last
732 0 20 $first le $min and $min le $last and $last le $max
1868 1273 606 8 $ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx
1869 20 5 497 0 < $i and $i < $#char
2011 319 1335 497 defined $char[$i + 1] and $char[$i + 1] eq '...'
2034 20 20 477 $length == length $char[$i - 1] and $length == length $char[$i + 1]
0 20 0 length $char[$i - 1] < $length and $length < length $char[$i + 1]
2682 0 0 0 $head ne '' and ($head =~ / \G ($Eeucjp::q_char) /gmosx)[-1] ne $pathsep
2705 0 0 0 $head ne '' and ($head =~ / \G ($Eeucjp::q_char) /gmosx)[-1] ne $pathsep
2744 0 0 0 $cond eq 'd' and not -d "$head$leaf"
2756 0 0 0 &Eeucjp::index($leaf, '.') == -1 and length $leaf <= 8
0 0 0 &Eeucjp::index($leaf, '.') == -1 and length $leaf <= 8 and &Eeucjp::index($pattern, '\\.') != -1
2826 0 0 0 exists $ENV{'HOME'} and $ENV{'HOME'}
0 0 0 exists $ENV{'USERPROFILE'} and $ENV{'USERPROFILE'}
0 0 0 exists $ENV{'HOMEDRIVE'} and exists $ENV{'HOMEPATH'}
0 0 0 exists $ENV{'HOMEDRIVE'} and exists $ENV{'HOMEPATH'} and $ENV{'HOMEDRIVE'}
0 0 0 exists $ENV{'HOMEDRIVE'} and exists $ENV{'HOMEPATH'} and $ENV{'HOMEDRIVE'} and $ENV{'HOMEPATH'}
2849 0 0 0 exists $ENV{'HOME'} and defined $ENV{'HOME'}
0 0 0 exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}
2868 0 0 0 defined $home and not -d $home
2879 0 0 0 defined $1 and substr($&, -length($1), length $1) eq $1
2981 0 0 0 @_ and not wantarray
3347 36932 13943 1069 $Eeucjp::slash eq 'm//' and m[\G (/) ]cgox
36932 13913 30 $Eeucjp::slash eq 'm//' and /\G (\?) /cgox
4302 0 3 0 $2 == 5 and $3 ge '012'
4310 0 0 0 $2 == 5 and $3 >= 12
4645 2466 0 38 grep /\A \{ \z/msx, @char and grep /\A \} \z/msx, @char
5355 214559 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
214565 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
5600 2950 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
2956 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
5807 8 34 18 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
5878 3263 1 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
3263 1 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
5911 2016 29 84 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
2045 30 54 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Eeucjp::uc($char[$i]) ne &fc($char[$i])
506 1267 188 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
5916 6 0 0 $i + 3 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 3]) == 3
6 0 0 $i + 3 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 3]) == 3 and eval(sprintf '"%s%s%s%s"', @char[$i .. $i + 3]) =~ /\A $Eeucjp::q_char \z/mosx
6 0 0 $i + 2 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 2]) == 2
6 0 0 $i + 2 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 2]) == 2 and eval(sprintf '"%s%s%s"', @char[$i .. $i + 2]) =~ /\A $Eeucjp::q_char \z/mosx
4 2 0 $i + 1 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, $char[$i + 1]) == 1
6 0 0 $i + 1 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, $char[$i + 1]) == 1 and eval(sprintf '"%s%s"', @char[$i .. $i + 1]) =~ /\A $Eeucjp::q_char \z/mosx
6168 10 177 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
6188 0 0 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
6195 38 1277 42 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
6287 13 2 12 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
15 8 4 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Eeucjp::uc($char[$i]) ne &fc($char[$i])
14 9 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
6537 357 0 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
357 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
6570 316 1 9 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
317 4 5 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Eeucjp::uc($char[$i]) ne &fc($char[$i])
91 169 23 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
6575 0 0 0 $i + 3 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 3]) == 3
0 0 0 $i + 3 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 3]) == 3 and eval(sprintf '"%s%s%s%s"', @char[$i .. $i + 3]) =~ /\A $Eeucjp::q_char \z/mosx
0 0 0 $i + 2 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 2]) == 2
0 0 0 $i + 2 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 2]) == 2 and eval(sprintf '"%s%s%s"', @char[$i .. $i + 2]) =~ /\A $Eeucjp::q_char \z/mosx
0 0 0 $i + 1 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, $char[$i + 1]) == 1
0 0 0 $i + 1 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, $char[$i + 1]) == 1 and eval(sprintf '"%s%s"', @char[$i .. $i + 1]) =~ /\A $Eeucjp::q_char \z/mosx
6940 23 1 6 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
24 4 2 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Eeucjp::uc($char[$i]) ne &fc($char[$i])
18 10 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
7384 302 0 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
302 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
7417 279 3 11 $char[$i] eq '^' and not $modifier =~ /m/mosx
273 3 6 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
276 0 6 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Eeucjp::uc($char[$i]) ne &fc($char[$i])
64 167 7 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
7422 0 0 0 $i + 3 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 3]) == 3
0 0 0 $i + 3 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 3]) == 3 and eval(sprintf '"%s%s%s%s"', @char[$i .. $i + 3]) =~ /\A $Eeucjp::q_char \z/mosx
0 0 0 $i + 2 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 2]) == 2
0 0 0 $i + 2 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, @char[$i + 1 .. $i + 2]) == 2 and eval(sprintf '"%s%s%s"', @char[$i .. $i + 2]) =~ /\A $Eeucjp::q_char \z/mosx
0 0 0 $i + 1 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, $char[$i + 1]) == 1
0 0 0 $i + 1 <= $#char and grep(/\A (?: \\ [0-7]{2,3} | \\x [0-9A-Fa-f]{1,2}) \z/mosx, $char[$i + 1]) == 1 and eval(sprintf '"%s%s"', @char[$i .. $i + 1]) =~ /\A $Eeucjp::q_char \z/mosx
7738 12 0 0 $char[$i] eq '^' and not $modifier =~ /m/mosx
6 2 4 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
8 0 4 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Eeucjp::uc($char[$i]) ne &fc($char[$i])
8 0 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx

or 2 conditions

line l !l condition
782 0 0 $_[4] || ''
892 0 0 $position ||= 0
1318 122 2817 {'\\D', '${Eeucjp::eD}', '\\S', '${Eeucjp::eS}', '\\W', '${Eeucjp::eW}', '\\d', '[0-9]', '\\s', '\\s', '\\w', '[0-9A-Z_a-z]', '\\C', '[\\x00-\\xFF]', '\\X', 'X', '\\H', '${Eeucjp::eH}', '\\V', '${Eeucjp::eV}', '\\h', '[\\x09\\x20]', '\\v', '[\\x0A\\x0B\\x0C\\x0D]', '\\R', '${Eeucjp::eR}', '\\N', '${Eeucjp::eN}', '\\b', '${Eeucjp::eb}', '\\B', '${Eeucjp::eB}'}->{$char} || ''
5242 7 4 $modifier ||= ''
5750 549 876 $modifier ||= ''
6231 23 16 $modifier ||= ''
6405 46 76 $modifier ||= ''
6884 14 20 $modifier ||= ''
7092 71 85 $modifier ||= ''
7330 35 102 $modifier ||= ''
7702 18 6 $modifier ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
86 0 0 0 $name =~ /^(([^\x8E\x8F\xA1-\xFEa-z])|(\^[a-z_]+))\z/i or $global{$name}
634 0 0 0 not defined $limit or $limit <= 0
713 0 0 0 not defined $_[2] or $_[2] == 0
917 0 0 0 $position ||= length($str) - 1
1468 0 0 0 length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1]
2207 80 5 277 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
2286 80 5 277 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
2369 650 0 0 eval q[open($_[0],'<',$_[1])] || open($_[0], "< $file\000")
2379 0 0 0 eval q[open($_[0],'>',$_[1])] || open($_[0], "> $file\000")
2389 0 0 0 eval q[open($_[0],'>>',$_[1])] || open($_[0], ">> $file\000")
2586 0 0 0 eval '(getpwnam($1))[7]' || my_home()
2671 0 0 0 $head eq '' or $head =~ /\A [A-Za-z]: \z/mosx
2741 0 0 0 $leaf eq '.' or $leaf eq '..'
3024 0 0 0 $offset > scalar @char or $offset < -1 * scalar(@char)
4302 0 0 3 $2 >= 6 or $2 == 5 and $3 ge '012'
4310 0 0 0 $2 >= 6 or $2 == 5 and $3 >= 12