Condition Coverage

blib/lib/Perl/Critic/Policy/Moo/ProhibitMakeImmutable.pm
Criterion Covered Total %
condition 18 36 50.0


and 3 conditions

line !l l&&!r l&&r condition
27 0 0 6 $element and $element->isa('PPI::Token::Operator')
0 0 6 $element and $element->isa('PPI::Token::Operator') and $element->content eq '->'
32 0 0 6 $element and $element->isa('PPI::Token::Word')
0 0 6 $element and $element->isa('PPI::Token::Word') and $element->content eq 'meta'
37 0 0 6 $element and $element->isa('PPI::Token::Operator')
0 0 6 $element and $element->isa('PPI::Token::Operator') and $element->content eq '->'
42 0 0 6 $element and $element->isa('PPI::Token::Word')
0 0 6 $element and $element->isa('PPI::Token::Word') and $element->content eq 'make_immutable'
49 261 0 16 $_[1]->isa('PPI::Statement::Include') and defined $_[1]->module
261 8 8 $_[1]->isa('PPI::Statement::Include') and defined $_[1]->module and $_[1]->module eq 'Moo'
8 0 8 $_[1]->isa('PPI::Statement::Include') and defined $_[1]->module and $_[1]->module eq 'Moo' and $_[1]->type eq 'use'

or 3 conditions

line l !l&&r !l&&!r condition
83 18 11 3 $element->sprevious_sibling || $element->parent