blib/lib/PRANG/Graph/Meta/Element.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 76 | 64.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
125 | 23 | 0 | 13 | $self->has_xml_min and not $self->xml_min |
145 | 86 | 0 | 0 | $self->has_xml_max and $self->xml_max > 1 |
80 | 6 | 0 | $self->has_xml_min and $self->xml_min > 1 | |
255 | 6 | 0 | 0 | $self->has_xml_nodeName and not ref $self->xml_nodeName |
299 | 0 | 6 | 0 | not $self->has_xml_nodeName_prefix and keys %$nodeName_prefix |
336 | 0 | 126 | 8 | $nodeName_prefix and $name =~ /^(\w+):(\w+)/ |
466 | 98 | 9 | 0 | $fixed_xmlns and $use_prefixes |
575 | 77 | 24 | 6 | $expect_one and not $expect_simple |
101 | 5 | 1 | $expect_one and not $expect_simple and not $self->is_required | |
29 | 0 | 1 | $expect_one and not $expect_simple and not $self->is_required and not $self->has_default | |
594 | 77 | 0 | 8 | $expect_one and not $self->has_xml_min |
line | l | !l | condition |
---|---|---|---|
228 | 6 | 101 | $expect_bool || 0 |
44 | 63 | $expect_simple || 0 | |
266 | 0 | 12 | eval { |
268 | 0 | 0 | $prefix_xx ||= "a" |
327 | 0 | 98 | eval { |
477 | 8 | 0 | $prefix //= "" |
478 | 8 | 0 | $nodeName_prefix->{$prefix} // "" |
482 | 12 | 119 | $fixed_xmlns // "" |
485 | 139 | 0 | $localname //= "" |
523 | 2 | 0 | (keys %seen_localname)[0] // "" |
543 | 4 | 0 | (keys %seen_xmlns)[0] // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
125 | 12 | 0 | 36 | $self->has_predicate or $self->has_xml_min and not $self->xml_min |
145 | 0 | 0 | 86 | $self->has_xml_max and $self->xml_max > 1 or $self->has_xml_min and $self->xml_min > 1 |
506 | 0 | 0 | 98 | $self->has_xmlns_attr or $self->has_xml_nodeName_attr |
507 | 5 | 2 | 2 | keys %seen_localname > 1 or $seen_localname{'*'} |
527 | 2 | 3 | 4 | keys %seen_xmlns > 1 or $seen_xmlns{'*'} |
592 | 77 | 8 | 22 | not $expect_one or $expect_many |
600 | 21 | 0 | 64 | $expect_many or $self->has_xml_max |