Branch Coverage

blib/lib/XML/Saxtract.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
35 0 1 unless ($response->is_success)
36 0 0 if ($options{'die_on_failure'}) { }
68 36 14 if (not $type) { }
0 14 elsif ($type eq 'SCALAR') { }
1 13 elsif ($type eq 'CODE') { }
80 2 11 if ($subspec_type) { }
2 9 elsif ($spec->{'type'} eq 'array') { }
4 5 elsif ($spec->{'type'} eq 'map') { }
5 0 elsif ($spec->{'type'} eq 'first') { }
81 2 0 if ($subspec_type eq 'CODE')
83 1 1 unless ($subspec_object)
91 1 1 unless (defined $object->{$name})
97 2 2 unless (defined $object->{$name})
103 3 2 if (not defined $object->{$name})
116 0 36 if $self->{'skip'} > 0
118 36 0 if (defined $characters)
126 0 30 if ($self->{'skip'} > 0)
138 20 0 if (defined $spec->{$path} and scalar @{$self->{'buffer'};})
149 5 22 $ns_uri && $spec->{$ns_uri} ? :
151 17 10 if ($spec->{$attr_path})
156 13 0 if (not $path and scalar @{$self->{'element_stack'};})
187 19 4 if defined $spec_prefix
196 0 30 if ($self->{'skip'})
207 19 11 if ($uri) { }
209 0 19 if (not defined $spec_prefix) { }
11 8 elsif ($spec_prefix eq '') { }
227 13 12 if (defined $spec->{$spec_path} and ref $spec->{$spec_path} eq 'HASH' and defined $spec->{$spec_path}{'spec'})