Branch Coverage

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


line true false branch
54 3 42 if ($tag_type eq '!data') { }
2 40 elsif ($tag_type eq '!--') { }
3 37 elsif ($tag_type =~ m[^/]ms) { }
29 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) { }
75 5 24 if ($data =~ s[/$][]ms)
81 5 23 if ($end)
119 22 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) { }