Branch Coverage

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


line true false branch
54 0 5 if (defined $self->{'output_handler'} and ref $self->{'output_handler'} ne 'GLOB')
78 0 0 unless (defined $out)
84 0 0 if (ref $pyx eq 'ARRAY') { }
91 0 0 if ($self->{'callbacks'}{'init'})
97 0 0 if ($self->{'callbacks'}{'final'})
119 0 16 if (not $input_file_handler or ref $input_file_handler ne 'GLOB')
122 16 0 unless (defined $out)
125 0 16 if ($self->{'callbacks'}{'init'})
133 0 16 if ($self->{'callbacks'}{'final'})
146 3 36 unless ($type)
151 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 '_') { }
178 3 0 if ($self->{'callbacks'}{'other'}) { }
193 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'}) { }