Branch Coverage

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


line true false branch
26 0 177 if ($^X =~ / jperl /imosx)
49 0 177 if ($@)
76 0 0 if (not ref $name and &index($name, '::') == -1 and &index($name, q[']) == -1)
81 0 0 if ($name =~ /^(([^a-z])|(\^[a-z_]+))\z/i or $global{$name}) { }
87 0 0 @_ > 1 ? :
98 0 0 @_ > 1 ? :
109 177 0 if (eval { do { local $@; CORE::require strict } })
312 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
317 0 0 if (/\A (?:$Char::Elatin4::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Elatin4::q_char)*? [*?] /mosx) { }
318 0 0 if (my(@glob) = glob(qq["$_"])) { }
328 0 0 if (my(@glob) = glob $_) { }
524 0 0 unless (defined $pattern)
529 0 0 unless (defined $string)
530 0 0 if (defined $_) { }
541 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
544 0 0 if (wantarray) { }
550 0 0 if $^W
568 0 0 if (not defined $limit) { }
577 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
584 0 0 if ('' =~ / \A $pattern \z /msx) { }
623 0 0 if ('' =~ / \A $pattern \z /msx) { }
628 0 0 if ($string =~ s/\A((?:$Char::Elatin4::q_char)+?)$pattern//m)
641 0 0 if ($string =~ s/\A((?:$Char::Elatin4::q_char)*?)$pattern//m)
651 0 0 if (length $string > 0)
656 0 0 if (not defined $_[2] or $_[2] == 0)
663 0 0 if (wantarray) { }
669 0 0 if $^W
685 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
692 0 0 if ($modifier =~ /x/mosx) { }
725 0 0 if ($modifier =~ /r/mosx)
726 0 0 if ($bind_operator =~ / !~ /mosx)
737 0 0 unless (exists $tr{$searchlist[$i]})
738 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 '') { }
755 0 0 if ($modifier =~ /c/mosx) { }
757 0 0 if (not exists $tr{$char}) { }
758 0 0 if (defined $replacementlist[0])
762 0 0 if ($modifier =~ /s/mosx)
776 0 0 if (exists $tr{$char}) { }
779 0 0 if ($modifier =~ /s/mosx)
792 0 0 if ($modifier =~ /r/mosx) { }
797 0 0 if ($bind_operator =~ / !~ /mosx) { }
812 0 0 if (@_ == 0) { }
837 0 0 if (substr($str, $pos, length $substr) eq $substr)
838 0 0 if ($pos >= $position)
842 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin4::q_char) /mosx) { }
863 0 0 if (substr($str, $pos, length $substr) eq $substr)
866 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin4::q_char) /mosx) { }
880 0 0 if (@_) { }
882 0 0 if (@_ and wantarray) { }
905 0 0 if (@_) { }
907 0 0 if (@_ and wantarray) { }
908 0 0 defined $lc{$_} ? :
911 0 0 defined $lc{$_} ? :
924 0 0 defined $lc{$_} ? :
931 0 0 if (@_) { }
933 0 0 if (@_ and wantarray) { }
956 0 0 if (@_) { }
958 0 0 if (@_ and wantarray) { }
959 0 0 defined $uc{$_} ? :
962 0 0 defined $uc{$_} ? :
975 0 0 defined $uc{$_} ? :
982 0 0 if (@_) { }
984 0 0 if (@_ and wantarray) { }
985 0 0 defined $fc{$_} ? :
988 0 0 defined $fc{$_} ? :
1001 0 0 defined $fc{$_} ? :
1032 0 0 unless defined $char[$i]
1035 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) { }
1040 0 0 if ($char[$i + 1] eq ']')
1045 0 0 if (++$i > $#char)
1048 0 0 if ($char[$i] eq ']')
1054 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1077 0 0 if ($char[$i + 1] eq ']')
1082 0 0 if (++$i > $#char)
1085 0 0 if ($char[$i] eq ']')
1091 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1117 0 0 if ($uc ne $fc)
1118 0 0 if (length $fc == 1) { }
1130 0 0 unless defined $char[$i]
1132 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1136 0 0 if $i >= 1
1137 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1241 0 0 if (@chars1)
1244 0 0 if (exists $range_tr{1})
1258 0 0 if (@chars2)
1261 0 0 if (exists $range_tr{2})
1277 0 0 if (@chars3)
1280 0 0 if (exists $range_tr{3})
1298 0 0 if (@chars4)
1301 0 0 if (exists $range_tr{4})
1328 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::Elatin4::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Elatin4::q_char) /cgmosx) { }
1366 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1370 0 0 if (0 < $i and $i < $#char)
1381 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1386 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) { }
1387 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) { }
1388 0 0 if $char[$i - 1] le $_
1410 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1411 0 0 if $char[$i - 1] le $_
1427 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1428 0 0 if $char[$i - 1] le $_
1439 0 0 if (length $char[$i + 1] == 4) { }
1440 0 0 if $char[$i - 1] le $_
1460 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1467 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1491 0 0 if ($length == 1) { }
1495 0 0 if ($a1 > $z1)
1499 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1521 0 0 unless (exists $range_tr{$length})
1538 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) { }
1609 0 0 $modifier =~ /i/mosx ? :
1615 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::Elatin4::q_char) \z/mosx) { }
1616 0 0 if (0 < $i and $i < $#char)
1764 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) { }
1773 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1777 0 0 if ($char[$i - 1] gt $char[$i + 1])
1787 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]) { }
1810 0 0 if ($length == 1) { }
1823 0 0 if ($modifier =~ /i/mosx) { }
1826 0 0 if ($uc ne $fc) { }
1827 0 0 if (length $fc == 1) { }
1868 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) { }
1954 0 0 if (scalar @singleoctet >= 1)
1957 0 0 if ($modifier =~ /i/mosx)
1965 0 0 if ($uc eq $fc) { }
1969 0 0 if (length $fc == 1) { }
1980 0 0 if ($_ ne '')
1987 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
1996 0 0 if (ref $range)
1997 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2014 0 0 if (scalar @multipleoctet >= 2) { }
2035 0 0 if ($modifier =~ /i/mosx)
2043 0 0 if ($uc eq $fc) { }
2047 0 0 if (length $fc == 1) { }
2058 0 0 if ($_ ne '')
2065 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2074 0 0 if (ref $range)
2075 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2089 0 0 if (scalar @multipleoctet >= 1) { }
2090 0 0 if (scalar @singleoctet >= 1) { }
2102 0 0 if (scalar @singleoctet >= 1) { }
2232 0 0 @_ ? :
2234 0 0 if ($c == 0) { }
2254 0 0 if ($c == 0) { }
2272 0 0 if (wantarray) { }
2291 0 0 if (wantarray) { }
2319 0 0 unless defined $expr
2330 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2338 0 0 $1 ? :
2342 0 0 unless defined $cxix
2343 0 0 unless exists $iter{$cxix}
2346 0 0 if ($iter{$cxix} == 0)
2351 0 0 if (wantarray) { }
2356 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2379 0 0 unless defined $expr
2380 0 0 if $expr eq ''
2389 0 0 if ($expr =~ /\A " ((?:$Char::Elatin4::q_char)*) " \z/mosx)
2391 0 0 if ($cond eq 'd') { }
2392 0 0 if (-d $expr)
2397 0 0 if (-e $expr)
2406 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2407 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2412 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2413 0 0 if ($tail eq '')
2417 0 0 if ($head =~ / \A (?:$Char::Elatin4::q_char)*? [*?] /mosx)
2418 0 0 if (@globdir = _do_glob('d', $head))
2423 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2430 0 0 unless ($expr =~ / \A (?:$Char::Elatin4::q_char)*? [*?] /mosx)
2431 0 0 if ($head eq '.')
2434 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin4::q_char) /gmosx)[-1] ne $pathsep)
2438 0 0 if ($cond eq 'd') { }
2439 0 0 if (-d $head)
2444 0 0 if (-e $head)
2450 0 0 unless opendir *DIR, $head
2454 0 0 if ($head eq '.')
2457 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin4::q_char) /gmosx)[-1] ne $pathsep)
2470 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2493 0 0 if ($leaf eq '.' or $leaf eq '..')
2496 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2500 0 0 if (&$matchsub($leaf))
2508 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2512 0 0 if (&$matchsub("$leaf."))
2518 0 0 if (@matched)
2522 0 0 if ($fix_drive_relative_paths)
2544 0 0 defined $1 ? :
2578 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'}) { }
2601 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2620 0 0 if (defined $home and not -d $home)
2652 0 0 if @_
2654 0 0 if (/\A ($Char::Elatin4::q_char) /mosx) { }
2672 0 0 if (/\A ($Char::Elatin4::q_char) /mosx) { }
2690 0 0 if (wantarray) { }
2710 0 0 @_ ? :
2711 0 0 if @_ and not wantarray
2717 0 0 if (exists $range_tr{length $getc})
2718 0 0 if ($getc =~ /\A $Char::Elatin4::dot_s \z/mosx)
2719 0 0 wantarray ? :
2723 0 0 wantarray ? :
2731 0 0 if @_
2754 177 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) { }
2834 0 0 if (@_ == 3) { }
2841 0 0 if ($index == -1) { }
2855 0 0 if (@_ == 3) { }
2862 0 0 if ($rindex == -1) { }