blib/lib/Module/Install/AutomatedTester.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 15 | 80.0 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 4 | 6 | 66.6 |
pod | 2 | 2 | 100.0 |
total | 18 | 25 | 72.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Module::Install::AutomatedTester; | ||||||
2 | |||||||
3 | 1 | 1 | 14429 | use strict; | |||
1 | 1 | ||||||
1 | 27 | ||||||
4 | 1 | 1 | 3 | use warnings; | |||
1 | 2 | ||||||
1 | 27 | ||||||
5 | 1 | 1 | 3 | use base qw(Module::Install::Base); | |||
1 | 4 | ||||||
1 | 385 | ||||||
6 | 1 | 1 | 4 | use vars qw($VERSION); | |||
1 | 1 | ||||||
1 | 66 | ||||||
7 | |||||||
8 | $VERSION = '0.04'; | ||||||
9 | |||||||
10 | sub auto_tester { | ||||||
11 | 0 | 0 | 0 | 1 | return if $Module::Install::AUTHOR; | ||
12 | 0 | return $ENV{AUTOMATED_TESTING}; | |||||
13 | } | ||||||
14 | |||||||
15 | sub cpan_tester { | ||||||
16 | 0 | 0 | 1 | &auto_tester; | |||
17 | } | ||||||
18 | |||||||
19 | 'ARE WE BEING SMOKED?'; | ||||||
20 | |||||||
21 | __END__ |