Condition Coverage

blib/lib/Perl/Critic/Document.pm
Criterion Covered Total %
condition 35 57 61.4


and 3 conditions

line !l l&&!r l&&r condition
126 123 0 17 &blessed($ref) && $ref->isa('PPI::Document')
231 0 0 0 &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 112 1 27 defined $file_name and ref $args->{'-program-extensions'} eq "ARRAY"
662 109 27 1 defined $file_name and $file_name =~ / [.] PL \z /msx

or 2 conditions

line l !l condition
175 3051 3157 $self->{'_elements_of'}{$wanted} || ''
601 2265 1641 $$cache_ref{$classes->[$i]} ||= []
625 135 5 $self->schild(0) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
141 7 0 3 $self->SUPER::isa(@args) || ref $self && $self->{'_doc'} && $self->{'_doc'}->isa(@args)
151 73 1 6209 ref $wanted or not $wanted
74 1 6208 ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx
185 115 1 86 ref $wanted or not $wanted
116 17 69 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 257 0 0 ref $policy || $policy