Branch Coverage

Char/Elatin10.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 } })
315 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
320 0 0 if (/\A (?:$Char::Elatin10::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Elatin10::q_char)*? [*?] /mosx) { }
321 0 0 if (my(@glob) = glob(qq["$_"])) { }
331 0 0 if (my(@glob) = glob $_) { }
527 0 0 unless (defined $pattern)
532 0 0 unless (defined $string)
533 0 0 if (defined $_) { }
544 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
547 0 0 if (wantarray) { }
553 0 0 if $^W
571 0 0 if (not defined $limit) { }
580 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
587 0 0 if ('' =~ / \A $pattern \z /msx) { }
626 0 0 if ('' =~ / \A $pattern \z /msx) { }
631 0 0 if ($string =~ s/\A((?:$Char::Elatin10::q_char)+?)$pattern//m)
644 0 0 if ($string =~ s/\A((?:$Char::Elatin10::q_char)*?)$pattern//m)
654 0 0 if (length $string > 0)
659 0 0 if (not defined $_[2] or $_[2] == 0)
666 0 0 if (wantarray) { }
672 0 0 if $^W
688 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
695 0 0 if ($modifier =~ /x/mosx) { }
728 0 0 if ($modifier =~ /r/mosx)
729 0 0 if ($bind_operator =~ / !~ /mosx)
740 0 0 unless (exists $tr{$searchlist[$i]})
741 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 '') { }
758 0 0 if ($modifier =~ /c/mosx) { }
760 0 0 if (not exists $tr{$char}) { }
761 0 0 if (defined $replacementlist[0])
765 0 0 if ($modifier =~ /s/mosx)
779 0 0 if (exists $tr{$char}) { }
782 0 0 if ($modifier =~ /s/mosx)
795 0 0 if ($modifier =~ /r/mosx) { }
800 0 0 if ($bind_operator =~ / !~ /mosx) { }
815 0 0 if (@_ == 0) { }
840 0 0 if (substr($str, $pos, length $substr) eq $substr)
841 0 0 if ($pos >= $position)
845 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin10::q_char) /mosx) { }
866 0 0 if (substr($str, $pos, length $substr) eq $substr)
869 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin10::q_char) /mosx) { }
883 0 0 if (@_) { }
885 0 0 if (@_ and wantarray) { }
908 0 0 if (@_) { }
910 0 0 if (@_ and wantarray) { }
911 0 0 defined $lc{$_} ? :
914 0 0 defined $lc{$_} ? :
927 0 0 defined $lc{$_} ? :
934 0 0 if (@_) { }
936 0 0 if (@_ and wantarray) { }
959 0 0 if (@_) { }
961 0 0 if (@_ and wantarray) { }
962 0 0 defined $uc{$_} ? :
965 0 0 defined $uc{$_} ? :
978 0 0 defined $uc{$_} ? :
985 0 0 if (@_) { }
987 0 0 if (@_ and wantarray) { }
988 0 0 defined $fc{$_} ? :
991 0 0 defined $fc{$_} ? :
1004 0 0 defined $fc{$_} ? :
1035 0 0 unless defined $char[$i]
1038 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) { }
1043 0 0 if ($char[$i + 1] eq ']')
1048 0 0 if (++$i > $#char)
1051 0 0 if ($char[$i] eq ']')
1057 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1080 0 0 if ($char[$i + 1] eq ']')
1085 0 0 if (++$i > $#char)
1088 0 0 if ($char[$i] eq ']')
1094 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1120 0 0 if ($uc ne $fc)
1121 0 0 if (length $fc == 1) { }
1133 0 0 unless defined $char[$i]
1135 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1139 0 0 if $i >= 1
1140 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1244 0 0 if (@chars1)
1247 0 0 if (exists $range_tr{1})
1261 0 0 if (@chars2)
1264 0 0 if (exists $range_tr{2})
1280 0 0 if (@chars3)
1283 0 0 if (exists $range_tr{3})
1301 0 0 if (@chars4)
1304 0 0 if (exists $range_tr{4})
1331 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::Elatin10::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Elatin10::q_char) /cgmosx) { }
1369 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1373 0 0 if (0 < $i and $i < $#char)
1384 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1389 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) { }
1390 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) { }
1391 0 0 if $char[$i - 1] le $_
1413 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1414 0 0 if $char[$i - 1] le $_
1430 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1431 0 0 if $char[$i - 1] le $_
1442 0 0 if (length $char[$i + 1] == 4) { }
1443 0 0 if $char[$i - 1] le $_
1463 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1470 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1494 0 0 if ($length == 1) { }
1498 0 0 if ($a1 > $z1)
1502 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1524 0 0 unless (exists $range_tr{$length})
1541 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) { }
1612 0 0 $modifier =~ /i/mosx ? :
1618 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::Elatin10::q_char) \z/mosx) { }
1619 0 0 if (0 < $i and $i < $#char)
1767 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) { }
1776 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1780 0 0 if ($char[$i - 1] gt $char[$i + 1])
1790 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]) { }
1813 0 0 if ($length == 1) { }
1826 0 0 if ($modifier =~ /i/mosx) { }
1829 0 0 if ($uc ne $fc) { }
1830 0 0 if (length $fc == 1) { }
1871 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) { }
1957 0 0 if (scalar @singleoctet >= 1)
1960 0 0 if ($modifier =~ /i/mosx)
1968 0 0 if ($uc eq $fc) { }
1972 0 0 if (length $fc == 1) { }
1983 0 0 if ($_ ne '')
1990 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
1999 0 0 if (ref $range)
2000 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2017 0 0 if (scalar @multipleoctet >= 2) { }
2038 0 0 if ($modifier =~ /i/mosx)
2046 0 0 if ($uc eq $fc) { }
2050 0 0 if (length $fc == 1) { }
2061 0 0 if ($_ ne '')
2068 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2077 0 0 if (ref $range)
2078 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2092 0 0 if (scalar @multipleoctet >= 1) { }
2093 0 0 if (scalar @singleoctet >= 1) { }
2105 0 0 if (scalar @singleoctet >= 1) { }
2235 0 0 @_ ? :
2237 0 0 if ($c == 0) { }
2257 0 0 if ($c == 0) { }
2275 0 0 if (wantarray) { }
2294 0 0 if (wantarray) { }
2322 0 0 unless defined $expr
2333 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2341 0 0 $1 ? :
2345 0 0 unless defined $cxix
2346 0 0 unless exists $iter{$cxix}
2349 0 0 if ($iter{$cxix} == 0)
2354 0 0 if (wantarray) { }
2359 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2382 0 0 unless defined $expr
2383 0 0 if $expr eq ''
2392 0 0 if ($expr =~ /\A " ((?:$Char::Elatin10::q_char)*) " \z/mosx)
2394 0 0 if ($cond eq 'd') { }
2395 0 0 if (-d $expr)
2400 0 0 if (-e $expr)
2409 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2410 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2415 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2416 0 0 if ($tail eq '')
2420 0 0 if ($head =~ / \A (?:$Char::Elatin10::q_char)*? [*?] /mosx)
2421 0 0 if (@globdir = _do_glob('d', $head))
2426 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2433 0 0 unless ($expr =~ / \A (?:$Char::Elatin10::q_char)*? [*?] /mosx)
2434 0 0 if ($head eq '.')
2437 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin10::q_char) /gmosx)[-1] ne $pathsep)
2441 0 0 if ($cond eq 'd') { }
2442 0 0 if (-d $head)
2447 0 0 if (-e $head)
2453 0 0 unless opendir *DIR, $head
2457 0 0 if ($head eq '.')
2460 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin10::q_char) /gmosx)[-1] ne $pathsep)
2473 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2496 0 0 if ($leaf eq '.' or $leaf eq '..')
2499 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2503 0 0 if (&$matchsub($leaf))
2511 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2515 0 0 if (&$matchsub("$leaf."))
2521 0 0 if (@matched)
2525 0 0 if ($fix_drive_relative_paths)
2547 0 0 defined $1 ? :
2581 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'}) { }
2604 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2623 0 0 if (defined $home and not -d $home)
2655 0 0 if @_
2657 0 0 if (/\A ($Char::Elatin10::q_char) /mosx) { }
2675 0 0 if (/\A ($Char::Elatin10::q_char) /mosx) { }
2693 0 0 if (wantarray) { }
2713 0 0 @_ ? :
2714 0 0 if @_ and not wantarray
2720 0 0 if (exists $range_tr{length $getc})
2721 0 0 if ($getc =~ /\A $Char::Elatin10::dot_s \z/mosx)
2722 0 0 wantarray ? :
2726 0 0 wantarray ? :
2734 0 0 if @_
2757 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) { }
2837 0 0 if (@_ == 3) { }
2844 0 0 if ($index == -1) { }
2858 0 0 if (@_ == 3) { }
2865 0 0 if ($rindex == -1) { }