Branch Coverage

blib/lib/SGML/PYX.pm
Criterion Covered Total %
branch 23 24 95.8


line true false branch
57 3 45 if ($tag_type eq '!data') { }
2 43 elsif ($tag_type eq '!--') { }
3 40 elsif ($tag_type =~ m[^/]ms) { }
32 8 elsif ($tag_type =~ /^\w+/ms) { }
1 7 elsif ($tag_type eq '!doctype') { }
4 3 elsif ($tag_type eq '![cdata[') { }
3 0 elsif ($tag_type =~ /^\?/ms) { }
78 5 27 if ($data =~ s[/$][]ms)
84 5 26 if ($end)
122 28 8 if ($data =~ /^([_\w:][\.\-\w:]*)\s*=\s*"(.*?)"\s*(.*)$/ms or $data =~ /^([_\w:][\.\-\w:]*)\s*=\s*'(.*?)'\s*(.*)$/ms or $data =~ /^([_\w:][\.\-\w:]*)\s*=\s*([^\s]+)\s*(.*)$/ms) { }
3 5 elsif ($data =~ /^([_\w:][\.\-\w:]*)\s*=\s*$/ms) { }
4 1 elsif ($data =~ /^([_\w:][\.\-\w:]*)\s*(.*)$/ms) { }