Branch Coverage

blib/lib/PPI/Token/_QuoteEngine/Full.pm
Criterion Covered Total %
branch 74 88 84.0


line true false branch
54 3845 0 defined $_[0] ? :
62 0 3845 unless my $self = PPI::Token::new($class, $init)
65 0 3845 unless my $options = $QUOTES{$init}
73 1915 1930 if $self->{'modifiers'}
76 99 3746 if $init eq "<"
77 356 3489 if $init eq "("
86 0 3845 unless my $self = $t->{'token'}
89 2708 1137 if ($self->{'operator'})
92 543 2165 if (substr($t->{'line'}, $t->{'line_cursor'}, 1) =~ /\s/)
95 0 543 unless defined $gap
96 193 350 if (ref $gap)
110 1125 1390 if (my $section = $SECTIONS{$sep}) { }
121 1580 2072 $self->{'braced'} ? :
123 864 2788 unless $rv
126 1581 1207 unless $self->{'modifiers'}
146 0 2072 unless defined $string
147 586 1486 if (ref $string)
149 442 144 if (length $$string > 1) { }
177 1092 394 if $self->{'_sections'} == 1
186 0 394 unless defined $string
187 75 319 if (ref $string)
189 72 3 if (length $$string > 1) { }
224 0 1580 unless defined $brace_str
225 164 1416 if (ref $brace_str)
227 109 55 if (length $$brace_str > 1) { }
253 1261 155 if $self->{'_sections'} == 1
259 115 40 if ($char =~ /\s/)
262 0 115 unless defined $gap_str
263 2 113 if (ref $gap_str)
274 119 34 if ($section) { }
16 18 elsif ($char =~ / \A [^\w\s] \z /msx) { }
286 0 119 unless defined $brace_str
287 6 113 if (ref $brace_str) { }
289 4 2 if (length $$brace_str > 1) { }
325 0 16 unless defined $string
326 13 3 if (ref $string)
328 5 8 if (length $$string > 1) { }
387 68 10 wantarray ? :
394 0 506 unless $self->{'sections'}
395 4 502 unless my $section = $self->{'sections'}[$i]
405 0 7 unless $self->{'modifiers'}
406 5 2 if wantarray
413 0 494 unless $self->{'sections'}
416 495 1 if (exists $sect->{'type'}) { }