Condition Coverage

blib/lib/Ekps9566.pm
Criterion Covered Total %
condition 162 496 32.6


and 3 conditions

line !l l&&!r l&&r condition
697 0 0 0 --$limit > 0 and $string =~ s/\A((?:$Ekps9566::q_char)+?)$pattern//m
726 0 0 0 --$limit > 0 and length $string > 0
739 0 0 0 --$limit > 0 and length $string > 0
758 0 0 0 scalar @split >= 1 and $split[-1] eq ''
841 0 0 0 defined $replacementlist[$i] and $replacementlist[$i] ne ''
0 0 0 defined $replacementlist[-1] and $replacementlist[-1] ne ''
866 0 0 0 @char and not exists $tr{$char[0]}
883 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}
965 0 0 0 $pos < length $str and $pos <= $position
985 0 0 0 @_ and wantarray
1010 0 0 0 @_ and wantarray
1036 0 0 0 @_ and wantarray
1061 2968 0 0 @_ and wantarray
1087 3271 0 0 @_ and wantarray
1118 0 0 0 $last_s_matched and $_[0] =~ /\A (?>[1-9][0-9]*) \z/mosx
1269 0 0 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
1514 0 0 0 0 < $i and $i < $#char
1848 446 0 719 $min le $first and $first le $max
446 699 20 $min le $first and $first le $max and $max le $last
1145 0 0 $min eq $first and $max eq $last
699 426 20 $first le $min and $max le $last
426 0 699 $min le $first and $last le $max
0 366 60 $first le $min and $min le $last
366 0 60 $first le $min and $min le $last and $last le $max
1925 1273 606 8 $ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx
1926 20 5 497 0 < $i and $i < $#char
2068 319 1335 497 defined $char[$i + 1] and $char[$i + 1] eq '...'
2091 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]
2590 0 0 0 @_ and not wantarray
2639 0 0 0 @_ and not wantarray
2672 0 0 0 @_ and not wantarray
2707 0 0 0 @_ and not wantarray
2740 0 0 0 @_ and not wantarray
2773 0 0 0 @_ and not wantarray
2806 0 0 0 @_ and not wantarray
2841 0 0 0 @_ and not wantarray
2874 764 0 0 @_ and not wantarray
2918 0 0 0 @_ and not wantarray
2951 0 0 0 @_ and not wantarray
2984 0 0 0 @_ and not wantarray
3017 0 0 0 @_ and not wantarray
3042 0 0 0 @_ and not wantarray
3075 0 0 0 @_ and not wantarray
3108 0 0 0 @_ and not wantarray
3141 0 0 0 @_ and not wantarray
3174 0 0 0 @_ and not wantarray
3207 0 0 0 @_ and not wantarray
3240 0 0 0 @_ and not wantarray
3273 0 0 0 @_ and not wantarray
3299 0 0 0 @_ and not wantarray
3383 0 0 0 @_ and not wantarray
3449 0 0 0 @_ and not wantarray
3483 0 0 0 @_ and not wantarray
3517 0 0 0 @_ and not wantarray
4403 0 0 0 $head ne '' and ($head =~ / \G ($Ekps9566::q_char) /gmosx)[-1] ne $pathsep
4426 0 0 0 $head ne '' and ($head =~ / \G ($Ekps9566::q_char) /gmosx)[-1] ne $pathsep
4465 0 0 0 $cond eq 'd' and not &d("$head$leaf")
4477 0 0 0 &Ekps9566::index($leaf, '.') == -1 and length $leaf <= 8
0 0 0 &Ekps9566::index($leaf, '.') == -1 and length $leaf <= 8 and &Ekps9566::index($pattern, '\\.') != -1
4547 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'}
4570 0 0 0 exists $ENV{'HOME'} and defined $ENV{'HOME'}
0 0 0 exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}
4589 0 0 0 defined $home and not &d($home)
4763 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
4807 0 0 0 $] =~ /^(?:5\.006|5\.008000)/mosx and $^O eq 'MSWin32'
4989 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
5057 0 0 764 @_ >= 1 and $_[0] ne ''
5459 0 0 0 defined $1 and substr($&, -length($1), length $1) eq $1
5561 0 0 0 @_ and not wantarray
5927 54391 21347 1229 $Ekps9566::slash eq 'm//' and m[\G (/) ]cgox
54391 21255 92 $Ekps9566::slash eq 'm//' and /\G (\?) /cgox
7048 0 3 0 $2 == 5 and $3 ge '012'
7056 0 0 0 $2 == 5 and $3 >= 12
7572 3014 0 70 grep /\A \{ \z/msx, @char and grep /\A \} \z/msx, @char
8507 3662 17114 412 defined $char[$i + 1] and $char[$i + 1] eq '\\'
20776 390 22 defined $char[$i + 1] and $char[$i + 1] eq '\\' and $char[$i] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
8514 289 3458 204 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
8553 307474 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
307480 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
8805 3297 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
3303 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
9017 44 106 90 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9088 5429 1 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
5429 1 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
9121 3818 100 300 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
3918 62 238 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Ekps9566::uc($char[$i]) ne &fc($char[$i])
680 2992 188 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9131 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 $Ekps9566::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 $Ekps9566::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 $Ekps9566::q_char \z/mosx
9383 10 177 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9403 0 0 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9410 64 1427 94 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9502 37 16 24 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
53 8 16 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Ekps9566::uc($char[$i]) ne &fc($char[$i])
52 9 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9757 397 0 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
397 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
9790 320 8 15 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
328 4 11 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Ekps9566::uc($char[$i]) ne &fc($char[$i])
108 155 23 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9800 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 $Ekps9566::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 $Ekps9566::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 $Ekps9566::q_char \z/mosx
10160 36 8 12 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
44 4 8 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Ekps9566::uc($char[$i]) ne &fc($char[$i])
38 10 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
10291 6 3 0 defined $char[$i + 1] and $char[$i + 1] eq '\\'
9 0 0 defined $char[$i + 1] and $char[$i + 1] eq '\\' and $char[$i] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
10311 85 6 0 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
10649 372 0 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
372 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
10682 349 3 11 $char[$i] eq '^' and not $modifier =~ /m/mosx
310 24 18 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
334 0 18 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Ekps9566::uc($char[$i]) ne &fc($char[$i])
122 167 7 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
10692 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 $Ekps9566::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 $Ekps9566::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 $Ekps9566::q_char \z/mosx
11008 56 0 0 $char[$i] eq '^' and not $modifier =~ /m/mosx
28 16 12 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
44 0 12 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Ekps9566::uc($char[$i]) ne &fc($char[$i])
44 0 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx

