Branch Coverage

blib/lib/Ref/Util/Rewriter.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
46 1 11 if $statement->$Ref::Util::Rewriter::_isa('PPI::Statement::Compound')
51 6 60 if $_[1]->isa('PPI::Token::Word')
52 5 6 unless my $ref_subs = $statement->find(sub { $_[1]->content eq 'ref' if $_[1]->isa('PPI::Token::Word'); } )
66 3 22 if $content eq ';'
71 2 20 if ($statement_def)
77 6 14 if (not $statement_def and $sib->$Ref::Util::Rewriter::_isa('PPI::Token::Operator')) { }
79 5 1 if ($content eq 'eq' or $content eq 'ne') { }
1 0 elsif (&first(sub { $content eq $_; } , @cond_ops)) { }
83 5 0 $val_token->$Ref::Util::Rewriter::_isa('PPI::Token::Quote') ? :
88 0 5 unless ($func)
104 1 1 $func_args[$idx]->$Ref::Util::Rewriter::_isa('PPI::Token::Whitespace') ? :
132 0 6 unless $statement_def
136 3 3 if $sib and $sib->content eq ';'
165 0 6 unless defined $rest