Branch Coverage

blib/lib/Perl/Critic/Policy/Community/OverloadOptions.pm
Criterion Covered Total %
branch 17 18 94.4


line true false branch
21 0 13 unless ($elem->type // "") eq "use" and ($elem->module // "") eq "overload"
28 3 87 if ($arg->isa('PPI::Token::QuoteLike::Words')) { }
11 76 elsif ($arg->isa('PPI::Token::Quote')) { }
24 52 elsif ($arg->isa('PPI::Token::Word') or $arg->isa('PPI::Token::Number')) { }
11 41 elsif ($arg->isa('PPI::Structure::List') or $arg->isa('PPI::Statement::Expression')) { }
42 3 10 unless @options
45 4 35 if ($item eq 'fallback' and defined $options[$i + 1] and $options[$i + 1] ne 'undef') { }
6 29 elsif ($item eq 'bool') { }
51 8 2 unless $has_bool and $has_fallback