Branch Coverage

Char/Elatin3.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 } })
309 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
314 0 0 if (/\A (?:$Char::Elatin3::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Elatin3::q_char)*? [*?] /mosx) { }
315 0 0 if (my(@glob) = glob(qq["$_"])) { }
325 0 0 if (my(@glob) = glob $_) { }
521 0 0 unless (defined $pattern)
526 0 0 unless (defined $string)
527 0 0 if (defined $_) { }
538 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
541 0 0 if (wantarray) { }
547 0 0 if $^W
565 0 0 if (not defined $limit) { }
574 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
581 0 0 if ('' =~ / \A $pattern \z /msx) { }
620 0 0 if ('' =~ / \A $pattern \z /msx) { }
625 0 0 if ($string =~ s/\A((?:$Char::Elatin3::q_char)+?)$pattern//m)
638 0 0 if ($string =~ s/\A((?:$Char::Elatin3::q_char)*?)$pattern//m)
648 0 0 if (length $string > 0)
653 0 0 if (not defined $_[2] or $_[2] == 0)
660 0 0 if (wantarray) { }
666 0 0 if $^W
682 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
689 0 0 if ($modifier =~ /x/mosx) { }
722 0 0 if ($modifier =~ /r/mosx)
723 0 0 if ($bind_operator =~ / !~ /mosx)
734 0 0 unless (exists $tr{$searchlist[$i]})
735 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 '') { }
752 0 0 if ($modifier =~ /c/mosx) { }
754 0 0 if (not exists $tr{$char}) { }
755 0 0 if (defined $replacementlist[0])
759 0 0 if ($modifier =~ /s/mosx)
773 0 0 if (exists $tr{$char}) { }
776 0 0 if ($modifier =~ /s/mosx)
789 0 0 if ($modifier =~ /r/mosx) { }
794 0 0 if ($bind_operator =~ / !~ /mosx) { }
809 0 0 if (@_ == 0) { }
834 0 0 if (substr($str, $pos, length $substr) eq $substr)
835 0 0 if ($pos >= $position)
839 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin3::q_char) /mosx) { }
860 0 0 if (substr($str, $pos, length $substr) eq $substr)
863 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin3::q_char) /mosx) { }
877 0 0 if (@_) { }
879 0 0 if (@_ and wantarray) { }
902 0 0 if (@_) { }
904 0 0 if (@_ and wantarray) { }
905 0 0 defined $lc{$_} ? :
908 0 0 defined $lc{$_} ? :
921 0 0 defined $lc{$_} ? :
928 0 0 if (@_) { }
930 0 0 if (@_ and wantarray) { }
953 0 0 if (@_) { }
955 0 0 if (@_ and wantarray) { }
956 0 0 defined $uc{$_} ? :
959 0 0 defined $uc{$_} ? :
972 0 0 defined $uc{$_} ? :
979 0 0 if (@_) { }
981 0 0 if (@_ and wantarray) { }
982 0 0 defined $fc{$_} ? :
985 0 0 defined $fc{$_} ? :
998 0 0 defined $fc{$_} ? :
1029 0 0 unless defined $char[$i]
1032 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) { }
1037 0 0 if ($char[$i + 1] eq ']')
1042 0 0 if (++$i > $#char)
1045 0 0 if ($char[$i] eq ']')
1051 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1074 0 0 if ($char[$i + 1] eq ']')
1079 0 0 if (++$i > $#char)
1082 0 0 if ($char[$i] eq ']')
1088 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1114 0 0 if ($uc ne $fc)
1115 0 0 if (length $fc == 1) { }
1127 0 0 unless defined $char[$i]
1129 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1133 0 0 if $i >= 1
1134 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1238 0 0 if (@chars1)
1241 0 0 if (exists $range_tr{1})
1255 0 0 if (@chars2)
1258 0 0 if (exists $range_tr{2})
1274 0 0 if (@chars3)
1277 0 0 if (exists $range_tr{3})
1295 0 0 if (@chars4)
1298 0 0 if (exists $range_tr{4})
1325 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::Elatin3::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Elatin3::q_char) /cgmosx) { }
1363 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1367 0 0 if (0 < $i and $i < $#char)
1378 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1383 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) { }
1384 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) { }
1385 0 0 if $char[$i - 1] le $_
1407 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1408 0 0 if $char[$i - 1] le $_
1424 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1425 0 0 if $char[$i - 1] le $_
1436 0 0 if (length $char[$i + 1] == 4) { }
1437 0 0 if $char[$i - 1] le $_
1457 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1464 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1488 0 0 if ($length == 1) { }
1492 0 0 if ($a1 > $z1)
1496 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1518 0 0 unless (exists $range_tr{$length})
1535 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) { }
1606 0 0 $modifier =~ /i/mosx ? :
1612 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::Elatin3::q_char) \z/mosx) { }
1613 0 0 if (0 < $i and $i < $#char)
1761 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) { }
1770 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1774 0 0 if ($char[$i - 1] gt $char[$i + 1])
1784 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]) { }
1807 0 0 if ($length == 1) { }
1820 0 0 if ($modifier =~ /i/mosx) { }
1823 0 0 if ($uc ne $fc) { }
1824 0 0 if (length $fc == 1) { }
1865 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) { }
1951 0 0 if (scalar @singleoctet >= 1)
1954 0 0 if ($modifier =~ /i/mosx)
1962 0 0 if ($uc eq $fc) { }
1966 0 0 if (length $fc == 1) { }
1977 0 0 if ($_ ne '')
1984 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
1993 0 0 if (ref $range)
1994 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2011 0 0 if (scalar @multipleoctet >= 2) { }
2032 0 0 if ($modifier =~ /i/mosx)
2040 0 0 if ($uc eq $fc) { }
2044 0 0 if (length $fc == 1) { }
2055 0 0 if ($_ ne '')
2062 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2071 0 0 if (ref $range)
2072 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2086 0 0 if (scalar @multipleoctet >= 1) { }
2087 0 0 if (scalar @singleoctet >= 1) { }
2099 0 0 if (scalar @singleoctet >= 1) { }
2229 0 0 @_ ? :
2231 0 0 if ($c == 0) { }
2251 0 0 if ($c == 0) { }
2269 0 0 if (wantarray) { }
2288 0 0 if (wantarray) { }
2316 0 0 unless defined $expr
2327 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2335 0 0 $1 ? :
2339 0 0 unless defined $cxix
2340 0 0 unless exists $iter{$cxix}
2343 0 0 if ($iter{$cxix} == 0)
2348 0 0 if (wantarray) { }
2353 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2376 0 0 unless defined $expr
2377 0 0 if $expr eq ''
2386 0 0 if ($expr =~ /\A " ((?:$Char::Elatin3::q_char)*) " \z/mosx)
2388 0 0 if ($cond eq 'd') { }
2389 0 0 if (-d $expr)
2394 0 0 if (-e $expr)
2403 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2404 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2409 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2410 0 0 if ($tail eq '')
2414 0 0 if ($head =~ / \A (?:$Char::Elatin3::q_char)*? [*?] /mosx)
2415 0 0 if (@globdir = _do_glob('d', $head))
2420 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2427 0 0 unless ($expr =~ / \A (?:$Char::Elatin3::q_char)*? [*?] /mosx)
2428 0 0 if ($head eq '.')
2431 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin3::q_char) /gmosx)[-1] ne $pathsep)
2435 0 0 if ($cond eq 'd') { }
2436 0 0 if (-d $head)
2441 0 0 if (-e $head)
2447 0 0 unless opendir *DIR, $head
2451 0 0 if ($head eq '.')
2454 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin3::q_char) /gmosx)[-1] ne $pathsep)
2467 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2490 0 0 if ($leaf eq '.' or $leaf eq '..')
2493 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2497 0 0 if (&$matchsub($leaf))
2505 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2509 0 0 if (&$matchsub("$leaf."))
2515 0 0 if (@matched)
2519 0 0 if ($fix_drive_relative_paths)
2541 0 0 defined $1 ? :
2575 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'}) { }
2598 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2617 0 0 if (defined $home and not -d $home)
2649 0 0 if @_
2651 0 0 if (/\A ($Char::Elatin3::q_char) /mosx) { }
2669 0 0 if (/\A ($Char::Elatin3::q_char) /mosx) { }
2687 0 0 if (wantarray) { }
2707 0 0 @_ ? :
2708 0 0 if @_ and not wantarray
2714 0 0 if (exists $range_tr{length $getc})
2715 0 0 if ($getc =~ /\A $Char::Elatin3::dot_s \z/mosx)
2716 0 0 wantarray ? :
2720 0 0 wantarray ? :
2728 0 0 if @_
2751 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) { }
2831 0 0 if (@_ == 3) { }
2838 0 0 if ($index == -1) { }
2852 0 0 if (@_ == 3) { }
2859 0 0 if ($rindex == -1) { }