Branch Coverage

blib/lib/Hook/Output/File.pm
Criterion Covered Total %
branch 23 32 71.8


line true false branch
27 0 8 if defined &blessed($class) or $class ne "Hook::Output::File"
38 12 4 exists $opts{$_} && defined $opts{$_} ? :
48 6 2 if ($streams{'STDOUT'})
49 0 6 unless open $old_out, ">&", "STDOUT"
50 0 6 unless open STDOUT, ">>", $paths{'STDOUT'}
56 6 2 if ($streams{'STDERR'})
57 0 6 unless open $old_err, ">&", "STDERR"
58 0 6 unless open STDERR, ">>", $paths{'STDERR'}
66 6 2 if $streams{'STDOUT'}
67 6 2 if $streams{'STDERR'}
92 0 8 if not defined $opts{'stdout'} || defined $opts{'stderr'}
99 0 8 unless &blessed($self) eq "Hook::Output::File"
103 6 2 if (exists $handles{'STDOUT'})
105 0 6 unless open STDOUT, ">&", $handles{'STDOUT'}
108 6 2 if (exists $handles{'STDERR'})
110 0 6 unless open STDERR, ">&", $handles{'STDERR'}