Branch Coverage

blib/lib/Puppet/Body.pm
Criterion Covered Total %
branch 19 34 55.8


line true false branch
33 1 7 unless defined $$self{'name'}
34 0 8 unless defined $$self{'cloth'}
252 0 8 unless defined $ref
256 0 8 if (defined $$self{'content'}{$name})
261 0 8 unless $ref->isa('Puppet::Body')
294 0 3 unless defined $$self{'content'}{$_}
310 1 2 if scalar %{$$self{'container'};}
313 0 2 if (defined $$self{'content'})
323 0 0 wantarray ? :
0 5 unless defined $$self{'content'}
324 2 3 if scalar @_ == 0
325 0 3 if wantarray
332 4 0 defined $$self{'content'} ? :
338 0 0 wantarray ? :
0 2 unless defined $$self{'container'}
339 1 1 if scalar @_ == 0
340 0 1 if wantarray