Branch Coverage

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


line true false branch
106 0 80 unless my $Element = &_INSTANCE(shift(), "PPI::Element")
126 0 560 if (exists $options{$_})
127 0 0 if ($_ eq 'indent') { }
173 0 0 unless my $array_ref = (shift())->_dump
190 0 80 unless my $array_ref = (shift())->_dump
202 1813 0 ref $_[0] ? :
203 1733 80 &_INSTANCE($_[0], 'PPI::Element') ? :
209 574 1239 if ($Element->isa('PPI::Token::Whitespace')) { }
14 1225 elsif ($Element->isa('PPI::Token::Comment')) { }
210 0 574 unless $self->{'display'}{'whitespace'}
212 0 14 unless $self->{'display'}{'comments'}
214 1813 0 if $show
217 482 1331 if ($Element->isa("PPI::Node"))
228 1813 0 ref $_[0] ? :
229 1813 0 &_INSTANCE($_[0], 'PPI::Element') ? :
234 0 1813 if ($self->{'display'}{'memaddr'})
239 0 1813 if ($self->{'display'}{'locations'})
241 0 0 if ($Element->isa("PPI::Token"))
243 0 0 if ($location)
252 1813 0 if ($self->{'display'}{'indent'})
257 1813 0 if ($self->{'display'}{'class'})
261 1331 482 if ($Element->isa('PPI::Token')) { }
136 346 elsif ($Element->isa('PPI::Structure')) { }
263 1331 0 if ($self->{'display'}{'content'})
273 136 0 if ($self->{'display'}{'content'})
274 136 0 $Element->start ? :
277 131 5 $Element->finish ? :