Branch Coverage

blib/lib/PRANG/Marshaller.pm
Criterion Covered Total %
branch 21 46 45.6


line true false branch
51 288 120 if (ref $inv)
54 0 408 unless ($class->can("meta"))
58 0 0 unless ($INC{$filename})
61 0 0 unless $class->can("meta")
65 408 0 if ($meta->does_role('PRANG::Graph') or $meta->meta->does_role('PRANG::Graph::Meta::Class')) { }
71 0 408 $class->can('encoding') ? :
93 1 0 defined $fh ? :
1 1 defined $filename ? :
67 2 defined $xml ? :
135 7 65 if ($self->class->isa("Moose::Meta::Role"))
141 7 2 if ($root_localname eq $class->name->root_element) { }
155 0 7 unless ($found)
161 0 72 if ($rootNodeNS and $expected_ns)
162 0 0 if ($rootNodeNS ne $expected_ns)
167 72 0 unless (defined $rootNode->prefix or defined $rootNode->getAttribute("xmlns"))
214 0 28 if ($zok or eval {
219 0 0 if (defined $zok_theme) { }
221 0 0 if ($zok_theme > $#zok_themes)
235 0 0 if ($zok_seen{$name}++)
267 0 39 if ($item->can("preferred_prefix"))
278 0 39 $prefix ? :
281 0 39 if ($xmlns)
282 0 0 $prefix ? :