blib/lib/XML/Genx.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package XML::Genx; | ||||||
2 | |||||||
3 | 4 | 4 | 115086 | use strict; | |||
4 | 11 | ||||||
4 | 164 | ||||||
4 | 4 | 4 | 24 | use warnings; | |||
4 | 7 | ||||||
4 | 462 | ||||||
5 | |||||||
6 | our $VERSION = '0.22'; | ||||||
7 | |||||||
8 | # Use XSLoader first if possible. | ||||||
9 | eval { | ||||||
10 | require XSLoader; | ||||||
11 | XSLoader::load( __PACKAGE__, $VERSION ); | ||||||
12 | 1; | ||||||
13 | } or do { | ||||||
14 | require DynaLoader; | ||||||
15 | # Avoid inheriting from DynaLoader, simulate class method call. | ||||||
16 | DynaLoader::bootstrap( __PACKAGE__, $VERSION ); | ||||||
17 | }; | ||||||
18 | |||||||
19 | 1; | ||||||
20 | __END__ |