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 | 13600 | use strict; | |||
25 | 34 | ||||||
25 | 605 | ||||||
4 | |||||||
5 | 25 | 25 | 420 | use HTML::DOM::Node 'DOCUMENT_FRAGMENT_NODE'; | |||
25 | 29 | ||||||
25 | 2396 | ||||||
6 | |||||||
7 | our @ISA = 'HTML::DOM::Node'; | ||||||
8 | our $VERSION = '0.057'; | ||||||
9 | |||||||
10 | sub new { | ||||||
11 | 10 | 10 | 0 | 72039 | SUPER::new{shift} '~frag'; | ||
10 | 51 | ||||||
12 | } | ||||||
13 | |||||||
14 | 5 | 5 | 1 | 597 | sub nodeName {'#document-fragment'} | ||
15 | *nodeType = \& DOCUMENT_FRAGMENT_NODE; | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |