Branch Coverage

lib/Template.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
56 1 1209 @opts == 1 && ref $opts[0] eq 'HASH' ? :
60 1208 2 unless defined $$options{'binmode'}
64 2 1208 if $DEBUG and $$options{'binmode'}
68 1207 3 if (defined $output) { }
70 4 1203 unless (ref $outstream)
72 4 0 if $outpath
76 0 1207 if $error = &_output($outstream, \$output, $options)
129 1 143 if defined $debug and not $debug =~ /^\d+$/
133 7 137 if (my $constants = $$config{'CONSTANTS'})
162 1 1207 if (($reftype = ref $where) eq 'CODE') { }
0 1207 elsif ($reftype eq 'GLOB') { }
1200 7 elsif ($reftype eq 'SCALAR') { }
1 6 elsif ($reftype eq 'ARRAY') { }
1 5 elsif (blessed $where and $where->can('print')) { }
5 0 elsif (not $reftype) { }
187 0 5 unless -d $dir
188 0 5 if ($@) { }
5 0 elsif (open FP, ">$where") { }
195 2 3 if ($bm and $bm eq 1) { }
0 3 elsif ($bm) { }