Branch Coverage

blib/lib/PPIx/EditorTools/Lexer.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
24 0 8 unless defined $ppi
45 37 54 if ($Token->isa('PPI::Token::Word'))
49 37 0 unless ($Token->snext_sibling and $Token->snext_sibling->content eq '=>')
50 3 34 if ($Token->content =~ /^(?:sub|return)$/) { }
4 30 elsif ($Token->content =~ /^(?:undef|shift|defined|bless)$/) { }
57 0 30 if ($Token->previous_sibling and $Token->previous_sibling->content eq '->')
58 0 0 if ($Token->content =~ /^(?:new)$/)
63 8 22 if ($Token->parent->isa('PPI::Statement::Include')) { }
4 18 elsif ($Token->parent->isa('PPI::Statement::Variable')) { }
8 10 elsif ($Token->parent->isa('PPI::Statement::Compound')) { }
1 9 elsif ($Token->parent->isa('PPI::Statement::Package')) { }
0 9 elsif ($Token->parent->isa('PPI::Statement::Scheduled')) { }
64 5 3 if ($Token->content =~ /^(?:use|no)$/)
67 2 1 if ($Token->content eq $Token->parent->pragma)
71 4 0 if ($Token->content =~ /^(?:my|local|our)$/)
75 8 0 if ($Token->content =~ /^(?:if|else|elsif|unless|for|foreach|while|my)$/)
79 1 0 if ($Token->content eq 'package')