blib/lib/XML/Generator/PerlData.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 39 | 61 | 63.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
122 | 5 | 0 | 1 | defined $$self{'ProcessingInstructions'} and scalar @{$$self{'ProcessingInstructions'};} > 0 |
210 | 0 | 34 | 0 | defined $$self{'_Parents'}[-1] and defined $$self{'Attrmap'}{$$self{'_Parents'}[-1]} |
216 | 0 | 34 | 0 | defined $$self{'_Parents'}[-1] and defined $$self{'Charmap'}{$$self{'_Parents'}[-1]} |
367 | 0 | 0 | 4 | defined $args{'prefix'} and defined $args{'uri'} |
850 | 30 | 19 | 5 | defined $uri and grep {$element_name eq $_;} @{$$self{'Namespacemap'}{$uri};} |
867 | 30 | 19 | 5 | defined $uri and grep {$element_name eq $_;} @{$$self{'Namespacemap'}{$uri};} |
line | l | !l | condition |
---|---|---|---|
47 | 6 | 11 | $$self{'Keymap'} ||= {} |
48 | 6 | 11 | $$self{'RootName'} ||= 'document' |
49 | 6 | 11 | $$self{'DefaultElementName'} ||= 'default' |
50 | 6 | 11 | $$self{'TokenReplacementChar'} ||= '_' |
51 | 6 | 11 | $$self{'Seen'} ||= {} |
84 | 6 | 11 | $$self{'Attrmap'} ||= {} |
92 | 6 | 11 | $$self{'Namespacemap'} ||= {} |
100 | 6 | 11 | $$self{'Charmap'} ||= {} |
157 | 6 | 0 | shift() || die('No Data Passed!') |
175 | 0 | 0 | shift() || die('No Data Passed!') |
785 | 0 | 2 | $uri || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
264 | 0 | 16 | 0 | shift() || $$self{'_Parents'}[-1] |
274 | 3 | 0 | 0 | $$temp_name[$i] || $$self{'DefaultElementName'} |
334 | 16 | 17 | 3 | $type eq 'ARRAY' or $type eq 'HASH' |
33 | 0 | 3 | $type eq 'ARRAY' or $type eq 'HASH' or $type eq 'SCALAR' | |
684 | 0 | 0 | 0 | keys %{$$self{'Skipelements'};} || () |
895 | 10 | 0 | 0 | $qname ||= $lname |
905 | 48 | 60 | 0 | $qname ||= $lname |