Branch Coverage

blib/lib/PPI/Token.pm
Criterion Covered Total %
branch 14 26 53.8


line true false branch
84 364253 0 defined $_[1] ? :
90 0 34126 substr($_[0], 0, 12) eq 'PPI::Token::' ? :
93 0 34126 ref($self) =~ /\b(?:Quote|Regex)\b/o ? :
94 0 34126 $class =~ /\b(?:Quote|Regex)\b/o ? :
102 34126 0 if $old_quote - $new_quote == 0
172 0 1 unless my $Element = &_INSTANCE(shift(), "PPI::Element")
173 0 1 if ($Element->isa('PPI::Structure')) { }
1 0 elsif ($Element->isa('PPI::Token')) { }
184 0 1 unless my $Element = &_INSTANCE(shift(), "PPI::Element")
185 0 1 if ($Element->isa('PPI::Structure')) { }
1 0 elsif ($Element->isa('PPI::Token')) { }
214 46136 0 if ref $_[0] eq "PPI::Token::Structure"
220 85167 101973 if ref $_[0] eq "PPI::Token::Structure"