Branch Coverage

blib/lib/WAP/SAXDriver/wbxml.pm
Criterion Covered Total %
branch 0 308 0.0


line true false branch
22 0 0 unless $xml->isa('IO::Handle')
36 0 0 unless $xml->isa('IO::Handle')
63 0 0 unless defined $$p{'io_handle'}
77 0 0 if defined $$self{'_InParse'}
82 0 0 if ($$opt{'UseOnlyDefaultRules'}) { }
86 0 0 unless (defined $rules)
88 0 0 if ($$opt{'RulesPath'}) { }
112 0 0 if exists $$self{'io_strtbl'}
113 0 0 if exists $$self{'strtbl'}
128 0 0 if defined $$self{'PublicId'}
177 0 0 if (not defined $$self{'Encoding'} and exists $$opt{'Source'}{'Encoding'})
182 0 0 if exists $$self{'publicid_idx'}
184 0 0 if ($$self{'PublicId'} eq 'PublicId-Unknown') { }
208 0 0 unless (defined $rc)
230 0 0 unless $nb < 6
232 0 0 unless defined $ch
244 0 0 unless defined $ch
252 0 0 unless defined $publicid
253 0 0 if ($publicid == 1) { }
0 0 elsif ($publicid) { }
257 0 0 if (exists $$self{'Rules'}{'PublicIdentifier'}{$publicid}) { }
273 0 0 unless defined $charset
274 0 0 if ($charset != 0)
282 0 0 if (exists $$default_charset{$charset})
287 0 0 unless ($@)
288 0 0 if (defined I18N::Charset::mib_to_charset_name($charset))
301 0 0 if ($len)
312 0 0 unless defined $idx
313 0 0 unless exists $$self{'io_strtbl'}
317 0 0 unless defined $ch
321 0 0 unless defined $ch
334 0 0 unless defined $rc
338 0 0 unless defined $rc
340 0 0 if (defined $tag)
343 0 0 unless defined $rc
354 0 0 unless defined $rc
360 0 0 unless defined $rc
377 0 0 unless defined $tag
380 0 0 if ($token == 4) { }
383 0 0 unless defined $name
387 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'TAG'}{$token}) { }
396 0 0 unless (exists $$self{'root_name'})
397 0 0 if ($$self{'PublicId'} ne 'PublicId-Unknown')
409 0 0 if ($tag & 128)
413 0 0 unless defined $rc
414 0 0 if (exists $$self{'attrs'})
431 0 0 if ($tag & 64)
434 0 0 unless defined $rc
447 0 0 unless defined $tag
448 0 0 if ($tag == 2) { }
0 0 elsif ($tag == 3) { }
0 0 elsif ($tag == 64) { }
0 0 elsif ($tag == 65) { }
0 0 elsif ($tag == 66) { }
0 0 elsif ($tag == 67) { }
0 0 elsif ($tag == 128) { }
0 0 elsif ($tag == 129) { }
0 0 elsif ($tag == 130) { }
0 0 elsif ($tag == 131) { }
0 0 elsif ($tag == 192) { }
0 0 elsif ($tag == 193) { }
0 0 elsif ($tag == 194) { }
0 0 elsif ($tag == 195) { }
450 0 0 unless defined $entcode
457 0 0 unless defined $string
458 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'})
468 0 0 unless defined $string
469 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'}) { }
481 0 0 unless defined $string
482 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'}) { }
494 0 0 unless defined $string
495 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'}) { }
507 0 0 unless defined $rc
511 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'}) { }
0 0 elsif (defined $$self{'App'} and exists $$self{'App'}{'EXT0VALUE'}) { }
514 0 0 unless defined $string
521 0 0 if (exists $$self{'App'}{'EXT0VALUE'}{$idx}) { }
536 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'}) { }
0 0 elsif (defined $$self{'App'} and exists $$self{'App'}{'EXT1VALUE'}) { }
539 0 0 unless defined $string
546 0 0 if (exists $$self{'App'}{'EXT1VALUE'}{$idx}) { }
561 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'}) { }
0 0 elsif (defined $$self{'App'} and exists $$self{'App'}{'EXT2VALUE'}) { }
564 0 0 unless defined $string
571 0 0 if (exists $$self{'App'}{'EXT2VALUE'}{$idx}) { }
587 0 0 unless defined $string
588 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'variable_subs'})
607 0 0 unless defined $data
608 0 0 defined $$self{'App'} && exists $$self{'App'}{'TagEncoding'}{$parent} ? :
610 0 0 if ($encoding eq 'base64') { }
0 0 elsif ($encoding eq 'datetime') { }
0 0 elsif ($encoding eq 'integer') { }
620 0 0 if ($len == 6) { }
641 0 0 if ($len == 1) { }
0 0 elsif ($len == 2) { }
0 0 elsif ($len == 4) { }
665 0 0 unless defined $rc
674 0 0 unless defined $attr
675 0 0 if ($attr == 2) { }
0 0 elsif ($attr == 3) { }
0 0 elsif ($attr == 4) { }
0 0 elsif ($attr == 64) { }
0 0 elsif ($attr == 65) { }
0 0 elsif ($attr == 66) { }
0 0 elsif ($attr == 128) { }
0 0 elsif ($attr == 129) { }
0 0 elsif ($attr == 130) { }
0 0 elsif ($attr == 131) { }
0 0 elsif ($attr == 192) { }
0 0 elsif ($attr == 193) { }
0 0 elsif ($attr == 194) { }
0 0 elsif ($attr == 195) { }
677 0 0 unless defined $entcode
682 0 0 unless defined $string
683 0 0 if (exists $$self{'ATTRSTART'}{'validate'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata')
692 0 0 unless defined $string
699 0 0 unless defined $string
700 0 0 if (defined $$self{'ATTRSTART'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata') { }
710 0 0 unless defined $string
711 0 0 if (defined $$self{'ATTRSTART'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata') { }
721 0 0 unless defined $string
722 0 0 if (defined $$self{'ATTRSTART'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata') { }
732 0 0 if (defined $$self{'ATTRSTART'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata') { }
0 0 elsif (defined $$self{'App'} and exists $$self{'App'}{'EXT0VALUE'}) { }
735 0 0 unless defined $string
740 0 0 if (exists $$self{'App'}{'EXT0VALUE'}{$idx}) { }
753 0 0 if (defined $$self{'ATTRSTART'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata') { }
0 0 elsif (defined $$self{'App'} and exists $$self{'App'}{'EXT1VALUE'}) { }
756 0 0 unless defined $string
761 0 0 if (exists $$self{'App'}{'EXT1VALUE'}{$idx}) { }
774 0 0 if (defined $$self{'ATTRSTART'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata') { }
0 0 elsif (defined $$self{'App'} and exists $$self{'App'}{'EXT2VALUE'}) { }
777 0 0 unless defined $string
782 0 0 if (exists $$self{'App'}{'EXT2VALUE'}{$idx}) { }
796 0 0 unless defined $string
797 0 0 if (exists $$self{'ATTRSTART'}{'validate'} and $$self{'ATTRSTART'}{'validate'} eq 'vdata')
814 0 0 unless defined $data
815 0 0 if (exists $$self{'ATTRSTART'}{'encoding'} and $$self{'ATTRSTART'}{'encoding'} eq 'iso-8601') { }
828 0 0 if ($attr & 128) { }
829 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'ATTRVALUE'}{$token}) { }
841 0 0 if (defined $$self{'App'} and exists $$self{'App'}{'ATTRSTART'}{$token}) { }
845 0 0 if exists $$self{'ATTRSTART'}{'value'}
860 0 0 unless defined $ch
862 0 0 if ($tag == 0)
864 0 0 unless defined $ch
867 0 0 unless defined $ch
876 0 0 unless defined $ch
878 0 0 if ($attr == 0)
880 0 0 unless defined $ch
883 0 0 unless defined $ch
893 0 0 unless defined $ch
897 0 0 unless defined $ch
906 0 0 unless defined $len
941 0 0 if (exists $$self{'message_no_op'})