blib/lib/Tak/MyScript.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 7 | 42.8 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 1 | 4 | 25.0 |
pod | 0 | 1 | 0.0 |
total | 4 | 14 | 28.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Tak::MyScript; | ||||||
2 | |||||||
3 | 1 | 1 | 874 | use Moo; | |||
1 | 2 | ||||||
1 | 13 | ||||||
4 | |||||||
5 | extends 'Tak::Script'; | ||||||
6 | |||||||
7 | 0 | 0 | sub _my_script_package { 'Tak::MyScript' } | ||||
8 | |||||||
9 | sub BUILD { | ||||||
10 | 0 | 0 | 0 | my ($self) = @_; | |||
11 | 0 | 0 | $self->_load_file('Takfile') if -e 'Takfile'; | ||||
12 | } | ||||||
13 | |||||||
14 | sub _load_file_in_my_script { | ||||||
15 | 0 | 0 | require $_[1]; | ||||
16 | } | ||||||
17 | |||||||
18 | 1; |