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 | 44808 | use strict; | |||
1 | 3 | ||||||
1 | 43 | ||||||
4 | 1 | 1 | 7 | use warnings; | |||
1 | 2 | ||||||
1 | 34 | ||||||
5 | 1 | 1 | 6 | use base qw(Module::Install::Base); | |||
1 | 7 | ||||||
1 | 767 | ||||||
6 | 1 | 1 | 6 | use vars qw($VERSION); | |||
1 | 2 | ||||||
1 | 95 | ||||||
7 | |||||||
8 | $VERSION = '0.02'; | ||||||
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__ |