Branch Coverage

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


line true false branch
54 3778 0 defined $_[0] ? :
62 0 3778 unless my $self = PPI::Token::new($class, $init)
65 0 3778 unless my $options = $QUOTES{$init}
73 1859 1919 if $self->{'modifiers'}
76 108 3670 if $init eq "<"
77 356 3422 if $init eq "("
86 0 3778 unless my $self = $t->{'token'}
89 2654 1124 if ($self->{'operator'})
92 564 2090 if (substr($t->{'line'}, $t->{'line_cursor'}, 1) =~ /\s/)
95 0 564 unless defined $gap
96 191 373 if (ref $gap)
110 1123 1340 if (my $section = $SECTIONS{$sep}) { }
121 1587 2000 $self->{'braced'} ? :
123 829 2758 unless $rv
126 1569 1189 unless $self->{'modifiers'}
146 0 2000 unless defined $string
147 544 1456 if (ref $string)
149 399 145 if (length $$string > 1) { }
177 1061 395 if $self->{'_sections'} == 1
186 0 395 unless defined $string
187 79 316 if (ref $string)
189 75 4 if (length $$string > 1) { }
224 0 1587 unless defined $brace_str
225 165 1422 if (ref $brace_str)
227 110 55 if (length $$brace_str > 1) { }
253 1261 161 if $self->{'_sections'} == 1
259 118 43 if ($char =~ /\s/)
262 0 118 unless defined $gap_str
263 3 115 if (ref $gap_str)
274 120 38 if ($section) { }
21 17 elsif ($char =~ / \A [^\w\s] \z /msx) { }
286 0 120 unless defined $brace_str
287 7 113 if (ref $brace_str) { }
289 5 2 if (length $$brace_str > 1) { }
325 0 21 unless defined $string
326 14 7 if (ref $string)
328 6 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'}) { }