Branch Coverage

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


line true false branch
54 3834 0 defined $_[0] ? :
62 0 3834 unless my $self = PPI::Token::new($class, $init)
65 0 3834 unless my $options = $QUOTES{$init}
73 1903 1931 if $self->{'modifiers'}
76 109 3725 if $init eq "<"
77 356 3478 if $init eq "("
86 0 3834 unless my $self = $t->{'token'}
89 2660 1174 if ($self->{'operator'})
92 535 2125 if (substr($t->{'line'}, $t->{'line_cursor'}, 1) =~ /\s/)
95 0 535 unless defined $gap
96 189 346 if (ref $gap)
110 1101 1370 if (my $section = $SECTIONS{$sep}) { }
121 1566 2079 $self->{'braced'} ? :
123 852 2793 unless $rv
126 1579 1214 unless $self->{'modifiers'}
146 0 2079 unless defined $string
147 585 1494 if (ref $string)
149 443 142 if (length $$string > 1) { }
177 1114 380 if $self->{'_sections'} == 1
186 0 380 unless defined $string
187 76 304 if (ref $string)
189 74 2 if (length $$string > 1) { }
224 0 1566 unless defined $brace_str
225 150 1416 if (ref $brace_str)
227 95 55 if (length $$brace_str > 1) { }
253 1250 166 if $self->{'_sections'} == 1
259 116 50 if ($char =~ /\s/)
262 0 116 unless defined $gap_str
263 2 114 if (ref $gap_str)
274 119 45 if ($section) { }
23 22 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 23 unless defined $string
326 11 12 if (ref $string)
328 3 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'}) { }