blib/lib/CloudCron/Parser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 16 | 17 | 94.1 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CloudCron::Parser; | ||||||
2 | 1 | 1 | 9 | use Moose; | |||
1 | 2 | ||||||
1 | 6 | ||||||
3 | 1 | 1 | 6000 | use namespace::autoclean; | |||
1 | 2 | ||||||
1 | 6 | ||||||
4 | 1 | 1 | 472 | use Parse::Crontab; | |||
1 | 60320 | ||||||
1 | 135 | ||||||
5 | |||||||
6 | extends 'Parse::Crontab'; | ||||||
7 | |||||||
8 | sub envs { | ||||||
9 | 9 | 9 | 0 | 16 | my $self = shift; | ||
10 | 9 | 29 | return grep { $_->isa('Parse::Crontab::Entry::Env') } $self->entries; | ||||
15 | 81 | ||||||
11 | } | ||||||
12 | |||||||
13 | __PACKAGE__->meta->make_immutable( inline_constructor => 0 ); | ||||||
14 | 1; |