Branch Coverage

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


line true false branch
54 3841 0 defined $_[0] ? :
62 0 3841 unless my $self = PPI::Token::new($class, $init)
65 0 3841 unless my $options = $QUOTES{$init}
73 1900 1941 if $self->{'modifiers'}
76 120 3721 if $init eq "<"
77 359 3482 if $init eq "("
86 0 3841 unless my $self = $t->{'token'}
89 2688 1153 if ($self->{'operator'})
92 549 2139 if (substr($t->{'line'}, $t->{'line_cursor'}, 1) =~ /\s/)
95 0 549 unless defined $gap
96 185 364 if (ref $gap)
110 1100 1403 if (my $section = $SECTIONS{$sep}) { }
121 1579 2077 $self->{'braced'} ? :
123 853 2803 unless $rv
126 1588 1215 unless $self->{'modifiers'}
146 0 2077 unless defined $string
147 577 1500 if (ref $string)
149 435 142 if (length $$string > 1) { }
177 1109 391 if $self->{'_sections'} == 1
186 0 391 unless defined $string
187 88 303 if (ref $string)
189 85 3 if (length $$string > 1) { }
224 0 1579 unless defined $brace_str
225 149 1430 if (ref $brace_str)
227 94 55 if (length $$brace_str > 1) { }
253 1265 165 if $self->{'_sections'} == 1
259 113 52 if ($char =~ /\s/)
262 0 113 unless defined $gap_str
263 2 111 if (ref $gap_str)
274 117 46 if ($section) { }
33 13 elsif ($char =~ / \A [^\w\s] \z /msx) { }
286 0 117 unless defined $brace_str
287 6 111 if (ref $brace_str) { }
289 4 2 if (length $$brace_str > 1) { }
325 0 33 unless defined $string
326 18 15 if (ref $string)
328 10 8 if (length $$string > 1) { }
387 68 10 wantarray ? :
394 0 504 unless $self->{'sections'}
395 4 500 unless my $section = $self->{'sections'}[$i]
405 0 7 unless $self->{'modifiers'}
406 5 2 if wantarray
413 0 492 unless $self->{'sections'}
416 493 1 if (exists $sect->{'type'}) { }