Branch Coverage

blib/lib/Perl/Critic/Policy/Moo/ProhibitMakeImmutable.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
23 53 6 unless $start_word->content eq '__PACKAGE__'
27 0 6 unless $element and $element->isa('PPI::Token::Operator') and $element->content eq '->'
32 0 6 unless $element and $element->isa('PPI::Token::Word') and $element->content eq 'meta'
37 0 6 unless $element and $element->isa('PPI::Token::Operator') and $element->content eq '->'
42 0 6 unless $element and $element->isa('PPI::Token::Word') and $element->content eq 'make_immutable'
49 8 8 if $_[1]->isa('PPI::Statement::Include') and defined $_[1]->module and $_[1]->module eq 'Moo' and $_[1]->type eq 'use'
60 4 2 unless $included
71 11 32 if ($element->isa('PPI::Statement::Package'))
74 0 11 if $element->ancestor_of($original)
78 11 0 unless $blocks