| blib/lib/Perl/Critic/Policy/TryTiny/RequireCatch.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 9 | 12 | 75.0 |
| line | true | false | branch |
|---|---|---|---|
| 35 | 29 | 4 | unless $element->isa('PPI::Statement::Include') |
| 37 | 4 | 0 | if ($children[1] and $children[1]->isa('PPI::Token::Word') and $children[1] eq 'Try::Tiny') |
| 51 | 16 | 4 | if $elem->content ne 'try' |
| 52 | 0 | 4 | unless is_function_call($elem) |
| 54 | 0 | 4 | unless my $try_block = $elem->snext_sibling |
| 56 | 2 | 2 | if ($sib->content ne 'catch') |