Branch Coverage

Char/Egreek.pm
Criterion Covered Total %
branch 4 562 0.7


line true false branch
23 0 176 if ($^X =~ / jperl /imosx)
46 0 176 if ($@)
73 0 0 if (not ref $name and &index($name, '::') == -1 and &index($name, q[']) == -1)
78 0 0 if ($name =~ /^(([^a-z])|(\^[a-z_]+))\z/i or $global{$name}) { }
84 0 0 @_ > 1 ? :
95 0 0 @_ > 1 ? :
106 176 0 if (eval { do { local $@; CORE::require strict } })
288 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
293 0 0 if (/\A (?:$Char::Egreek::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Egreek::q_char)*? [*?] /mosx) { }
294 0 0 if (my(@glob) = glob(qq["$_"])) { }
304 0 0 if (my(@glob) = glob $_) { }
500 0 0 unless (defined $pattern)
505 0 0 unless (defined $string)
506 0 0 if (defined $_) { }
517 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
520 0 0 if (wantarray) { }
526 0 0 if $^W
544 0 0 if (not defined $limit) { }
553 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
560 0 0 if ('' =~ / \A $pattern \z /msx) { }
599 0 0 if ('' =~ / \A $pattern \z /msx) { }
604 0 0 if ($string =~ s/\A((?:$Char::Egreek::q_char)+?)$pattern//m)
617 0 0 if ($string =~ s/\A((?:$Char::Egreek::q_char)*?)$pattern//m)
627 0 0 if (length $string > 0)
632 0 0 if (not defined $_[2] or $_[2] == 0)
639 0 0 if (wantarray) { }
645 0 0 if $^W
661 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
668 0 0 if ($modifier =~ /x/mosx) { }
701 0 0 if ($modifier =~ /r/mosx)
702 0 0 if ($bind_operator =~ / !~ /mosx)
713 0 0 unless (exists $tr{$searchlist[$i]})
714 0 0 if (defined $replacementlist[$i] and $replacementlist[$i] ne '') { }
0 0 elsif ($modifier =~ /d/mosx) { }
0 0 elsif (defined $replacementlist[-1] and $replacementlist[-1] ne '') { }
731 0 0 if ($modifier =~ /c/mosx) { }
733 0 0 if (not exists $tr{$char}) { }
734 0 0 if (defined $replacementlist[0])
738 0 0 if ($modifier =~ /s/mosx)
752 0 0 if (exists $tr{$char}) { }
755 0 0 if ($modifier =~ /s/mosx)
768 0 0 if ($modifier =~ /r/mosx) { }
773 0 0 if ($bind_operator =~ / !~ /mosx) { }
788 0 0 if (@_ == 0) { }
813 0 0 if (substr($str, $pos, length $substr) eq $substr)
814 0 0 if ($pos >= $position)
818 0 0 if (substr($str, $pos) =~ /\A ($Char::Egreek::q_char) /mosx) { }
839 0 0 if (substr($str, $pos, length $substr) eq $substr)
842 0 0 if (substr($str, $pos) =~ /\A ($Char::Egreek::q_char) /mosx) { }
856 0 0 if (@_) { }
858 0 0 if (@_ and wantarray) { }
881 0 0 if (@_) { }
883 0 0 if (@_ and wantarray) { }
884 0 0 defined $lc{$_} ? :
887 0 0 defined $lc{$_} ? :
900 0 0 defined $lc{$_} ? :
907 0 0 if (@_) { }
909 0 0 if (@_ and wantarray) { }
932 0 0 if (@_) { }
934 0 0 if (@_ and wantarray) { }
935 0 0 defined $uc{$_} ? :
938 0 0 defined $uc{$_} ? :
951 0 0 defined $uc{$_} ? :
958 0 0 if (@_) { }
960 0 0 if (@_ and wantarray) { }
961 0 0 defined $fc{$_} ? :
964 0 0 defined $fc{$_} ? :
977 0 0 defined $fc{$_} ? :
1008 0 0 unless defined $char[$i]
1011 0 0 if ($char[$i] eq '[') { }
0 0 elsif ($char[$i] eq '[^') { }
0 0 elsif (my $char = classic_character_class($char[$i])) { }
0 0 elsif ($char[$i] =~ /\A [\x00-\xFF] \z/mosx) { }
1016 0 0 if ($char[$i + 1] eq ']')
1021 0 0 if (++$i > $#char)
1024 0 0 if ($char[$i] eq ']')
1030 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1053 0 0 if ($char[$i + 1] eq ']')
1058 0 0 if (++$i > $#char)
1061 0 0 if ($char[$i] eq ']')
1067 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1093 0 0 if ($uc ne $fc)
1094 0 0 if (length $fc == 1) { }
1106 0 0 unless defined $char[$i]
1108 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1112 0 0 if $i >= 1
1113 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1217 0 0 if (@chars1)
1220 0 0 if (exists $range_tr{1})
1234 0 0 if (@chars2)
1237 0 0 if (exists $range_tr{2})
1253 0 0 if (@chars3)
1256 0 0 if (exists $range_tr{3})
1274 0 0 if (@chars4)
1277 0 0 if (exists $range_tr{4})
1304 0 0 if (/\G (\\0?55|\\x2[Dd]|\\-) /cgmosx) { }
0 0 elsif (/\G \\ ([0-7]{2,3}) /cgmosx) { }
0 0 elsif (/\G \\x ([0-9A-Fa-f]{1,2}) /cgmosx) { }
0 0 elsif (/\G \\c ([\x40-\x5F]) /cgmosx) { }
0 0 elsif (/\G (\\ [0nrtfbae]) /cgmosx) { }
0 0 elsif (/\G \\ ($Char::Egreek::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Egreek::q_char) /cgmosx) { }
1342 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1346 0 0 if (0 < $i and $i < $#char)
1357 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1362 0 0 if (length $char[$i - 1] == 1) { }
0 0 elsif (length $char[$i - 1] == 2) { }
0 0 elsif (length $char[$i - 1] == 3) { }
0 0 elsif (length $char[$i - 1] == 4) { }
1363 0 0 if (length $char[$i + 1] == 1) { }
0 0 elsif (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1364 0 0 if $char[$i - 1] le $_
1386 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1387 0 0 if $char[$i - 1] le $_
1403 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1404 0 0 if $char[$i - 1] le $_
1415 0 0 if (length $char[$i + 1] == 4) { }
1416 0 0 if $char[$i - 1] le $_
1436 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1443 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1467 0 0 if ($length == 1) { }
1471 0 0 if ($a1 > $z1)
1475 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1497 0 0 unless (exists $range_tr{$length})
1514 0 0 if ($max lt $first) { }
0 0 elsif ($min le $first and $first le $max and $max le $last) { }
0 0 elsif ($min eq $first and $max eq $last) { }
0 0 elsif ($first le $min and $max le $last) { }
0 0 elsif ($min le $first and $last le $max) { }
0 0 elsif ($first le $min and $min le $last and $last le $max) { }
0 0 elsif ($last lt $min) { }
1585 0 0 $modifier =~ /i/mosx ? :
1591 0 0 if ($char[$i] eq '-') { }
0 0 elsif ($char[$i] =~ /\A \\o \{ ([0-7]+) \} \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\x \{ ([0-9A-Fa-f]+) \} \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ (N) ( \{ ([^0-9\}][^\}]*) \} ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ (p) ( \{ ([^0-9\}][^\}]*) \} ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ (P) ( \{ ([^0-9\}][^\}]*) \} ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ ( [pPX] ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ ([0-7]{2,3}) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\x ([0-9A-Fa-f]{1,2}) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\c ([\x40-\x5F]) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (\\ [0nrtfbaedswDSWHVhvR]) \z/mosx) { }
0 0 elsif ($ignorecase and $char[$i] =~ /\A ( \[\: \^? (?:lower|upper) :\] ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A ( \[\: \^? (?:alnum|alpha|ascii|blank|cntrl|digit|graph|lower|print|punct|space|upper|word|xdigit) :\] ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A \\ ($Char::Egreek::q_char) \z/mosx) { }
1592 0 0 if (0 < $i and $i < $#char)
1740 0 0 if (defined $char[$i + 1] and $char[$i + 1] eq '...') { }
0 0 elsif ($char[$i] eq '...') { }
0 0 elsif ($char[$i] =~ /\A [\x00-\xFF] \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (?: \\h ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (?: \\v ) \z/mosx) { }
0 0 elsif ($char[$i] =~ /\A (?: \\d | \\s | \\w ) \z/mosx) { }
1749 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1753 0 0 if ($char[$i - 1] gt $char[$i + 1])
1763 0 0 if ($length == length $char[$i - 1] and $length == length $char[$i + 1]) { }
0 0 elsif ($length == length $char[$i - 1]) { }
0 0 elsif (length $char[$i - 1] < $length and $length < length $char[$i + 1]) { }
0 0 elsif ($length == length $char[$i + 1]) { }
1786 0 0 if ($length == 1) { }
1799 0 0 if ($modifier =~ /i/mosx) { }
1802 0 0 if ($uc ne $fc) { }
1803 0 0 if (length $fc == 1) { }
1844 0 0 if ($_ eq '...') { }
0 0 elsif (/\A \n \z/mosx) { }
0 0 elsif (/\A \r \z/mosx) { }
0 0 elsif (/\A ([\x00-\x20\x7F-\xFF]) \z/mosx) { }
0 0 elsif (/\A [\x00-\xFF] \z/mosx) { }
1930 0 0 if (scalar @singleoctet >= 1)
1933 0 0 if ($modifier =~ /i/mosx)
1941 0 0 if ($uc eq $fc) { }
1945 0 0 if (length $fc == 1) { }
1956 0 0 if ($_ ne '')
1963 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
1972 0 0 if (ref $range)
1973 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
1990 0 0 if (scalar @multipleoctet >= 2) { }
2011 0 0 if ($modifier =~ /i/mosx)
2019 0 0 if ($uc eq $fc) { }
2023 0 0 if (length $fc == 1) { }
2034 0 0 if ($_ ne '')
2041 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2050 0 0 if (ref $range)
2051 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2065 0 0 if (scalar @multipleoctet >= 1) { }
2066 0 0 if (scalar @singleoctet >= 1) { }
2078 0 0 if (scalar @singleoctet >= 1) { }
2208 0 0 @_ ? :
2210 0 0 if ($c == 0) { }
2230 0 0 if ($c == 0) { }
2248 0 0 if (wantarray) { }
2267 0 0 if (wantarray) { }
2295 0 0 unless defined $expr
2306 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2314 0 0 $1 ? :
2318 0 0 unless defined $cxix
2319 0 0 unless exists $iter{$cxix}
2322 0 0 if ($iter{$cxix} == 0)
2327 0 0 if (wantarray) { }
2332 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2355 0 0 unless defined $expr
2356 0 0 if $expr eq ''
2365 0 0 if ($expr =~ /\A " ((?:$Char::Egreek::q_char)*) " \z/mosx)
2367 0 0 if ($cond eq 'd') { }
2368 0 0 if (-d $expr)
2373 0 0 if (-e $expr)
2382 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2383 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2388 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2389 0 0 if ($tail eq '')
2393 0 0 if ($head =~ / \A (?:$Char::Egreek::q_char)*? [*?] /mosx)
2394 0 0 if (@globdir = _do_glob('d', $head))
2399 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2406 0 0 unless ($expr =~ / \A (?:$Char::Egreek::q_char)*? [*?] /mosx)
2407 0 0 if ($head eq '.')
2410 0 0 if ($head ne '' and ($head =~ / \G ($Char::Egreek::q_char) /gmosx)[-1] ne $pathsep)
2414 0 0 if ($cond eq 'd') { }
2415 0 0 if (-d $head)
2420 0 0 if (-e $head)
2426 0 0 unless opendir *DIR, $head
2430 0 0 if ($head eq '.')
2433 0 0 if ($head ne '' and ($head =~ / \G ($Char::Egreek::q_char) /gmosx)[-1] ne $pathsep)
2446 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2469 0 0 if ($leaf eq '.' or $leaf eq '..')
2472 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2476 0 0 if (&$matchsub($leaf))
2484 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2488 0 0 if (&$matchsub("$leaf."))
2494 0 0 if (@matched)
2498 0 0 if ($fix_drive_relative_paths)
2520 0 0 defined $1 ? :
2554 0 0 if (exists $ENV{'HOME'} and $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'USERPROFILE'} and $ENV{'USERPROFILE'}) { }
0 0 elsif (exists $ENV{'HOMEDRIVE'} and exists $ENV{'HOMEPATH'} and $ENV{'HOMEDRIVE'} and $ENV{'HOMEPATH'}) { }
2577 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2596 0 0 if (defined $home and not -d $home)
2628 0 0 if @_
2630 0 0 if (/\A ($Char::Egreek::q_char) /mosx) { }
2648 0 0 if (/\A ($Char::Egreek::q_char) /mosx) { }
2666 0 0 if (wantarray) { }
2686 0 0 @_ ? :
2687 0 0 if @_ and not wantarray
2693 0 0 if (exists $range_tr{length $getc})
2694 0 0 if ($getc =~ /\A $Char::Egreek::dot_s \z/mosx)
2695 0 0 wantarray ? :
2699 0 0 wantarray ? :
2707 0 0 if @_
2730 176 0 $] >= 5.014 ? :
0 0 if ($offset > scalar @char or $offset < -1 * scalar(@char))
0 0 if ($offset == 0) { }
0 0 elsif ($offset > 0) { }
0 0 if ($length == 0) { }
0 0 elsif ($length > 0) { }
0 0 if ($offset == 0) { }
0 0 elsif ($offset > 0) { }
0 0 if (@_ == 4) { }
0 0 elsif (@_ == 3) { }
2810 0 0 if (@_ == 3) { }
2817 0 0 if ($index == -1) { }
2831 0 0 if (@_ == 3) { }
2838 0 0 if ($rindex == -1) { }