Condition Coverage

blib/lib/Perl/Critic/Policy/Community/OverloadOptions.pm
Criterion Covered Total %
condition 18 22 81.8


and 3 conditions

line !l l&&!r l&&r condition
21 0 0 13 ($elem->type // "") eq "use" and ($elem->module // "") eq "overload"
45 33 1 5 $item eq "fallback" and defined $options[$i + 1]
34 1 4 $item eq "fallback" and defined $options[$i + 1] and $options[$i + 1] ne "undef"
51 4 4 2 $has_bool and $has_fallback

or 2 conditions

line l !l condition
21 13 0 $elem->type // ""
13 0 $elem->module // ""

or 3 conditions

line l !l&&r !l&&!r condition
28 22 2 52 $arg->isa("PPI::Token::Word") or $arg->isa("PPI::Token::Number")
6 5 41 $arg->isa("PPI::Structure::List") or $arg->isa("PPI::Statement::Expression")