Branch Coverage

blib/lib/GD/Graph/Error.pm
Criterion Covered Total %
branch 19 38 50.0


line true false branch
87 0 1 unless exists $Errors{$self}
94 0 1 $GD::Graph::Error::Debug > 3 ? :
0 1 $GD::Graph::Error::Debug ? :
0 1 $GD::Graph::Error::Debug > 5 ? :
100 1 0 if $_->{'level'} >= $min_level
103 1 0 unless wantarray and @return > 1 and $return[-1] =~ s/\n/\n\t/
107 1 0 wantarray ? :
113 0 1 if $GD::Graph::Error::Debug > 3
120 0 0 if $GD::Graph::Error::Debug > 3
156 2 3 unless exists $Errors{$self}
163 2 3 unless exists $Errors{$self}
216 5 1 if (ref $msg and ref $msg eq 'ARRAY' and @{$msg;} >= 2) { }
1 0 elsif (ref $_[0] eq '') { }
248 0 4 unless @_
252 0 6 unless my $e_h = __error_hash([caller], $GD::Graph::Error::ErrorLevel, shift())
254 1 5 if $e_h->{'level'} >= $GD::Graph::Error::CriticalLevel
262 0 0 unless @_
266 0 0 unless my $e_h = __error_hash([caller], $GD::Graph::Error::ErrorLevel, shift())
268 0 0 if $e_h->{'level'} >= $GD::Graph::Error::CriticalLevel