Branch Coverage

lib/Devel/Graph.pm
Criterion Covered Total %
branch 95 122 77.8


line true false branch
36 0 0 $$args{'strip_pod'} ? :
0 21 if defined $$args{'strip_pod'}
40 21 0 unless defined $$self{'fatal_errors'}
60 0 0 if @_
74 18 0 if @_ == 2
77 1 17 unless (ref $self)
116 0 26 if ref $code and ref $code ne 'SCALAR'
119 2 0 unless ref $code or -f $code
124 0 24 unless ref $doc
127 24 0 if $$self{'opt'}{'strip_pod'}
170 13 54 if $child->isa($type)
183 0 1 unless ref $element
190 2 1 if $child->isa($type)
191 1 2 if scalar @blocks == 2
206 0 0 if $$e{'_type'} == $type
220 16 0 unless defined $type
222 0 16 unless defined $type
226 1 15 if $type eq 'continue'
229 1 14 if $type eq 'for' or $type eq 'foreach'
232 3 11 unless defined $self->_find_first($element, 'PPI::Structure::Condition')
245 25 37 unless $child->significant
247 13 24 if ($child->isa('PPI::Structure::Block'))
253 26 11 unless $in_cond == 1
255 11 26 if $in_cond == 0 and $child->isa('PPI::Token::Word')
261 7 4 if ($type eq 'if')
264 2 5 if $c eq 'unless'
272 4 7 if ($type eq 'while')
275 3 1 if $c eq 'until'
282 7 4 if $type =~ /^(if|unless)\z/
285 4 0 if $type =~ /^(until|while)\z/
307 0 9 unless defined $block
317 3 6 if $type eq 'unless'
329 1 8 if ($else_block) { }
378 3 2 if $child->significant
397 5 2 if $type eq 'until'
399 5 2 if $type eq 'until'
407 5 2 if $type eq 'until'
419 1 6 if (defined $continue)
487 3 2 if $child->isa('PPI::Statement')
492 1 5 if $child->isa('PPI::Structure::Block')
497 1 5 if $child->isa('PPI::Token::Word') or $child->isa('PPI::Token::Symbol')
502 0 1 if (@blocks == 1)
528 0 0 if ($$cur{'_type'} == 7) { }
597 10 19 unless $child->significant
599 5 14 if $child->isa('PPI::Token::Word') and $child =~ /^(if|unless|until|while)\z/
622 3 15 if $child->isa('PPI::Token::Structure') and $child eq ';'
623 5 10 if $child->significant
627 2 3 if $type =~ /^(if|unless)\z/
630 3 0 if $type =~ /^(until|while)\z/
655 0 1 if ($type ne 'return') { }
658 0 0 unless defined $t
704 0 105 unless defined $element
709 16 89 if $element->isa('PPI::Statement::Compound')
713 1 88 if $element->isa('PPI::Statement::Sub')
717 1 87 if $element->isa('PPI::Statement::Break')
721 5 82 if ref $element eq 'PPI::Statement' and $element->find_any('PPI::Structure::Condition')
725 24 58 if (ref $element eq 'PPI::Statement')
728 0 24 if $c =~ /^(if|unless)\z/
734 40 42 if $element->isa('PPI::Statement')
740 40 2 if ($element->isa('PPI::Node'))
744 58 86 if $child->significant