Branch Coverage

blib/lib/PITA/XML/SAXDriver.pm
Criterion Covered Total %
branch 37 58 63.7


line true false branch
74 6 0 unless ($$self{'Handler'})
77 0 6 unless ($$self{'Output'})
83 0 6 unless $$self{'Handler'} = 'XML::SAX::Writer'->new('Output', $$self{'Output'})
89 0 6 unless (_STRING($$self{'NamespaceURI'}))
177 0 6 unless ($root)
182 6 0 if ($$self{'NamespaceURI'})
188 2 4 if (_INSTANCE $root, 'PITA::XML::Report') { }
1 3 elsif (_INSTANCE $root, 'PITA::XML::Request') { }
3 0 elsif (_INSTANCE $root, 'PITA::XML::Guest') { }
264 0 1 if ($analysis)
280 1 1 $request->id ? :
294 1 1 if ($request->authority)
296 1 0 if ($request->authpath)
313 1 2 $guest->id ? :
332 6 0 defined $$config{$name} ? :
362 1 4 if (defined $file->resource)
370 5 0 if (defined $file->digest)
393 2 0 if ($platform->scheme)
401 2 0 if ($platform->path)
413 2 0 defined $$env{$name} ? :
424 0 2 defined $$config{$name} ? :
463 1 0 if (defined $test->name)
471 1 0 if (defined $test->stderr)
474 1 0 if (defined $test->exitcode)
510 53 6 unless ($xmlns)
539 0 59 $$self{'Prefix'} ? :
545 0 59 if ($$attrs{'xmlns'})
596 0 38 if (_HASH($_[0]))
601 4 34 if (_SCALAR0($_[0]))