Branch Coverage

blib/lib/PYX/Parser.pm
Criterion Covered Total %
branch 24 40 60.0


line true false branch
51 0 5 if (defined $self->{'output_handler'} and ref $self->{'output_handler'} ne 'GLOB')
73 0 0 unless (defined $out)
79 0 0 if (ref $pyx eq 'ARRAY') { }
86 0 0 if ($self->{'callbacks'}{'init'})
92 0 0 if ($self->{'callbacks'}{'final'})
110 0 16 if (not $input_file_handler or ref $input_file_handler ne 'GLOB')
113 16 0 unless (defined $out)
116 0 16 if ($self->{'callbacks'}{'init'})
123 0 16 if ($self->{'callbacks'}{'final'})
135 3 36 unless ($type)
140 6 33 if ($type eq 'A') { }
9 24 elsif ($type eq '(') { }
5 19 elsif ($type eq ')') { }
6 13 elsif ($type eq '-') { }
5 8 elsif ($type eq '?') { }
5 3 elsif ($type eq '_') { }
167 3 0 if ($self->{'callbacks'}{'other'}) { }
181 18 18 if (exists $self->{'callbacks'}{$key} and ref $self->{'callbacks'}{$key} eq 'CODE') { }
0 18 elsif (exists $self->{'callbacks'}{'rewrite'} and ref $self->{'callbacks'}{'rewrite'} eq 'CODE') { }
18 0 elsif ($self->{'output_rewrite'}) { }