test-data/lib/Local/ViaExporter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 10 | 90.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 15 | 80.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Local::ViaExporter; | ||||||
2 | |||||||
3 | 3 | 3 | 24 | use strict; | |||
3 | 9 | ||||||
3 | 104 | ||||||
4 | 3 | 3 | 36 | use warnings; | |||
3 | 5 | ||||||
3 | 93 | ||||||
5 | |||||||
6 | 3 | 3 | 20 | use Exporter 'import'; | |||
3 | 6 | ||||||
3 | 419 | ||||||
7 | our @EXPORT = qw(foo $foo @foo %foo); | ||||||
8 | |||||||
9 | 0 | 0 | 0 | sub foo { return 'from sub foo' } | |||
10 | our $foo = 1; | ||||||
11 | our @foo = ( 1 .. 10 ); | ||||||
12 | our %foo = ( foo => 'bar' ); | ||||||
13 | |||||||
14 | 1; |