Branch Coverage

blib/lib/Perl/Critic/Policy/TryTiny/RequireUse.pm
Criterion Covered Total %
branch 8 12 66.6


line true false branch
25 0 3 unless $try->content eq 'try' and $try->snext_sibling and $try->snext_sibling->isa('PPI::Structure::Block')
32 2 0 if $_[1]->isa('PPI::Statement::Include') and defined $_[1]->module and $_[1]->module eq 'Error' || $_[1]->module eq 'Syntax::Feature::Try' || $_[1]->module eq 'Try' || $_[1]->module eq 'Try::Catch' || $_[1]->module eq 'Try::Tiny' || $_[1]->module eq 'TryCatch' and $_[1]->type eq 'use'
53 1 2 if $included
64 5 9 if ($element->isa('PPI::Statement::Package'))
67 0 5 if $element->ancestor_of($original)
71 5 0 unless $blocks