Condition Coverage

blib/lib/Perl/Critic/Utils.pm
Criterion Covered Total %
condition 60 103 58.2


and 3 conditions

line !l l&&!r l&&r condition
344 5 985 17 builtin::blessed($elem) and $elem->isa("PPI::Statement::Sub")
359 0 171 93 $elem && exists $BUILTINS{_name_for_sub_or_stringified_element($elem)}
372 0 313 70 $elem && exists $BAREWORDS{_name_for_sub_or_stringified_element($elem)}
414 0 308 0 $elem && exists $FILEHANDLES{_name_for_sub_or_stringified_element($elem)}
683 0 0 0 $name && (index($name, '::') != -1)
691 0 0 208 $elem && $PRECEDENCE_OF{ref $elem ? "$elem" : $elem}
702 4 676 50 $sib and $sib->isa("PPI::Structure::List")
712 1 0 1 $sib->isa('PPI::Token::Operator') && ($sib eq $COMMA || $sib eq $FATCOMMA)
3 1 1 $sib and not $sib->isa('PPI::Token::Operator') && ($sib eq $COMMA || $sib eq $FATCOMMA)
719 672 2 1 $sib && $sib->isa('PPI::Token::Operator') && $sib eq $FATCOMMA
757 10 4 0 $psib && exists $redirectors->{$psib}
765 0 604 0 $elem && _is_dereference_operator($elem->sprevious_sibling)
774 308 0 0 $elem && _is_dereference_operator($elem->snext_sibling) && !_is_dereference_operator($elem->sprevious_sibling)
786 910 2 0 $elem && $elem->isa('PPI::Token::Operator') && $elem eq '->'
846 0 8 0 builtin::blessed($doc) and $doc->isa("Perl::Critic::Document")
881 0 0 0 $parent->isa("PPI::Structure::Block") and $token->statement->snext_sibling
888 0 0 0 $parent->isa("PPI::Structure::Block") and not $grandparent->isa("PPI::Statement::Compound")
967 35 0 23 $iter->isa("PPI::Token::Structure") and $iter eq $SCOLON
968 31 4 0 $iter->isa("PPI::Token::Operator") and $MIN_PRECEDENCE_TO_TERMINATE_PARENLESS_ARG_LIST <= precedence_of($iter)
986 40 0 10 $node->isa("PPI::Token::Operator") and $node_content eq $COMMA || $node_content eq $FATCOMMA
1094 145 18 0 -d $_ and $SKIP_DIR{$_}
18 0 145 -f $_ and not _is_backup($_)
18 0 145 -f $_ and not _is_backup($_) and _is_perl($_)
1140 0 3 6 defined $first and $first =~ / \A [#]!.*perl /msx
1200 160 24 1 $elem->isa('PPI::Token::Operator') && exists $$or_or_or{$elem->content}
1360 0 4 0 $first_arg and $first_arg->isa("PPI::Token::Number")
1372 0 2 2 $builtins and $builtins->{$elem_content}
1379 0 0 1 $builtins and $$builtins{$elem->content}

or 2 conditions

line l !l condition
859 1 2 $doc->filename || (return)
1073 865 0 shift() || (return $SEVERITY_HIGHEST)

or 3 conditions

line l !l&&r !l&&!r condition
326 959 0 0 eval qq["$literal"] || confess($Perl::Critic::Utils::EVAL_ERROR)
674 1 0 42 exists $BUILTINS_WHICH_TAKE_ONE_ARGUMENT{$name} || exists $BUILTINS_WHICH_TAKE_NO_ARGUMENTS{$name} || exists $BUILTINS_WHICH_TAKE_OPTIONAL_ARGUMENT{$name}
986 8 2 0 $node_content eq $COMMA || $node_content eq $FATCOMMA
1041 1 1 0 $FORMAT_OF{abs int $verbosity} || $DEFAULT_FORMAT
1334 4 0 4 $include->pragma eq "autodie" or &any(sub {