Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
705 0 0 0 --$limit > 0 and $string =~ s/\A((?:$Ekps9566::q_char)+?)$pattern//m
737 0 0 0 --$limit > 0 and length $string > 0
751 0 0 0 --$limit > 0 and length $string > 0
771 0 0 0 scalar @split >= 1 and $split[-1] eq ''
854 0 0 0 defined $replacementlist[$i] and $replacementlist[$i] ne ''
0 0 0 defined $replacementlist[-1] and $replacementlist[-1] ne ''
879 0 0 0 @char and not exists $tr{$char[0]}
896 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}
978 0 0 0 $pos < length $str and $pos <= $position
998 0 0 0 @_ and wantarray
1023 0 0 0 @_ and wantarray
1049 0 0 0 @_ and wantarray
1074 2968 0 0 @_ and wantarray
1100 3271 0 0 @_ and wantarray
1131 0 0 0 $last_s_matched and $_[0] =~ /\A (?>[1-9][0-9]*) \z/mosx
1282 0 0 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
1527 0 0 0 0 < $i and $i < $#char
1861 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
1938 1273 606 8 $ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx
1939 20 5 497 0 < $i and $i < $#char
2081 319 1335 497 defined $char[$i + 1] and $char[$i + 1] eq '...'
2104 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]
2603 0 0 0 @_ and not wantarray
2652 0 0 0 @_ and not wantarray
2685 0 0 0 @_ and not wantarray
2720 0 0 0 @_ and not wantarray
2753 0 0 0 @_ and not wantarray
2786 0 0 0 @_ and not wantarray
2819 0 0 0 @_ and not wantarray
2854 0 0 0 @_ and not wantarray
2887 768 0 0 @_ and not wantarray
2932 0 0 0 @_ and not wantarray
2965 0 0 0 @_ and not wantarray
2998 0 0 0 @_ and not wantarray
3031 0 0 0 @_ and not wantarray
3056 0 0 0 @_ and not wantarray
3089 0 0 0 @_ and not wantarray
3122 0 0 0 @_ and not wantarray
3155 0 0 0 @_ and not wantarray
3188 0 0 0 @_ and not wantarray
3221 0 0 0 @_ and not wantarray
3254 0 0 0 @_ and not wantarray
3287 0 0 0 @_ and not wantarray
3313 0 0 0 @_ and not wantarray
3398 0 0 0 @_ and not wantarray
3465 0 0 0 @_ and not wantarray
3499 0 0 0 @_ and not wantarray
3533 0 0 0 @_ and not wantarray
4419 0 0 0 $head ne '' and ($head =~ / \G ($Ekps9566::q_char) /gmosx)[-1] ne $pathsep
4442 0 0 0 $head ne '' and ($head =~ / \G ($Ekps9566::q_char) /gmosx)[-1] ne $pathsep
4481 0 0 0 $cond eq 'd' and not &d("$head$leaf")
4493 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
4563 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'}
4586 0 0 0 exists $ENV{'HOME'} and defined $ENV{'HOME'}
0 0 0 exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}
4605 0 0 0 defined $home and not &d($home)
4779 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
4823 0 0 0 $] =~ /^(?:5\.006|5\.008000)/mosx and $^O eq 'MSWin32'
5005 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
5073 0 0 768 @_ >= 1 and $_[0] ne ''
5475 0 0 0 defined $1 and substr($&, -length($1), length $1) eq $1
5577 0 0 0 @_ and not wantarray
5947 54495 21395 1229 $Ekps9566::slash eq 'm//' and m[\G (/) ]cgox
54495 21303 92 $Ekps9566::slash eq 'm//' and /\G (\?) /cgox
7068 0 3 0 $2 == 5 and $3 ge '012'
7076 0 0 0 $2 == 5 and $3 >= 12
7592 3014 0 82 grep /\A \{ \z/msx, @char and grep /\A \} \z/msx, @char
7927 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
7934 289 3458 204 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
7973 307498 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
307504 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
8225 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'
8437 44 106 90 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8508 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'
8541 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
8551 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
8803 10 177 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8823 0 0 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8830 64 1427 94 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8922 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
9177 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'
9210 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
9220 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
9580 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
9711 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
9731 85 6 0 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
10069 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'
10102 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
10112 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
10428 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
839 0 0 $_[4] || ''
949 0 2304 $position ||= 0
1388 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} || ''
7844 7 4 $modifier ||= ''
8380 873 960 $modifier ||= ''
8866 121 42 $modifier ||= ''
9045 101 93 $modifier ||= ''
9524 63 33 $modifier ||= ''
9743 175 115 $modifier ||= ''
10015 134 139 $modifier ||= ''
10392 84 28 $modifier ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
685 0 0 0 not defined $limit or $limit <= 0
770 0 0 0 not defined $_[2] or $_[2] == 0
974 0 0 0 $position ||= length($str) - 1
1538 0 0 0 length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1]
2282 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
2361 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
3362 0 0 0 -d $_ or -d "$_/."
3429 0 0 0 -d $_ or -d "$_/."
4114 0 0 0 -d $_ or -d "$_/."
4150 0 0 0 -d $_ or -d "$_/."
4323 0 0 0 eval '(getpwnam($1))[7]' || my_home()
4408 0 0 0 $head eq '' or $head =~ /\A [A-Za-z]: \z/mosx
4478 0 0 0 $leaf eq '.' or $leaf eq '..'
4982 0 0 0 $char eq '\\' or $char eq '/'
4991 0 0 0 $subdir[-1] eq '\\' or $subdir[-1] eq '/'
5111 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5343 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5620 0 0 0 $offset > scalar @char or $offset < -1 * scalar(@char)
7068 0 0 3 $2 >= 6 or $2 == 5 and $3 ge '012'
7076 0 0 0 $2 >= 6 or $2 == 5 and $3 >= 12