lib/App/CharmKit.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 16 | 56.2 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 21 | 57.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | # ABSTRACT: Additional helper hook routines | ||||||
2 | package App::CharmKit; | ||||||
3 | |||||||
4 | our $VERSION = '2.10'; | ||||||
5 | |||||||
6 | 1 | 1 | 782 | use charm; | |||
1 | 4 | ||||||
1 | 14 | ||||||
7 | |||||||
8 | 1 | 1 | 197 | use FindBin; | |||
1 | 2 | ||||||
1 | 66 | ||||||
9 | 1 | 1 | 7 | use base "Exporter::Tiny"; | |||
1 | 2 | ||||||
1 | 28 | ||||||
10 | |||||||
11 | our @EXPORT = qw(plugin); | ||||||
12 | |||||||
13 | 0 | 0 | 0 | sub plugin ($name, $opts = {}) { | |||
0 | |||||||
0 | |||||||
0 | |||||||
14 | 0 | my $name_path = "$FindBin::Bin/../lib/$name.pm"; | |||||
15 | 0 | require $name_path; | |||||
16 | 0 | return "$name"->new($opts); | |||||
17 | } | ||||||
18 | |||||||
19 | |||||||
20 | 1; | ||||||
21 | |||||||
22 | __END__ |