blib/lib/Perl/Critic/Document.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 39 | 57 | 68.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
128 | 2763 | 0 | 17 | &blessed($ref) && $ref->isa('PPI::Document') |
233 | 0 | 0 | 354 | &blessed($element) and $element->isa("PPI::Element") |
311 | 15 | 0 | 0 | $stmt_loc->[0] == $inner_loc->[0] and $stmt_loc->[1] >= $inner_loc->[1] |
327 | 15 | 0 | 0 | _inner_is_defined_by_outer($inner_elem, $parent) and _location_is_in_right_hand_side_of_assignment($parent, $inner_elem) |
348 | 15 | 0 | 0 | $outer_elem->isa("PPI::Statement::Variable") and $inner_elem->isa("PPI::Token::Symbol") |
395 | 0 | 0 | 0 | $kid->isa("PPI::Token::Operator") and "=" eq $kid->content |
401 | 0 | 0 | 0 | $l->[0] == $inner_loc->[0] and $l->[1] >= $inner_loc->[1] |
648 | 2722 | 1 | 57 | defined $file_name and ref $args->{'-program-extensions'} eq "ARRAY" |
663 | 2709 | 56 | 1 | defined $file_name and $file_name =~ / [.] PL \z /msx |
line | l | !l | condition |
---|---|---|---|
177 | 11462 | 7810 | $self->{'_elements_of'}{$wanted} || '' |
602 | 46458 | 39150 | $$cache_ref{$classes->[$i]} ||= [] |
626 | 2762 | 18 | $self->schild(0) || (return) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
143 | 18 | 0 | 3 | $self->SUPER::isa(@args) || ref $self && $self->{'_doc'} && $self->{'_doc'}->isa(@args) |
153 | 128 | 1 | 19273 | ref $wanted or not $wanted |
129 | 1 | 19272 | ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx | |
187 | 180 | 1 | 131 | ref $wanted or not $wanted |
181 | 17 | 114 | ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx | |
202 | 1 | 1 | 2 | ref $wanted or not $wanted |
2 | 1 | 1 | ref $wanted or not $wanted or not $wanted =~ / \A PPI:: /msx | |
491 | 3171 | 0 | 0 | ref $policy || $policy |