Branch Coverage

blib/lib/PPI/Dumper.pm
Criterion Covered Total %
branch 30 54 55.5


line true false branch
106 0 78 unless my $Element = &_INSTANCE(shift(), "PPI::Element")
126 0 546 if (exists $options{$_})
127 0 0 if ($_ eq 'indent') { }
173 0 0 unless my $array_ref = (shift())->_dump
190 0 78 unless my $array_ref = (shift())->_dump
202 1737 0 ref $_[0] ? :
203 1659 78 &_INSTANCE($_[0], 'PPI::Element') ? :
209 547 1190 if ($Element->isa('PPI::Token::Whitespace')) { }
14 1176 elsif ($Element->isa('PPI::Token::Comment')) { }
210 0 547 unless $self->{'display'}{'whitespace'}
212 0 14 unless $self->{'display'}{'comments'}
214 1737 0 if $show
217 473 1264 if ($Element->isa("PPI::Node"))
228 1737 0 ref $_[0] ? :
229 1737 0 &_INSTANCE($_[0], 'PPI::Element') ? :
234 0 1737 if ($self->{'display'}{'memaddr'})
239 0 1737 if ($self->{'display'}{'locations'})
241 0 0 if ($Element->isa("PPI::Token"))
243 0 0 if ($location)
252 1737 0 if ($self->{'display'}{'indent'})
257 1737 0 if ($self->{'display'}{'class'})
261 1264 473 if ($Element->isa('PPI::Token')) { }
135 338 elsif ($Element->isa('PPI::Structure')) { }
263 1264 0 if ($self->{'display'}{'content'})
273 135 0 if ($self->{'display'}{'content'})
274 135 0 $Element->start ? :
277 130 5 $Element->finish ? :