blib/lib/Test2/Require/AuthorTesting.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 18 | 19 | 94.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test2::Require::AuthorTesting; | ||||||
2 | 2 | 2 | 378 | use strict; | |||
2 | 11 | ||||||
2 | 69 | ||||||
3 | 2 | 2 | 10 | use warnings; | |||
2 | 3 | ||||||
2 | 52 | ||||||
4 | |||||||
5 | 2 | 2 | 10 | use base 'Test2::Require'; | |||
2 | 4 | ||||||
2 | 827 | ||||||
6 | |||||||
7 | our $VERSION = '0.000153'; | ||||||
8 | |||||||
9 | sub skip { | ||||||
10 | 3 | 3 | 0 | 183 | my $class = shift; | ||
11 | 3 | 100 | 19 | return undef if $ENV{'AUTHOR_TESTING'}; | |||
12 | 2 | 12 | return 'Author test, set the $AUTHOR_TESTING environment variable to run it'; | ||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |