Branch Coverage

Char/Ecyrillic.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 } })
326 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
331 0 0 if (/\A (?:$Char::Ecyrillic::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Ecyrillic::q_char)*? [*?] /mosx) { }
332 0 0 if (my(@glob) = glob(qq["$_"])) { }
342 0 0 if (my(@glob) = glob $_) { }
538 0 0 unless (defined $pattern)
543 0 0 unless (defined $string)
544 0 0 if (defined $_) { }
555 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
558 0 0 if (wantarray) { }
564 0 0 if $^W
582 0 0 if (not defined $limit) { }
591 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
598 0 0 if ('' =~ / \A $pattern \z /msx) { }
637 0 0 if ('' =~ / \A $pattern \z /msx) { }
642 0 0 if ($string =~ s/\A((?:$Char::Ecyrillic::q_char)+?)$pattern//m)
655 0 0 if ($string =~ s/\A((?:$Char::Ecyrillic::q_char)*?)$pattern//m)
665 0 0 if (length $string > 0)
670 0 0 if (not defined $_[2] or $_[2] == 0)
677 0 0 if (wantarray) { }
683 0 0 if $^W
699 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
706 0 0 if ($modifier =~ /x/mosx) { }
739 0 0 if ($modifier =~ /r/mosx)
740 0 0 if ($bind_operator =~ / !~ /mosx)
751 0 0 unless (exists $tr{$searchlist[$i]})
752 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 '') { }
769 0 0 if ($modifier =~ /c/mosx) { }
771 0 0 if (not exists $tr{$char}) { }
772 0 0 if (defined $replacementlist[0])
776 0 0 if ($modifier =~ /s/mosx)
790 0 0 if (exists $tr{$char}) { }
793 0 0 if ($modifier =~ /s/mosx)
806 0 0 if ($modifier =~ /r/mosx) { }
811 0 0 if ($bind_operator =~ / !~ /mosx) { }
826 0 0 if (@_ == 0) { }
851 0 0 if (substr($str, $pos, length $substr) eq $substr)
852 0 0 if ($pos >= $position)
856 0 0 if (substr($str, $pos) =~ /\A ($Char::Ecyrillic::q_char) /mosx) { }
877 0 0 if (substr($str, $pos, length $substr) eq $substr)
880 0 0 if (substr($str, $pos) =~ /\A ($Char::Ecyrillic::q_char) /mosx) { }
894 0 0 if (@_) { }
896 0 0 if (@_ and wantarray) { }
919 0 0 if (@_) { }
921 0 0 if (@_ and wantarray) { }
922 0 0 defined $lc{$_} ? :
925 0 0 defined $lc{$_} ? :
938 0 0 defined $lc{$_} ? :
945 0 0 if (@_) { }
947 0 0 if (@_ and wantarray) { }
970 0 0 if (@_) { }
972 0 0 if (@_ and wantarray) { }
973 0 0 defined $uc{$_} ? :
976 0 0 defined $uc{$_} ? :
989 0 0 defined $uc{$_} ? :
996 0 0 if (@_) { }
998 0 0 if (@_ and wantarray) { }
999 0 0 defined $fc{$_} ? :
1002 0 0 defined $fc{$_} ? :
1015 0 0 defined $fc{$_} ? :
1046 0 0 unless defined $char[$i]
1049 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) { }
1054 0 0 if ($char[$i + 1] eq ']')
1059 0 0 if (++$i > $#char)
1062 0 0 if ($char[$i] eq ']')
1068 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1091 0 0 if ($char[$i + 1] eq ']')
1096 0 0 if (++$i > $#char)
1099 0 0 if ($char[$i] eq ']')
1105 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1131 0 0 if ($uc ne $fc)
1132 0 0 if (length $fc == 1) { }
1144 0 0 unless defined $char[$i]
1146 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1150 0 0 if $i >= 1
1151 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1255 0 0 if (@chars1)
1258 0 0 if (exists $range_tr{1})
1272 0 0 if (@chars2)
1275 0 0 if (exists $range_tr{2})
1291 0 0 if (@chars3)
1294 0 0 if (exists $range_tr{3})
1312 0 0 if (@chars4)
1315 0 0 if (exists $range_tr{4})
1342 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::Ecyrillic::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Ecyrillic::q_char) /cgmosx) { }
1380 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1384 0 0 if (0 < $i and $i < $#char)
1395 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1400 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) { }
1401 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) { }
1402 0 0 if $char[$i - 1] le $_
1424 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1425 0 0 if $char[$i - 1] le $_
1441 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1442 0 0 if $char[$i - 1] le $_
1453 0 0 if (length $char[$i + 1] == 4) { }
1454 0 0 if $char[$i - 1] le $_
1474 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1481 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1505 0 0 if ($length == 1) { }
1509 0 0 if ($a1 > $z1)
1513 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1535 0 0 unless (exists $range_tr{$length})
1552 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) { }
1623 0 0 $modifier =~ /i/mosx ? :
1629 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::Ecyrillic::q_char) \z/mosx) { }
1630 0 0 if (0 < $i and $i < $#char)
1778 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) { }
1787 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1791 0 0 if ($char[$i - 1] gt $char[$i + 1])
1801 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]) { }
1824 0 0 if ($length == 1) { }
1837 0 0 if ($modifier =~ /i/mosx) { }
1840 0 0 if ($uc ne $fc) { }
1841 0 0 if (length $fc == 1) { }
1882 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) { }
1968 0 0 if (scalar @singleoctet >= 1)
1971 0 0 if ($modifier =~ /i/mosx)
1979 0 0 if ($uc eq $fc) { }
1983 0 0 if (length $fc == 1) { }
1994 0 0 if ($_ ne '')
2001 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2010 0 0 if (ref $range)
2011 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2028 0 0 if (scalar @multipleoctet >= 2) { }
2049 0 0 if ($modifier =~ /i/mosx)
2057 0 0 if ($uc eq $fc) { }
2061 0 0 if (length $fc == 1) { }
2072 0 0 if ($_ ne '')
2079 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2088 0 0 if (ref $range)
2089 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2103 0 0 if (scalar @multipleoctet >= 1) { }
2104 0 0 if (scalar @singleoctet >= 1) { }
2116 0 0 if (scalar @singleoctet >= 1) { }
2246 0 0 @_ ? :
2248 0 0 if ($c == 0) { }
2268 0 0 if ($c == 0) { }
2286 0 0 if (wantarray) { }
2305 0 0 if (wantarray) { }
2333 0 0 unless defined $expr
2344 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2352 0 0 $1 ? :
2356 0 0 unless defined $cxix
2357 0 0 unless exists $iter{$cxix}
2360 0 0 if ($iter{$cxix} == 0)
2365 0 0 if (wantarray) { }
2370 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2393 0 0 unless defined $expr
2394 0 0 if $expr eq ''
2403 0 0 if ($expr =~ /\A " ((?:$Char::Ecyrillic::q_char)*) " \z/mosx)
2405 0 0 if ($cond eq 'd') { }
2406 0 0 if (-d $expr)
2411 0 0 if (-e $expr)
2420 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2421 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2426 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2427 0 0 if ($tail eq '')
2431 0 0 if ($head =~ / \A (?:$Char::Ecyrillic::q_char)*? [*?] /mosx)
2432 0 0 if (@globdir = _do_glob('d', $head))
2437 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2444 0 0 unless ($expr =~ / \A (?:$Char::Ecyrillic::q_char)*? [*?] /mosx)
2445 0 0 if ($head eq '.')
2448 0 0 if ($head ne '' and ($head =~ / \G ($Char::Ecyrillic::q_char) /gmosx)[-1] ne $pathsep)
2452 0 0 if ($cond eq 'd') { }
2453 0 0 if (-d $head)
2458 0 0 if (-e $head)
2464 0 0 unless opendir *DIR, $head
2468 0 0 if ($head eq '.')
2471 0 0 if ($head ne '' and ($head =~ / \G ($Char::Ecyrillic::q_char) /gmosx)[-1] ne $pathsep)
2484 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2507 0 0 if ($leaf eq '.' or $leaf eq '..')
2510 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2514 0 0 if (&$matchsub($leaf))
2522 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2526 0 0 if (&$matchsub("$leaf."))
2532 0 0 if (@matched)
2536 0 0 if ($fix_drive_relative_paths)
2558 0 0 defined $1 ? :
2592 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'}) { }
2615 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2634 0 0 if (defined $home and not -d $home)
2666 0 0 if @_
2668 0 0 if (/\A ($Char::Ecyrillic::q_char) /mosx) { }
2686 0 0 if (/\A ($Char::Ecyrillic::q_char) /mosx) { }
2704 0 0 if (wantarray) { }
2724 0 0 @_ ? :
2725 0 0 if @_ and not wantarray
2731 0 0 if (exists $range_tr{length $getc})
2732 0 0 if ($getc =~ /\A $Char::Ecyrillic::dot_s \z/mosx)
2733 0 0 wantarray ? :
2737 0 0 wantarray ? :
2745 0 0 if @_
2768 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) { }
2848 0 0 if (@_ == 3) { }
2855 0 0 if ($index == -1) { }
2869 0 0 if (@_ == 3) { }
2876 0 0 if ($rindex == -1) { }