Branch Coverage

blib/lib/MDOM/Dumper.pm
Criterion Covered Total %
branch 26 60 43.3


line true false branch
109 0 69 unless my $Element = _INSTANCE(shift(), 'MDOM::Element')
128 0 483 if (exists $options{$_})
129 0 0 if ($_ eq 'indent') { }
140 0 69 if ($$self{'display'}{'locations'})
141 0 0 $Element->isa('MDOM::Document') ? :
142 0 0 if ($Document->isa('MDOM::Document')) { }
185 0 69 unless my $array_ref = (shift())->_dump
202 0 0 unless my $array_ref = (shift())->_dump
214 861 0 ref $_[0] ? :
215 792 69 _INSTANCE($_[0], 'MDOM::Element') ? :
221 279 582 if ($Element->isa('MDOM::Token::Whitespace')) { }
16 566 elsif ($Element->isa('MDOM::Token::Comment')) { }
222 0 279 unless $$self{'display'}{'whitespace'}
224 0 16 unless $$self{'display'}{'comments'}
226 861 0 if $show
229 187 674 if ($Element->isa('MDOM::Node'))
240 861 0 ref $_[0] ? :
241 861 0 _INSTANCE($_[0], 'MDOM::Element') ? :
246 0 861 if ($$self{'display'}{'memaddr'})
251 0 861 if ($$self{'display'}{'locations'})
253 0 0 if ($Element->isa('MDOM::Token'))
255 0 0 if ($location)
264 861 0 if ($$self{'display'}{'indent'})
269 861 0 if ($$self{'display'}{'class'})
273 674 187 if ($Element->isa('MDOM::Token')) { }
0 187 elsif ($Element->isa('MDOM::Structure')) { }
275 674 0 if ($$self{'display'}{'content'})
285 0 0 if ($$self{'display'}{'content'})
286 0 0 $Element->start ? :
289 0 0 $Element->finish ? :