Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
704 0 0 0 --$limit > 0 and $string =~ s/\A((?:$Egbk::q_char)+?)$pattern//m
736 0 0 0 --$limit > 0 and length $string > 0
750 0 0 0 --$limit > 0 and length $string > 0
770 0 0 0 scalar @split >= 1 and $split[-1] eq ''
853 0 0 0 defined $replacementlist[$i] and $replacementlist[$i] ne ''
0 0 0 defined $replacementlist[-1] and $replacementlist[-1] ne ''
878 0 0 0 @char and not exists $tr{$char[0]}
895 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}
977 0 0 0 $pos < length $str and $pos <= $position
997 0 0 0 @_ and wantarray
1022 0 0 0 @_ and wantarray
1048 0 0 0 @_ and wantarray
1073 2968 0 0 @_ and wantarray
1099 3271 0 0 @_ and wantarray
1130 0 0 0 $last_s_matched and $_[0] =~ /\A (?>[1-9][0-9]*) \z/mosx
1281 0 0 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
1526 0 0 0 0 < $i and $i < $#char
1860 426 0 608 $min le $first and $first le $max
426 588 20 $min le $first and $first le $max and $max le $last
1014 0 0 $min eq $first and $max eq $last
588 406 20 $first le $min and $max le $last
406 0 588 $min le $first and $last le $max
0 366 40 $first le $min and $min le $last
366 0 40 $first le $min and $min le $last and $last le $max
1937 1273 606 8 $ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx
1938 20 5 497 0 < $i and $i < $#char
2080 319 1335 497 defined $char[$i + 1] and $char[$i + 1] eq '...'
2103 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]
2602 0 0 0 @_ and not wantarray
2651 0 0 0 @_ and not wantarray
2684 0 0 0 @_ and not wantarray
2719 0 0 0 @_ and not wantarray
2752 0 0 0 @_ and not wantarray
2785 0 0 0 @_ and not wantarray
2818 0 0 0 @_ and not wantarray
2853 0 0 0 @_ and not wantarray
2886 772 0 0 @_ and not wantarray
2931 0 0 0 @_ and not wantarray
2964 0 0 0 @_ and not wantarray
2997 0 0 0 @_ and not wantarray
3030 0 0 0 @_ and not wantarray
3055 0 0 0 @_ and not wantarray
3088 0 0 0 @_ and not wantarray
3121 0 0 0 @_ and not wantarray
3154 0 0 0 @_ and not wantarray
3187 0 0 0 @_ and not wantarray
3220 0 0 0 @_ and not wantarray
3253 0 0 0 @_ and not wantarray
3286 0 0 0 @_ and not wantarray
3312 0 0 0 @_ and not wantarray
3397 0 0 0 @_ and not wantarray
3464 0 0 0 @_ and not wantarray
3498 0 0 0 @_ and not wantarray
3532 0 0 0 @_ and not wantarray
4418 0 0 0 $head ne '' and ($head =~ / \G ($Egbk::q_char) /gmosx)[-1] ne $pathsep
4441 0 0 0 $head ne '' and ($head =~ / \G ($Egbk::q_char) /gmosx)[-1] ne $pathsep
4480 0 0 0 $cond eq 'd' and not &d("$head$leaf")
4492 0 0 0 &Egbk::index($leaf, '.') == -1 and length $leaf <= 8
0 0 0 &Egbk::index($leaf, '.') == -1 and length $leaf <= 8 and &Egbk::index($pattern, '\\.') != -1
4562 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'}
4585 0 0 0 exists $ENV{'HOME'} and defined $ENV{'HOME'}
0 0 0 exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}
4604 0 0 0 defined $home and not &d($home)
4778 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
4822 0 0 0 $] =~ /^(?:5\.006|5\.008000)/mosx and $^O eq 'MSWin32'
5004 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
5072 0 0 772 @_ >= 1 and $_[0] ne ''
5474 0 0 0 defined $1 and substr($&, -length($1), length $1) eq $1
5576 0 0 0 @_ and not wantarray
5946 54184 21510 1231 $Egbk::slash eq 'm//' and m[\G (/) ]cgox
54184 21418 92 $Egbk::slash eq 'm//' and /\G (\?) /cgox
7067 0 3 0 $2 == 5 and $3 ge '012'
7075 0 0 0 $2 == 5 and $3 >= 12
7591 3018 0 91 grep /\A \{ \z/msx, @char and grep /\A \} \z/msx, @char
7926 3678 17054 412 defined $char[$i + 1] and $char[$i + 1] eq '\\'
20732 390 22 defined $char[$i + 1] and $char[$i + 1] eq '\\' and $char[$i] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
7933 289 3474 204 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
7972 307182 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
307188 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
8224 3193 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
3199 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
8436 44 106 90 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8507 5513 1 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
5513 1 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
8540 3902 100 300 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
4002 62 238 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Egbk::uc($char[$i]) ne &fc($char[$i])
682 3074 188 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
8550 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 $Egbk::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 $Egbk::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 $Egbk::q_char \z/mosx
8802 10 177 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8822 0 0 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8829 64 1429 94 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
8921 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 &Egbk::uc($char[$i]) ne &fc($char[$i])
52 9 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9176 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'
9209 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 &Egbk::uc($char[$i]) ne &fc($char[$i])
108 155 23 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9219 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 $Egbk::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 $Egbk::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 $Egbk::q_char \z/mosx
9579 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 &Egbk::uc($char[$i]) ne &fc($char[$i])
38 10 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9710 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
9730 85 6 0 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
10068 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'
10101 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 &Egbk::uc($char[$i]) ne &fc($char[$i])
122 167 7 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
10111 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 $Egbk::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 $Egbk::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 $Egbk::q_char \z/mosx
10427 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 &Egbk::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
838 0 0 $_[4] || ''
948 0 2316 $position ||= 0
1387 122 5197 {'\\D', '${Egbk::eD}', '\\S', '${Egbk::eS}', '\\W', '${Egbk::eW}', '\\d', '[0-9]', '\\s', '\\s', '\\w', '[0-9A-Z_a-z]', '\\C', '[\\x00-\\xFF]', '\\X', 'X', '\\H', '${Egbk::eH}', '\\V', '${Egbk::eV}', '\\h', '[\\x09\\x20]', '\\v', '[\\x0A\\x0B\\x0C\\x0D]', '\\R', '${Egbk::eR}', '\\N', '${Egbk::eN}', '\\b', '${Egbk::eb}', '\\B', '${Egbk::eB}'}->{$char} || ''
7843 7 4 $modifier ||= ''
8379 875 960 $modifier ||= ''
8865 121 42 $modifier ||= ''
9044 101 93 $modifier ||= ''
9523 63 33 $modifier ||= ''
9742 175 115 $modifier ||= ''
10014 134 139 $modifier ||= ''
10391 84 28 $modifier ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
684 0 0 0 not defined $limit or $limit <= 0
769 0 0 0 not defined $_[2] or $_[2] == 0
973 0 0 0 $position ||= length($str) - 1
1537 0 0 0 length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1]
2281 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
2360 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
3361 0 0 0 -d $_ or -d "$_/."
3428 0 0 0 -d $_ or -d "$_/."
4113 0 0 0 -d $_ or -d "$_/."
4149 0 0 0 -d $_ or -d "$_/."
4322 0 0 0 eval '(getpwnam($1))[7]' || my_home()
4407 0 0 0 $head eq '' or $head =~ /\A [A-Za-z]: \z/mosx
4477 0 0 0 $leaf eq '.' or $leaf eq '..'
4981 0 0 0 $char eq '\\' or $char eq '/'
4990 0 0 0 $subdir[-1] eq '\\' or $subdir[-1] eq '/'
5110 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5342 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5619 0 0 0 $offset > scalar @char or $offset < -1 * scalar(@char)
7067 0 0 3 $2 >= 6 or $2 == 5 and $3 ge '012'
7075 0 0 0 $2 >= 6 or $2 == 5 and $3 >= 12