blib/lib/HF.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | 3 | 4 | 75.0 |
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HF; | ||||||
2 | 1 | 1 | 5 | use strict; | |||
1 | 1 | ||||||
1 | 22 | ||||||
3 | 1 | 1 | 3 | use warnings; | |||
1 | 2 | ||||||
1 | 104 | ||||||
4 | |||||||
5 | our $VERSION = '0.001'; | ||||||
6 | |||||||
7 | our $AUTOLOAD; | ||||||
8 | |||||||
9 | sub AUTOLOAD { | ||||||
10 | 10 | 10 | 2303 | my ($in, @args) = @_; | |||
11 | 10 | 13 | my $meth = $AUTOLOAD; | ||||
12 | 10 | 39 | $meth =~ s/^.*:://g; | ||||
13 | |||||||
14 | 10 | 50 | 33 | my @got = $in->$meth(@args ? @args : ()); | |||
15 | 10 | 100 | 45 | return unless @got; | |||
16 | 8 | 39 | return ($meth => $got[0]); | ||||
17 | } | ||||||
18 | |||||||
19 | 1; |