Condition Coverage

blib/lib/Module/Checkstyle/Check/Label.pm
Criterion Covered Total %
condition 23 36 63.8


and 3 conditions

line !l l&&!r l&&r condition
52 0 2 1 $name and not $name =~ /$$self{$MATCHES_NAME}/
66 1 3 4 $p and $p->isa('PPI::Token::Whitespace')
73 1 1 2 $prev and $prev->location->[0] == $label->location->[0]
0 1 1 $next and $next->location->[0] == $label->location->[0]
82 0 0 0 $next and $next->location->[0] != $label->location->[0]
98 0 1 5 $$self{$REQUIRE_FOR_BREAK} and $break->first_token->content =~ /^last|next|redo$/
102 0 5 2 $n and $n->isa('PPI::Token::Whitespace')
108 0 2 3 $next and not $next->isa('PPI::Token::Word')
0 0 2 $next and $next->isa('PPI::Token::Word')
0 1 1 $next and $next->isa('PPI::Token::Word') and $next->content =~ /^if|unless$/

or 3 conditions

line l !l&&r !l&&!r condition
73 2 0 2 $prev and $prev->location->[0] == $label->location->[0] or $next and $next->location->[0] == $label->location->[0]
108 3 0 2 $next and not $next->isa('PPI::Token::Word') or $next and $next->isa('PPI::Token::Word') and $next->content =~ /^if|unless$/