Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
717 0 0 0 --$limit > 0 and $string =~ s/\A((?:$Egb18030::q_char)+?)$pattern//m
746 0 0 0 --$limit > 0 and length $string > 0
759 0 0 0 --$limit > 0 and length $string > 0
778 0 0 0 scalar @split >= 1 and $split[-1] eq ''
861 0 0 0 defined $replacementlist[$i] and $replacementlist[$i] ne ''
0 0 0 defined $replacementlist[-1] and $replacementlist[-1] ne ''
886 0 0 0 @char and not exists $tr{$char[0]}
903 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}
985 0 0 0 $pos < length $str and $pos <= $position
1005 0 0 0 @_ and wantarray
1030 0 0 0 @_ and wantarray
1056 0 0 0 @_ and wantarray
1081 2968 0 0 @_ and wantarray
1107 3271 0 0 @_ and wantarray
1138 0 0 0 $last_s_matched and $_[0] =~ /\A (?>[1-9][0-9]*) \z/mosx
1289 0 0 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
1534 0 0 0 0 < $i and $i < $#char
1868 434 0 616 $min le $first and $first le $max
434 596 20 $min le $first and $first le $max and $max le $last
1030 0 0 $min eq $first and $max eq $last
596 414 20 $first le $min and $max le $last
414 0 596 $min le $first and $last le $max
0 374 40 $first le $min and $min le $last
374 0 40 $first le $min and $min le $last and $last le $max
1945 1289 606 8 $ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx
1946 20 5 505 0 < $i and $i < $#char
2088 319 1343 505 defined $char[$i + 1] and $char[$i + 1] eq '...'
2111 20 20 485 $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]
2610 0 0 0 @_ and not wantarray
2659 0 0 0 @_ and not wantarray
2692 0 0 0 @_ and not wantarray
2727 0 0 0 @_ and not wantarray
2760 0 0 0 @_ and not wantarray
2793 0 0 0 @_ and not wantarray
2826 0 0 0 @_ and not wantarray
2861 0 0 0 @_ and not wantarray
2894 768 0 0 @_ and not wantarray
2938 0 0 0 @_ and not wantarray
2971 0 0 0 @_ and not wantarray
3004 0 0 0 @_ and not wantarray
3037 0 0 0 @_ and not wantarray
3062 0 0 0 @_ and not wantarray
3095 0 0 0 @_ and not wantarray
3128 0 0 0 @_ and not wantarray
3161 0 0 0 @_ and not wantarray
3194 0 0 0 @_ and not wantarray
3227 0 0 0 @_ and not wantarray
3260 0 0 0 @_ and not wantarray
3293 0 0 0 @_ and not wantarray
3319 0 0 0 @_ and not wantarray
3403 0 0 0 @_ and not wantarray
3469 0 0 0 @_ and not wantarray
3503 0 0 0 @_ and not wantarray
3537 0 0 0 @_ and not wantarray
4423 0 0 0 $head ne '' and ($head =~ / \G ($Egb18030::q_char) /gmosx)[-1] ne $pathsep
4446 0 0 0 $head ne '' and ($head =~ / \G ($Egb18030::q_char) /gmosx)[-1] ne $pathsep
4485 0 0 0 $cond eq 'd' and not &d("$head$leaf")
4497 0 0 0 &Egb18030::index($leaf, '.') == -1 and length $leaf <= 8
0 0 0 &Egb18030::index($leaf, '.') == -1 and length $leaf <= 8 and &Egb18030::index($pattern, '\\.') != -1
4567 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'}
4590 0 0 0 exists $ENV{'HOME'} and defined $ENV{'HOME'}
0 0 0 exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}
4609 0 0 0 defined $home and not &d($home)
4783 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
4827 0 0 0 $] =~ /^(?:5\.006|5\.008000)/mosx and $^O eq 'MSWin32'
5009 0 0 0 defined $ENV{'OS'} and $ENV{'OS'} eq 'Windows_NT'
5077 0 0 768 @_ >= 1 and $_[0] ne ''
5479 0 0 0 defined $1 and substr($&, -length($1), length $1) eq $1
5581 0 0 0 @_ and not wantarray
5947 55530 21688 1239 $Egb18030::slash eq 'm//' and m[\G (/) ]cgox
55530 21596 92 $Egb18030::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 3200 0 79 grep /\A \{ \z/msx, @char and grep /\A \} \z/msx, @char
8527 3735 17407 412 defined $char[$i + 1] and $char[$i + 1] eq '\\'
21142 390 22 defined $char[$i + 1] and $char[$i + 1] eq '\\' and $char[$i] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
8534 304 3531 204 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
8573 311079 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
311085 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
8825 3523 6 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
3529 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
9037 44 106 90 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9108 5545 1 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
5545 1 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
9141 3926 100 300 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
4026 62 238 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Egb18030::uc($char[$i]) ne &fc($char[$i])
690 3082 196 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9151 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 $Egb18030::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 $Egb18030::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 $Egb18030::q_char \z/mosx
9403 10 185 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9423 0 0 0 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9430 64 1437 94 $ope =~ /\A m? \z/mosx and $delimiter eq '?'
9522 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 &Egb18030::uc($char[$i]) ne &fc($char[$i])
52 9 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9777 421 0 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
421 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
9810 344 8 15 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
352 4 11 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Egb18030::uc($char[$i]) ne &fc($char[$i])
108 171 23 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
9820 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 $Egb18030::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 $Egb18030::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 $Egb18030::q_char \z/mosx
10180 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 &Egb18030::uc($char[$i]) ne &fc($char[$i])
38 10 0 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
10311 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
10331 85 6 0 defined $char[-1] and $char[-1] =~ /\A ([\x80-\xFF].*) (\\) \z/msx
10669 384 0 0 $char[$i] eq '\\L' and $char[$i + 1] eq '\\u'
384 0 0 $char[$i] eq '\\U' and $char[$i + 1] eq '\\l'
10702 358 3 14 $char[$i] eq '^' and not $modifier =~ /m/mosx
319 24 18 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx
343 0 18 $ignorecase and $char[$i] =~ /\A [\x00-\xFF] \z/mosx and &Egb18030::uc($char[$i]) ne &fc($char[$i])
131 167 7 $i >= 1 and $char[$i] =~ /\A [\?\+\*\{] \z/mosx
10712 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 $Egb18030::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 $Egb18030::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 $Egb18030::q_char \z/mosx
11028 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 &Egb18030::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
846 0 0 $_[4] || ''
956 0 2304 $position ||= 0
1395 122 5257 {'\\D', '${Egb18030::eD}', '\\S', '${Egb18030::eS}', '\\W', '${Egb18030::eW}', '\\d', '[0-9]', '\\s', '\\s', '\\w', '[0-9A-Z_a-z]', '\\C', '[\\x00-\\xFF]', '\\X', 'X', '\\H', '${Egb18030::eH}', '\\V', '${Egb18030::eV}', '\\h', '[\\x09\\x20]', '\\v', '[\\x0A\\x0B\\x0C\\x0D]', '\\R', '${Egb18030::eR}', '\\N', '${Egb18030::eN}', '\\b', '${Egb18030::eb}', '\\B', '${Egb18030::eB}'}->{$char} || ''
8444 7 4 $modifier ||= ''
8980 883 960 $modifier ||= ''
9466 121 42 $modifier ||= ''
9645 101 95 $modifier ||= ''
10124 63 33 $modifier ||= ''
10343 175 117 $modifier ||= ''
10615 134 151 $modifier ||= ''
10992 84 28 $modifier ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
698 0 0 0 not defined $limit or $limit <= 0
777 0 0 0 not defined $_[2] or $_[2] == 0
981 0 0 0 $position ||= length($str) - 1
1545 0 0 0 length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1]
2289 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
2368 75 5 272 s/ \A \\x(..) - \\x(..) //mosx or s/ \A \\x((..)) //mosx
3367 0 0 0 -d $_ or -d "$_/."
3433 0 0 0 -d $_ or -d "$_/."
4118 0 0 0 -d $_ or -d "$_/."
4154 0 0 0 -d $_ or -d "$_/."
4327 0 0 0 eval '(getpwnam($1))[7]' || my_home()
4412 0 0 0 $head eq '' or $head =~ /\A [A-Za-z]: \z/mosx
4482 0 0 0 $leaf eq '.' or $leaf eq '..'
4986 0 0 0 $char eq '\\' or $char eq '/'
4995 0 0 0 $subdir[-1] eq '\\' or $subdir[-1] eq '/'
5115 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5347 0 0 0 $e_mtime < $mtime or $mtime < $module_mtime
5624 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