Branch Coverage

blib/lib/PRANG/Graph/Context.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
102 0 0 unless &blessed($thing)
104 0 0 if ($thing->can('preferred_prefix')) { }
0 0 elsif ($thing->can('xmlns_prefix')) { }
123 0 0 if ($xmlns)
124 0 0 if (not exists $self->rxsi->{$xmlns}) { }
133 0 0 $newnode_name && $prefix ? :
143 0 0 if ($new_prefix)
176 0 0 if (defined(my $prefix = $self->rxsi->{$xmlns})) { }
183 0 0 if ($victim)
201 0 0 if ($self->xsi_virgin) { }
205 0 0 if ($self->rxsi)
238 0 0 $node ? :
0 0 $skip_ok ? :
276 0 0 unless $self->has_node
279 0 0 if ($node->isa('XML::LibXML::Element')) { }
0 0 elsif ($node->isa('XML::LibXML::Text')) { }
0 0 elsif ($node) { }
281 0 0 if ($node->hasAttributes)
295 0 0 if (@nodes > 1 and grep {not $_->isa('XML::LibXML::Element');} @nodes) { }
0 0 elsif (@nodes and $nodes[0]->isa('XML::LibXML::Element')) { }
0 0 elsif (@nodes and $nodes[0]->isa('XML::LibXML::Text')) { }
308 0 0 if (@nodes == 0) { }
318 0 0 if (length $val > 15)