Condition Coverage

blib/lib/XML/Generator/PerlData.pm
Criterion Covered Total %
condition 40 61 65.5


and 3 conditions

line !l l&&!r l&&r condition
123 5 0 1 defined $self->{'ProcessingInstructions'} and scalar @{$self->{'ProcessingInstructions'};} > 0
211 0 31 3 defined $self->{'_Parents'}[-1] and defined $self->{'Attrmap'}{$self->{'_Parents'}[-1]}
217 0 32 0 defined $self->{'_Parents'}[-1] and defined $self->{'Charmap'}{$self->{'_Parents'}[-1]}
368 0 0 4 defined $args{'prefix'} and defined $args{'uri'}
851 30 17 5 defined $uri and grep {$element_name eq $_;} @{$$self{'Namespacemap'}{$uri};}
868 30 17 5 defined $uri and grep {$element_name eq $_;} @{$$self{'Namespacemap'}{$uri};}

or 2 conditions

line l !l condition
48 6 11 $self->{'Keymap'} ||= {}
49 6 11 $self->{'RootName'} ||= 'document'
50 6 11 $self->{'DefaultElementName'} ||= 'default'
51 6 11 $self->{'TokenReplacementChar'} ||= '_'
52 6 11 $self->{'Seen'} ||= {}
85 6 11 $self->{'Attrmap'} ||= {}
93 6 11 $self->{'Namespacemap'} ||= {}
101 6 11 $self->{'Charmap'} ||= {}
158 6 0 shift() || die('No Data Passed!')
176 0 0 shift() || die('No Data Passed!')
786 0 2 $uri || ''

or 3 conditions

line l !l&&r !l&&!r condition
265 0 0 16 shift() || $self->{'_Parents'}[-1]
275 3 0 0 $temp_name->[$i] || $self->{'DefaultElementName'}
335 16 17 3 $type eq 'ARRAY' or $type eq 'HASH'
33 0 3 $type eq 'ARRAY' or $type eq 'HASH' or $type eq 'SCALAR'
685 0 0 0 keys %{$$self{'Skipelements'};} || ()
896 10 0 0 $qname ||= $lname
906 44 60 0 $qname ||= $lname