Condition Coverage

blib/lib/Perl/Critic/Document.pm
Criterion Covered Total %
condition 36 57 63.1


and 3 conditions

line !l l&&!r l&&r condition
126 123 0 18 builtin::blessed($ref) && $ref->isa('PPI::Document')
231 0 0 3 builtin::blessed($element) and $element->isa("PPI::Element")
309 0 0 0 $stmt_loc->[0] == $inner_loc->[0] and $stmt_loc->[1] >= $inner_loc->[1]
325 0 0 0 _inner_is_defined_by_outer($inner_elem, $parent) and _location_is_in_right_hand_side_of_assignment($parent, $inner_elem)
346 0 0 0 $outer_elem->isa("PPI::Statement::Variable") and $inner_elem->isa("PPI::Token::Symbol")
393 0 0 0 $kid->isa("PPI::Token::Operator") and "=" eq $kid->content
399 0 0 0 $l->[0] == $inner_loc->[0] and $l->[1] >= $inner_loc->[1]
647 113 1 27 defined $file_name and ref $args->{'-program-extensions'} eq "ARRAY"
662 110 27 1 defined $file_name and $file_name =~ / [.] PL \z /msx

or 2 conditions

line l !l condition
175 3134 3272 $self->{'_elements_of'}{$wanted} || ''
601 2278 1656 $$cache_ref{$classes->[$i]} ||= []
625 136 5 $self->schild(0) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
141 12 0 3 $self->SUPER::isa(@args) || ref $self && $self->{'_doc'} && $self->{'_doc'}->isa(@args)
151 75 1 6407 ref $wanted or not $wanted
76 1 6406 ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx
185 118 1 88 ref $wanted or not $wanted
119 17 71 ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx
200 1 1 2 ref $wanted or not $wanted
2 1 1 ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx
489 266 0 0 ref $policy || $policy