blib/lib/Acme/RequireModule.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 13 | 84.6 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 5 | 80.0 |
pod | n/a | ||
total | 15 | 18 | 83.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Acme::RequireModule; | ||||||
2 | |||||||
3 | 2 | 2 | 74823 | use 5.010_000; | |||
2 | 9 | ||||||
2 | 95 | ||||||
4 | 2 | 2 | 13 | use strict; | |||
2 | 3 | ||||||
2 | 118 | ||||||
5 | |||||||
6 | our $VERSION = '0.01'; | ||||||
7 | |||||||
8 | 2 | 2 | 15 | use XSLoader; | |||
2 | 8 | ||||||
2 | 267 | ||||||
9 | XSLoader::load(__PACKAGE__, $VERSION); | ||||||
10 | |||||||
11 | sub import{ | ||||||
12 | 2 | 2 | 51 | $^H{(__PACKAGE__)} = _enter(); | |||
13 | |||||||
14 | 2 | 4878 | return; | ||||
15 | } | ||||||
16 | sub unimport{ | ||||||
17 | 0 | 0 | delete $^H{(__PACKAGE__)}; | ||||
18 | |||||||
19 | 0 | return; | |||||
20 | } | ||||||
21 | |||||||
22 | |||||||
23 | 1; | ||||||
24 | __END__ |