Branch Coverage

Char/Elatin1.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 } })
282 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
287 0 0 if (/\A (?:$Char::Elatin1::q_char)*? [ ] /mosx) { }
0 0 elsif (/\A (?:$Char::Elatin1::q_char)*? [*?] /mosx) { }
288 0 0 if (my(@glob) = glob(qq["$_"])) { }
298 0 0 if (my(@glob) = glob $_) { }
494 0 0 unless (defined $pattern)
499 0 0 unless (defined $string)
500 0 0 if (defined $_) { }
511 0 0 if ($string eq '') { }
0 0 elsif ($pattern eq ' ') { }
514 0 0 if (wantarray) { }
520 0 0 if $^W
538 0 0 if (not defined $limit) { }
547 0 0 if (not defined $limit or $limit <= 0) { }
0 0 elsif ($limit > 0) { }
554 0 0 if ('' =~ / \A $pattern \z /msx) { }
593 0 0 if ('' =~ / \A $pattern \z /msx) { }
598 0 0 if ($string =~ s/\A((?:$Char::Elatin1::q_char)+?)$pattern//m)
611 0 0 if ($string =~ s/\A((?:$Char::Elatin1::q_char)*?)$pattern//m)
621 0 0 if (length $string > 0)
626 0 0 if (not defined $_[2] or $_[2] == 0)
633 0 0 if (wantarray) { }
639 0 0 if $^W
655 0 0 if ($pattern =~ /\(\?\^? ([\-A-Za-z]+) :/mosx)
662 0 0 if ($modifier =~ /x/mosx) { }
695 0 0 if ($modifier =~ /r/mosx)
696 0 0 if ($bind_operator =~ / !~ /mosx)
707 0 0 unless (exists $tr{$searchlist[$i]})
708 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 '') { }
725 0 0 if ($modifier =~ /c/mosx) { }
727 0 0 if (not exists $tr{$char}) { }
728 0 0 if (defined $replacementlist[0])
732 0 0 if ($modifier =~ /s/mosx)
746 0 0 if (exists $tr{$char}) { }
749 0 0 if ($modifier =~ /s/mosx)
762 0 0 if ($modifier =~ /r/mosx) { }
767 0 0 if ($bind_operator =~ / !~ /mosx) { }
782 0 0 if (@_ == 0) { }
807 0 0 if (substr($str, $pos, length $substr) eq $substr)
808 0 0 if ($pos >= $position)
812 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin1::q_char) /mosx) { }
833 0 0 if (substr($str, $pos, length $substr) eq $substr)
836 0 0 if (substr($str, $pos) =~ /\A ($Char::Elatin1::q_char) /mosx) { }
850 0 0 if (@_) { }
852 0 0 if (@_ and wantarray) { }
875 0 0 if (@_) { }
877 0 0 if (@_ and wantarray) { }
878 0 0 defined $lc{$_} ? :
881 0 0 defined $lc{$_} ? :
894 0 0 defined $lc{$_} ? :
901 0 0 if (@_) { }
903 0 0 if (@_ and wantarray) { }
926 0 0 if (@_) { }
928 0 0 if (@_ and wantarray) { }
929 0 0 defined $uc{$_} ? :
932 0 0 defined $uc{$_} ? :
945 0 0 defined $uc{$_} ? :
952 0 0 if (@_) { }
954 0 0 if (@_ and wantarray) { }
955 0 0 defined $fc{$_} ? :
958 0 0 defined $fc{$_} ? :
971 0 0 defined $fc{$_} ? :
1002 0 0 unless defined $char[$i]
1005 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) { }
1010 0 0 if ($char[$i + 1] eq ']')
1015 0 0 if (++$i > $#char)
1018 0 0 if ($char[$i] eq ']')
1024 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1047 0 0 if ($char[$i + 1] eq ']')
1052 0 0 if (++$i > $#char)
1055 0 0 if ($char[$i] eq ']')
1061 0 0 if (do { $char =~ /\A [.|)] \z/mosx })
1087 0 0 if ($uc ne $fc)
1088 0 0 if (length $fc == 1) { }
1100 0 0 unless defined $char[$i]
1102 0 0 if (do { $char[$i] =~ /\A [\?\+\*\{] \z/mosx if $i >= 1 })
1106 0 0 if $i >= 1
1107 0 0 unless ($char[$i - 1] =~ /\A [\x00-\xFF] \z/mosx)
1211 0 0 if (@chars1)
1214 0 0 if (exists $range_tr{1})
1228 0 0 if (@chars2)
1231 0 0 if (exists $range_tr{2})
1247 0 0 if (@chars3)
1250 0 0 if (exists $range_tr{3})
1268 0 0 if (@chars4)
1271 0 0 if (exists $range_tr{4})
1298 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::Elatin1::q_char) /cgmosx) { }
0 0 elsif (/\G ($Char::Elatin1::q_char) /cgmosx) { }
1336 0 0 if ($char[$i] eq '\\-') { }
0 0 elsif ($char[$i] eq '-') { }
1340 0 0 if (0 < $i and $i < $#char)
1351 0 0 if (length $char[$i - 1] > length $char[$i + 1] or $char[$i - 1] gt $char[$i + 1])
1356 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) { }
1357 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) { }
1358 0 0 if $char[$i - 1] le $_
1380 0 0 if (length $char[$i + 1] == 2) { }
0 0 elsif (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1381 0 0 if $char[$i - 1] le $_
1397 0 0 if (length $char[$i + 1] == 3) { }
0 0 elsif (length $char[$i + 1] == 4) { }
1398 0 0 if $char[$i - 1] le $_
1409 0 0 if (length $char[$i + 1] == 4) { }
1410 0 0 if $char[$i - 1] le $_
1430 0 0 if (scalar @_ == 0) { }
0 0 elsif (scalar @_ == 1) { }
0 0 elsif (scalar @_ == 2) { }
1437 0 0 if ($_[0] > $_[1]) { }
0 0 elsif ($_[0] == $_[1]) { }
0 0 elsif ($_[0] + 1 == $_[1]) { }
1461 0 0 if ($length == 1) { }
1465 0 0 if ($a1 > $z1)
1469 0 0 if ($a1 == $z1) { }
0 0 elsif ($a1 + 1 == $z1) { }
1491 0 0 unless (exists $range_tr{$length})
1508 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) { }
1579 0 0 $modifier =~ /i/mosx ? :
1585 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::Elatin1::q_char) \z/mosx) { }
1586 0 0 if (0 < $i and $i < $#char)
1734 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) { }
1743 0 0 if (length $char[$i - 1] > length $char[$i + 1]) { }
0 0 elsif (length $char[$i - 1] == length $char[$i + 1]) { }
1747 0 0 if ($char[$i - 1] gt $char[$i + 1])
1757 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]) { }
1780 0 0 if ($length == 1) { }
1793 0 0 if ($modifier =~ /i/mosx) { }
1796 0 0 if ($uc ne $fc) { }
1797 0 0 if (length $fc == 1) { }
1838 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) { }
1924 0 0 if (scalar @singleoctet >= 1)
1927 0 0 if ($modifier =~ /i/mosx)
1935 0 0 if ($uc eq $fc) { }
1939 0 0 if (length $fc == 1) { }
1950 0 0 if ($_ ne '')
1957 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
1966 0 0 if (ref $range)
1967 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
1984 0 0 if (scalar @multipleoctet >= 2) { }
2005 0 0 if ($modifier =~ /i/mosx)
2013 0 0 if ($uc eq $fc) { }
2017 0 0 if (length $fc == 1) { }
2028 0 0 if ($_ ne '')
2035 0 0 if (exists $singleoctet_ignorecase{$ord}) { }
2044 0 0 if (ref $range)
2045 0 0 if (scalar @{$range;} == 1) { }
0 0 elsif (scalar @{$range;} == 2) { }
2059 0 0 if (scalar @multipleoctet >= 1) { }
2060 0 0 if (scalar @singleoctet >= 1) { }
2072 0 0 if (scalar @singleoctet >= 1) { }
2202 0 0 @_ ? :
2204 0 0 if ($c == 0) { }
2224 0 0 if ($c == 0) { }
2242 0 0 if (wantarray) { }
2261 0 0 if (wantarray) { }
2289 0 0 unless defined $expr
2300 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
2308 0 0 $1 ? :
2312 0 0 unless defined $cxix
2313 0 0 unless exists $iter{$cxix}
2316 0 0 if ($iter{$cxix} == 0)
2321 0 0 if (wantarray) { }
2326 0 0 if ($iter{$cxix} = scalar @{$entries{$cxix};}) { }
2349 0 0 unless defined $expr
2350 0 0 if $expr eq ''
2359 0 0 if ($expr =~ /\A " ((?:$Char::Elatin1::q_char)*) " \z/mosx)
2361 0 0 if ($cond eq 'd') { }
2362 0 0 if (-d $expr)
2367 0 0 if (-e $expr)
2376 0 0 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx)
2377 0 0 if ($expr =~ s( \A ((?:[A-Za-z]:)?) ([^/\\]) )[$1./$2]mosx)
2382 0 0 if (($head, $tail) = _parse_path($expr, $pathsep))
2383 0 0 if ($tail eq '')
2387 0 0 if ($head =~ / \A (?:$Char::Elatin1::q_char)*? [*?] /mosx)
2388 0 0 if (@globdir = _do_glob('d', $head))
2393 0 0 if ($head eq '' or $head =~ /\A [A-Za-z]: \z/mosx)
2400 0 0 unless ($expr =~ / \A (?:$Char::Elatin1::q_char)*? [*?] /mosx)
2401 0 0 if ($head eq '.')
2404 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin1::q_char) /gmosx)[-1] ne $pathsep)
2408 0 0 if ($cond eq 'd') { }
2409 0 0 if (-d $head)
2414 0 0 if (-e $head)
2420 0 0 unless opendir *DIR, $head
2424 0 0 if ($head eq '.')
2427 0 0 if ($head ne '' and ($head =~ / \G ($Char::Elatin1::q_char) /gmosx)[-1] ne $pathsep)
2440 0 0 if ($char eq '*') { }
0 0 elsif ($char eq '?') { }
0 0 elsif ((my $fc = fc($char)) ne $char) { }
2463 0 0 if ($leaf eq '.' or $leaf eq '..')
2466 0 0 if ($cond eq 'd' and not -d "$head$leaf")
2470 0 0 if (&$matchsub($leaf))
2478 0 0 if (index($leaf, '.') == -1 and length $leaf <= 8 and index($pattern, '\\.') != -1)
2482 0 0 if (&$matchsub("$leaf."))
2488 0 0 if (@matched)
2492 0 0 if ($fix_drive_relative_paths)
2514 0 0 defined $1 ? :
2548 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'}) { }
2571 0 0 if (exists $ENV{'HOME'} and defined $ENV{'HOME'}) { }
0 0 elsif (exists $ENV{'LOGDIR'} and $ENV{'LOGDIR'}) { }
2590 0 0 if (defined $home and not -d $home)
2622 0 0 if @_
2624 0 0 if (/\A ($Char::Elatin1::q_char) /mosx) { }
2642 0 0 if (/\A ($Char::Elatin1::q_char) /mosx) { }
2660 0 0 if (wantarray) { }
2680 0 0 @_ ? :
2681 0 0 if @_ and not wantarray
2687 0 0 if (exists $range_tr{length $getc})
2688 0 0 if ($getc =~ /\A $Char::Elatin1::dot_s \z/mosx)
2689 0 0 wantarray ? :
2693 0 0 wantarray ? :
2701 0 0 if @_
2724 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) { }
2804 0 0 if (@_ == 3) { }
2811 0 0 if ($index == -1) { }
2825 0 0 if (@_ == 3) { }
2832 0 0 if ($rindex == -1) { }