Condition Coverage

blib/lib/Perl/Critic/Policy/Community/SplitQuotedPattern.pm
Criterion Covered Total %
condition 18 21 85.7


and 3 conditions

line !l l&&!r l&&r condition
30 2 0 29 $elem eq "split" and is_function_call($elem)
40 8 8 4 $pattern->isa("PPI::Token::Quote") and !length($pattern->string) || $pattern->string eq ' '
8 0 4 $self->{'_allow_unquoted_patterns'} and not $pattern->isa("PPI::Token::Quote")

or 3 conditions

line l !l&&r !l&&!r condition
40 7 2 20 $pattern->isa("PPI::Token::Regexp::Match") or $pattern->isa("PPI::Token::QuoteLike::Regexp")
4 4 4 !length($pattern->string) || $pattern->string eq ' '
9 4 16 $pattern->isa("PPI::Token::Regexp::Match") or $pattern->isa("PPI::Token::QuoteLike::Regexp") or $pattern->isa("PPI::Token::Quote") and !length($pattern->string) || $pattern->string eq ' '
8 12 0 $pattern->isa("PPI::Token::Regexp::Match") or $pattern->isa("PPI::Token::QuoteLike::Regexp") or $pattern->isa("PPI::Token::Quote") and !length($pattern->string) || $pattern->string eq ' ' or $self->{'_allow_unquoted_patterns'} and not $pattern->isa("PPI::Token::Quote")