Branch Coverage

blib/lib/Sjis.pm
Criterion Covered Total %
branch 26 78 33.3


line true false branch
32 0 385 if ($^X =~ / jperl /imosx)
133 0 385 if (&Esjis::e("$filename.e"))
134 0 0 if (exists $ENV{'CHAR_DEBUG'}) { }
0 0 elsif (&Esjis::z("$filename.e")) { }
174 0 0 if ($mtime_escape < $mtime_source or $mtime_escape < $mtime_filter)
180 385 0 unless (&Esjis::e("$filename.e"))
182 0 385 unless Esjis::_open_a($fh, "$filename.e")
190 0 385 if (do { $^O eq 'MacOS' }) { }
0 385 elsif (exists $ENV{'CHAR_NONBLOCK'}) { }
219 0 0 if ($@)
228 0 385 unless seek $fh, 0, 0
236 0 385 if ($^O eq 'MacOS')
243 0 385 unless close $fh
247 0 385 unless Esjis::_open_r($fh, "$filename.e")
249 0 385 if (do { $^O eq 'MacOS' }) { }
0 385 elsif (exists $ENV{'CHAR_NONBLOCK'}) { }
259 0 0 if ($@)
268 0 385 if ($^W)
271 0 385 if (defined $^I)
311 0 385 if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/mosx) { }
0 385 elsif ($^O eq 'MacOS') { }
358 0 0 if ($word =~ / [ ] /mosx) { }
393 0 385 unless Esjis::_open_r($fh, $script)
396 0 385 unless close $fh
398 0 385 if (/^ use Esjis(?:(?>\s+)(?>[0-9\.]*))?(?>\s*); $/mosx) { }
404 0 385 if (s/\A(#!.+?\n)//mos)
411 0 385 if (s/\A(\@rem(?>\s*)=(?>\s*)'.*?'(?>\s*);\s*\n)//mos)
425 0 385 if (s/(.*^#(?>\s*)line(?>\s+)(?>[0-9]+)(?:(?>\s+)"(?:$q_char)+?")?\s*\n)//mos)
444 385 0 if (s/^ (?>\s*) use (?>\s+) (?: Char | Sjis ) (?>\s*) ([^\x81-\x9F\xE0-\xFC;]*) ; \s* \n? $//mosx)
448 0 385 if ($list =~ s/\A ((?>[0-9]+)\.(?>[0-9]+)) \.0 (?>\s*) //mosx) { }
0 385 elsif ($list =~ s/\A ((?>[0-9]+)(?>\.[0-9]*)) (?>\s*) //mosx) { }
450 0 0 if ($version ne $Sjis::VERSION)
453 0 0 if (scalar keys %file >= 2)
472 0 0 if ($version > $Sjis::VERSION)
478 0 385 unless ($list =~ /\A (?>\s*) \z/mosx)
482 0 0 if /\A ord \z/mosx
483 0 0 if /\A ord \z/mosx
484 0 0 if /\A reverse \z/mosx
485 0 0 if /\A getc \z/mosx