Branch Coverage

blib/lib/JavaScript/DebugConsole.pm
Criterion Covered Total %
branch 15 22 68.1


line true false branch
12 0 1 $#_ == 0 ? :
13 1 0 unless defined $$self{'debug'} and $$self{'debug'} =~ /^(0|1)$/
19 0 2 ref $_[0] eq 'HASH' ? :
22 1 1 unless defined $args{'auto_open'}
26 1 1 unless defined $args{'debug'} and $args{'debug'} =~ /^(0|1)$/
50 0 2 if $args{'pre'}
53 1 1 if ($args{'debug'})
93 0 2 if $args{'pre'}
101 1 1 if ($args{'auto_open'})
132 0 2 unless $equal
134 2 0 if ($@) { }