Branch Coverage

blib/lib/EJS/Template/IO.pm
Criterion Covered Total %
branch 21 34 61.7


line true false branch
54 0 229 if (not defined $input and defined $self->{'in'})
58 229 0 if (defined $input) { }
59 0 229 if (&openhandle($input)) { }
221 8 elsif (ref $input) { }
65 0 8 unless open $in, $input
72 146 83 if ($callback) { }
79 146 0 if $should_close
80 0 146 if $e
122 3 143 if (not defined $output and defined $self->{'out'})
126 146 0 if (defined $output) { }
127 11 135 if (&openhandle($output)) { }
135 0 elsif (ref $output) { }
134 0 0 unless open $out, '>', $output
141 146 0 if ($callback) { }
148 135 11 if $should_close
149 0 146 if $e
171 0 5 unless ($out)