blib/lib/Minilla/Release/DistTest.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 15 | 60.0 |
branch | 0 | 4 | 0.0 |
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 24 | 50.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Minilla::Release::DistTest; | ||||||
2 | 1 | 1 | 981 | use strict; | |||
1 | 2 | ||||||
1 | 30 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 25 | ||||||
4 | 1 | 1 | 6 | use utf8; | |||
1 | 1 | ||||||
1 | 5 | ||||||
5 | |||||||
6 | sub run { | ||||||
7 | 0 | 0 | 0 | my ($self, $project, $opts) = @_; | |||
8 | |||||||
9 | 0 | 0 | $opts->{test} or return; | ||||
10 | |||||||
11 | 0 | local $ENV{RELEASE_TESTING} = 1; | |||||
12 | 0 | my $work_dir = $project->work_dir(); | |||||
13 | 0 | 0 | if ($work_dir->dist_test) { | ||||
14 | # Failed. | ||||||
15 | 0 | exit 1; | |||||
16 | } | ||||||
17 | } | ||||||
18 | |||||||
19 | 1; | ||||||
20 |