blib/lib/HTML/DOM/DocumentFragment.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 9 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 2 | 50.0 |
total | 14 | 15 | 93.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HTML::DOM::DocumentFragment; | ||||||
2 | |||||||
3 | 25 | 25 | 53157 | use strict; | |||
25 | 49 | ||||||
25 | 945 | ||||||
4 | |||||||
5 | 25 | 25 | 490 | use HTML::DOM::Node 'DOCUMENT_FRAGMENT_NODE'; | |||
25 | 39 | ||||||
25 | 2465 | ||||||
6 | |||||||
7 | our @ISA = 'HTML::DOM::Node'; | ||||||
8 | our $VERSION = '0.058'; | ||||||
9 | |||||||
10 | sub new { | ||||||
11 | 10 | 10 | 0 | 83 | SUPER::new{shift} '~frag'; | ||
10 | 49 | ||||||
12 | } | ||||||
13 | |||||||
14 | 5 | 5 | 1 | 735 | sub nodeName {'#document-fragment'} | ||
15 | *nodeType = \& DOCUMENT_FRAGMENT_NODE; | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |