Branch Coverage

lib/Jacode4e/RoundTrip.pm
Criterion Covered Total %
branch 27 48 56.2


line true false branch
20 0 57 if $] < "5.006"
844 0 2774835 if (ref $_[0] ne "SCALAR")
847 0 2774835 unless (exists $x{$OUTPUT_encoding})
850 0 2774835 unless (exists $x{$INPUT_encoding})
856 1653806 1121029 if ($INPUT_encoding =~ /^(?:cp932x|cp932|cp932ibm|cp932nec|sjis2004|cp00930|keis78|keis83|keis90|jef|jef9p|jipsj|jipse|letsj)$/)
857 1653243 563 if (defined $option->{'INPUT_LAYOUT'})
860 1653243 0 if ($INPUT_LAYOUT =~ /^[SD]*$/) { }
871 1653448 1121803 if (defined $INPUT_LAYOUT) { }
878 2775147 104 if (not defined $last_ctype or $ctype ne $last_ctype)
879 256 2774891 if ($option->{'OUTPUT_SHIFTING'})
886 2775251 0 if (defined $input_octets)
887 71 2775180 if (defined $option->{'OVERRIDE_MAPPING'}{$input_octets}) { }
892 3625 2771555 if (not defined $char) { }
810 2770745 elsif ($char eq "\363\260\204\200") { }
893 50 3575 if (defined $option->{'GETA'}) { }
901 50 760 if (defined $option->{'SPACE'}) { }
910 0 2770745 if (not defined $output_octets or $output_octets eq '') { }
911 0 0 if (defined $option->{'GETA'}) { }
937 0 0 if ($version ne $Jacode4e::RoundTrip::VERSION)
946 0 0 if ($0 eq __FILE__ and defined $ARGV[0] and $ARGV[0] eq "--dumptable")
956 0 0 unless open FILE, ">$0-$Jacode4e::RoundTrip::VERSION.TABLE.\U$encoding\E.txt"
966 0 0 if (grep((!/\343\200\200/), @line) >= 1)
980 0 0 unless open FILE, ">$0-$Jacode4e::RoundTrip::VERSION.TABLE.CP932X.txt"
995 0 0 if (grep((!/\343\200\200/), @line) >= 1)