Branch Coverage

lib/Graph/Easy/Base.pm
Criterion Covered Total %
branch 50 70 71.4


line true false branch
31 1619 6642 if ref $args ne 'HASH' and @_ == 1
32 4664 3597 if ref $args ne 'HASH' and @_ > 1
58 0 7 $_[1] ? :
7 0 if @_ > 0
67 0 439 $_[1] ? :
439 1 if @_ > 0
69 0 440 unless $$self{'fatal_errors'}
78 6 654 if ref $$self{'_old_self'}
81 7 653 if ref $$self{'graph'}
83 115 538 if (defined $_[0])
86 1 114 if ($$self{'_catch_errors'}) { }
92 0 114 if $$self{'fatal_errors'} and $$self{'error'} ne ''
96 499 154 unless $$self{'error'}
120 1 0 if (@_ > 0)
122 1 0 if ($_[0]) { }
144 1 0 if (@_ > 0)
146 1 0 if ($_[0]) { }
165 1 0 if (@_ > 0)
167 1 0 if ($_[0]) { }
200 1 3 if ($$self{'_catch_warnings'}) { }
214 0 0 unless defined $level
217 0 0 if (ref $self and $$self{'debug'}) { }
236 46 13 if (defined $_[0])
247 3 10 if defined $1
249 5 5 if defined $$self{'cache'}{'subclass'}
256 5 0 if (defined $g)
259 5 0 unless defined $subclass
274 0 41851 if @_ > 0
278 38186 3665 if defined $1
280 1136 2529 if defined $$self{'cache'}{'class'}
288 2360 169 if (defined $g)
291 2360 0 unless defined $subclass
294 169 2360 unless defined $subclass
295 169 2360 unless defined $subclass
297 0 2529 if $subclass ne ''