Branch Coverage

blib/lib/Perl/Critic/Policy/Moose/RequireMakeImmutable.pm
Criterion Covered Total %
branch 25 40 62.5


line true false branch
46 4 1 if $document->uses_module($module)
59 149 6 unless is_ppi_generic_statement($element)
62 0 6 unless $current_token
63 0 6 unless $current_token->isa('PPI::Token::Word')
64 4 2 if $current_token->content ne '__PACKAGE__'
67 0 2 unless $current_token
68 0 2 unless $current_token->isa('PPI::Token::Operator')
69 0 2 if $current_token->content ne '->'
72 0 2 unless $current_token
73 0 2 unless $current_token->isa('PPI::Token::Word')
74 0 2 if $current_token->content ne 'meta'
77 0 2 unless $current_token
78 1 1 if ($current_token->isa('PPI::Structure::List'))
80 0 1 unless $current_token
83 0 2 unless $current_token->isa('PPI::Token::Operator')
84 0 2 if $current_token->content ne '->'
87 0 2 unless $current_token
88 0 2 unless $current_token->isa('PPI::Token::Word')
89 0 2 if $current_token->content ne 'make_immutable'
95 2 2 if $makes_immutable