| blib/lib/XML/Liberal/Remedy/EntityRef.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 7 | 8 | 87.5 |
| line | true | false | branch |
|---|---|---|---|
| 8 | 127 | 22 | unless $error->message =~ /^parser error : (?:EntityRef: expecting ';'|xmlParseEntityRef: no name)/ |
| 21 | 7 | 15 | if (not $$xml_ref =~ / .<\? | |
| 22 | 7 | 0 | if $$xml_ref =~ s/&(?!\w+;|#(?:x[a-fA-F0-9]+|\d+);)/&/g |
| 29 | 15 | 30 | if $$xml_ref =~ s/\G&/&/ |