Condition Coverage

blib/lib/Perl/Critic/Policy/ValuesAndExpressions/RequireConstantVersion.pm
Criterion Covered Total %
condition 24 60 40.0


and 3 conditions

line !l l&&!r l&&r condition
94 200 8 2 $value->isa("PPI::Token::Symbol") and $value->content eq $VERSION_VARIABLE
153 0 0 5 $containing_list = $elem->parent and $containing_list->isa("PPI::Statement")
0 0 5 $containing_list = $elem->parent and $containing_list->isa("PPI::Statement") and $containing_list = $containing_list->parent
0 0 5 $containing_list = $elem->parent and $containing_list->isa("PPI::Statement") and $containing_list = $containing_list->parent and $containing_list->isa("PPI::Structure::List")
165 0 3 2 $prior->isa("PPI::Token::Operator") and $OPERATOR_WHICH_MAKES_NEW_VALUE{$prior->content}
250 0 0 0 $next = $value->snext_sibling and $next->isa("PPI::Token::Number")
281 0 0 8 $next = $value->snext_sibling and $next->isa("PPI::Structure::List")
0 0 8 $next = $value->snext_sibling and $next->isa("PPI::Structure::List") and $next = $next->schild(0)
0 1 7 $next = $value->snext_sibling and $next->isa("PPI::Structure::List") and $next = $next->schild(0) and $next->isa("PPI::Statement::Expression")
1 0 7 $next = $value->snext_sibling and $next->isa("PPI::Structure::List") and $next = $next->schild(0) and $next->isa("PPI::Statement::Expression") and $next = $next->schild(0)
317 0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator")
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word")
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word") and "new" eq $next->content
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word") and "new" eq $next->content and $next = $next->snext_sibling
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word") and "new" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Structure::List")
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word") and "new" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Structure::List") and $next = $next->schild(0)
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word") and "new" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Structure::List") and $next = $next->schild(0) and $next->isa("PPI::Statement::Expression")
0 0 4 $next = $value->snext_sibling and $next->isa("PPI::Token::Operator") and "->" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Token::Word") and "new" eq $next->content and $next = $next->snext_sibling and $next->isa("PPI::Structure::List") and $next = $next->schild(0) and $next->isa("PPI::Statement::Expression") and $next = $next->schild(0)