Branch Coverage

blib/lib/Sub/Go.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
33 1 42 unless defined $arg
39 27 15 if (ref $arg eq 'ARRAY') { }
6 9 elsif (ref $arg eq 'HASH') { }
0 9 elsif (ref $arg eq 'GLOB') { }
0 9 elsif (ref $arg eq 'CODE') { }
1 8 elsif (blessed $arg and $arg->can('next')) { }
42 5 110 if ref $r[0] eq 'Sub::Go::Break'
64 0 0 if ref $r eq 'Sub::Go::Break'
71 0 0 if ref $r eq 'Sub::Go::Break'
84 9 33 if (ref $$_go_self{'rest'} eq 'Sub::Go' and not $$_go_self{'yielded'} and not $$_go_self{'stop'}) { }
1 32 elsif (ref $$_go_self{'rest'} eq 'SCALAR') { }
3 29 elsif (ref $$_go_self{'rest'} eq 'ARRAY') { }
2 27 elsif (ref $$_go_self{'rest'} eq 'HASH') { }
88 4 5 if (@$ret > 1) { }
89 0 4 $$_go_self{'by'} ? :
95 0 5 $$_go_self{'by'} ? :
109 13 14 @$ret > 1 ? :
119 2 0 if $self_ref = $$h{'$_go_self'}
121 0 2 unless $self_ref
136 3 3 if $self_ref = $$h{'$_go_self'}
138 0 3 unless $self_ref