Condition Coverage

blib/lib/Perl/Critic/Policy/TryTiny/RequireUse.pm
Criterion Covered Total %
condition 12 21 57.1


and 3 conditions

line !l l&&!r l&&r condition
24 23 0 3 $try->content eq 'try' and $try->snext_sibling
23 0 3 $try->content eq 'try' and $try->snext_sibling and $try->snext_sibling->isa('PPI::Structure::Block')
31 61 0 2 $_[1]->isa('PPI::Statement::Include') and defined $_[1]->module
61 0 2 $_[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'
0 0 2 $_[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'

or 3 conditions

line l !l&&r !l&&!r condition
31 2 0 0 $_[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'
75 6 3 0 $element->sprevious_sibling || $element->parent