or 2 conditions

line l !l condition
826 0 0 $_[4] || ''
936 0 2292 $position ||= 0
1375 122 5113 {'\\D', '${Ekps9566::eD}', '\\S', '${Ekps9566::eS}', '\\W', '${Ekps9566::eW}', '\\d', '[0-9]', '\\s', '\\s', '\\w', '[0-9A-Z_a-z]', '\\C', '[\\x00-\\xFF]', '\\X', 'X', '\\H', '${Ekps9566::eH}', '\\V', '${Ekps9566::eV}', '\\h', '[\\x09\\x20]', '\\v', '[\\x0A\\x0B\\x0C\\x0D]', '\\R', '${Ekps9566::eR}', '\\N', '${Ekps9566::eN}', '\\b', '${Ekps9566::eb}', '\\B', '${Ekps9566::eB}'}->{$char} || ''
8424 7 4 $modifier ||= ''
8960 873 960 $modifier ||= ''
9446 121 42 $modifier ||= ''
9625 101 93 $modifier ||= ''
10104 63 33 $modifier ||= ''
10323 175 115 $modifier ||= ''
10595 134 139 $modifier ||= ''
10972 84 28 $modifier ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
678 0 0 0 not defined $limit or $limit <= 0
757 0 0 0 not defined $_[2] or $_[2] == 0
961 0 0 0 $position ||= length($str) - 1
1525 0 0 0 length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1]
2269 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
2348 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
3347 0 0 0 -d $_ or -d "$_/."
3413 0 0 0 -d $_ or -d "$_/."
4098 0 0 0 -d $_ or -d "$_/."
4134 0 0 0 -d $_ or -d "$_/."
4307 0 0 0 eval '(getpwnam($1))[7]' || my_home()
4392 0 0 0 $head eq '' or $head =~ /\A [A-Za-z]: \z/mosx
4462 0 0 0 $leaf eq '.' or $leaf eq '..'
4966 0 0 0 $char eq '\\' or $char eq '/'
4975 0 0 0 $subdir[-1] eq '\\' or $subdir[-1] eq '/'
5095 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5327 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5604 0 0 0 $offset > scalar @char or $offset < -1 * scalar(@char)
7048 0 0 3 $2 >= 6 or $2 == 5 and $3 ge '012'
7056 0 0 0 $2 >= 6 or $2 == 5 and $3 >= 12