Condition Coverage

blib/lib/Perl/Critic/Policy/Compatibility/PerlMinimumVersionAndWhy.pm
Criterion Covered Total %
condition 0 195 0.0


and 3 conditions

line !l l&&!r l&&r condition
82 0 0 0 defined $explicit_version and $check_version <= $explicit_version
84 0 0 0 defined $config_above_version and $check_version <= $config_above_version
114 0 0 0 $ver < $v5010 and Perl::Critic::Policy::Compatibility::Gtk2Constants::_document_uses_module($document, 'Modern::Perl')
233 0 0 0 _elem_is_filetest_operator($elem) && ($elem = $elem->snext_sibling) && _elem_is_filetest_operator($elem)
243 0 0 0 $elem->isa('PPI::Token::Operator') && $elem =~ /^-./
260 0 0 0 $elem->isa('PPI::Token::Operator') and $elem->content eq '=>'
265 0 0 0 $saw_newline and $prev
0 0 0 $saw_newline and $prev and $prev->isa('PPI::Token::Word')
0 0 0 $saw_newline and $prev and $prev->isa('PPI::Token::Word') and not $prev =~ /^-/
0 0 0 $saw_newline and $prev and $prev->isa('PPI::Token::Word') and not $prev =~ /^-/ and not Perl::Critic::Utils::is_method_call($prev)
315 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq $which
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq $which and Perl::Critic::Utils::is_function_call($elem)
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq $which and Perl::Critic::Utils::is_function_call($elem) and _arg_is_array_elem($elem->snext_sibling)
329 0 0 0 $elem = _descend_through_lists($elem) and $elem->isa('PPI::Token::Symbol')
0 0 0 $elem = _descend_through_lists($elem) and $elem->isa('PPI::Token::Symbol') and $elem->raw_type eq '$'
0 0 0 $elem = _descend_through_lists($elem) and $elem->isa('PPI::Token::Symbol') and $elem->raw_type eq '$' and $elem = $elem->snext_sibling
337 0 0 0 $elem->isa('PPI::Token::Operator') and $elem eq '->'
358 0 0 0 $elem and $elem->isa('PPI::Structure::List') || $elem->isa('PPI::Statement::Expression') || $elem->isa('PPI::Statement')
375 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'exists'
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'exists' and Perl::Critic::Utils::is_function_call($elem)
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'exists' and Perl::Critic::Utils::is_function_call($elem) and $elem = _symbol_or_list_symbol($elem->snext_sibling)
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'exists' and Perl::Critic::Utils::is_function_call($elem) and $elem = _symbol_or_list_symbol($elem->snext_sibling) and $elem->symbol_type eq '&'
412 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'syswrite'
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'syswrite' and Perl::Critic::Utils::is_function_call($elem)
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'syswrite' and Perl::Critic::Utils::is_function_call($elem) and (@args = Perl::Critic::Utils::parse_arg_list($elem)) == 2
439 0 0 0 $elem->isa('PPI::Token::Word') and $count = $open_func{$elem}
0 0 0 $elem->isa('PPI::Token::Word') and $count = $open_func{$elem} and Perl::Critic::Utils::is_function_call($elem)
475 0 0 0 $my->isa('PPI::Token::Word') && $my eq 'my' && ($fh = $my->snext_sibling) && $fh->isa('PPI::Token::Symbol') && $fh->symbol_type eq '$' && !(($after = $fh->snext_sibling) && $after->isa('PPI::Token::Operator') && $after eq '=')
490 0 0 0 $elem->isa('PPI::Token::Operator') and $Perl::Critic::Pulp::Utils::COMMA{$elem}
508 0 0 0 $elem->isa('PPI::Token::Symbol') and $elem->symbol_type eq '$'
0 0 0 $elem->isa('PPI::Token::Symbol') and $elem->symbol_type eq '$' and Perl::Critic::Utils::is_method_call($elem)
0 0 0 ($next = $elem->snext_sibling) && $next->isa('PPI::Structure::List')
0 0 0 $elem->isa('PPI::Token::Symbol') and $elem->symbol_type eq '$' and Perl::Critic::Utils::is_method_call($elem) and not +($next = $elem->snext_sibling) && $next->isa('PPI::Structure::List')
532 0 0 0 $elem->isa('PPI::Token::Word') and $elem =~ /::$/
550 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'my'
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'my' and _list_contains_undef($elem->snext_sibling)
588 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'undef'
671 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq '__PACKAGE__'
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq '__PACKAGE__' and not Perl::Critic::Utils::is_hash_key($elem)
756 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'sysseek' || $elem eq 'CORE::sysseek'
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'sysseek' || $elem eq 'CORE::sysseek' and Perl::Critic::Utils::is_function_call($elem)
793 0 0 0 $elem->isa('PPI::Token::Word') and $hash->{$elem}
0 0 0 $elem->isa('PPI::Token::Word') and $hash->{$elem} and Perl::Critic::Utils::is_method_call($elem)
825 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq $which
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq $which and Perl::Critic::Utils::is_function_call($elem)
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq $which and Perl::Critic::Utils::is_function_call($elem) and _arg_is_array($elem->snext_sibling)
841 0 0 0 $elem->isa('PPI::Token::Symbol') and $elem->raw_type eq '@'
845 0 0 0 $elem->isa('PPI::Token::Cast') and $elem eq '@'
866 0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'eval'
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'eval' and Perl::Critic::Utils::is_function_call($elem)
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'eval' and Perl::Critic::Utils::is_function_call($elem) and $elem = $elem->snext_sibling
0 0 0 $elem->isa('PPI::Token::Word') and $elem eq 'eval' and Perl::Critic::Utils::is_function_call($elem) and $elem = $elem->snext_sibling and $elem = _descend_through_lists($elem)

or 2 conditions

line l !l condition
88 0 0 do { BEGIN {${^WARNING_BITS} = "\x54\x55\x55\x55\x15\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x05"} local *PPI::Node::find_any = \&PPI::Node::find_first; $pmv->$check } || (next)
282 0 0 $elem->previous_sibling || (last)
350 0 0 $elem->snext_sibling || (last)
455 0 0 $my->schild(0) || (return 0)
458 0 0 $my->schild(0) || (return 0)
466 0 0 _skip_to_next_arg($my) || (last)
489 0 0 $elem->snext_sibling || (return undef)
713 0 0 $elem->schild(1) || (return 0)
734 0 0 $elem->snext_sibling || (return 0)
839 0 0 _descend_through_lists($elem) || (return 0)
899 0 0 $elem->schild(0) || (return)
901 0 0 $elem->schild(0) || (return)

or 3 conditions

line l !l&&r !l&&!r condition
284 0 0 0 $saw_newline ||= $elem->content =~ /\n/
358 0 0 0 $elem->isa('PPI::Structure::List') || $elem->isa('PPI::Statement::Expression') || $elem->isa('PPI::Statement')
588 0 0 0 $elem->isa('PPI::Structure::List') or $elem->isa('PPI::Statement::Expression')
0 0 0 $elem->isa('PPI::Structure::List') or $elem->isa('PPI::Statement::Expression') or $elem->isa('PPI::Statement')
756 0 0 0 $elem eq 'sysseek' || $elem eq 'CORE::sysseek'