Branch Coverage

blib/lib/PRANG/Graph/Choice.pm
Criterion Covered Total %
branch 44 52 84.6


line true false branch
71 117 195 if (defined $choice->node_ok($node, $ctx))
87 2 130 if ($ctx->chosen)
100 28 102 $node->isa('XML::LibXML::Text') ? :
107 130 91 if (defined $choice->node_ok($node, $ctx))
110 124 91 if ($key)
138 0 3 if (my $num = $ctx->chosen) { }
176 21 46 if ($self->has_name_attr or $self->has_xmlns_attr) { }
46 0 elsif ($self->has_type_map) { }
177 19 2 if ($self->has_name_attr) { }
180 17 2 if (defined $slot)
187 19 2 if ($self->has_xmlns_attr) { }
190 17 2 if (defined $slot)
203 17 111 unless (ref $type)
208 46 82 if ($type->check($value))
213 0 128 if ($nodeCount > 1)
220 0 67 unless (defined $name)
226 53 14 if (length $name) { }
227 2 51 if ($self->has_type_map_prefix and $name =~ /(.*):(.*)/)
233 13 64 if ($xmlns)
234 0 13 unless $choice->has_xmlns
235 2 11 unless $choice->xmlns eq $xmlns or $choice->xmlns eq "*"
238 22 53 unless $choice->nodeName eq $name or $choice->nodeName eq "*"
241 39 14 defined $slot ? :
18 35 defined $xmlns ? :
250 0 53 if (not $found)
251 0 0 $xmlns ? :