Branch Coverage

blib/lib/Encode/Simple.pm
Criterion Covered Total %
branch 19 30 63.3


line true false branch
22 0 5 unless defined $input
26 4 1 unless (eval { do { $output = $obj->encode("$input", 9); 1 } })
28 4 1 if defined $error
34 0 4 unless defined $input
38 0 4 unless (eval { do { $output = $obj->encode("$input", 8); 1 } })
40 0 4 if defined $error
46 0 2 unless defined $input
50 1 1 unless (eval { do { $output = $obj->decode("$input", 9); 1 } })
52 1 1 if defined $error
58 0 2 unless defined $input
62 0 2 unless (eval { do { $output = $obj->decode("$input", 8); 1 } })
64 0 2 if defined $error
70 0 3 unless defined $encoding
72 0 3 unless defined $obj
78 0 5 if ref $error or $error =~ /\n(?!\z)/