| 1 | package Tak::ModuleSender; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use IO::All; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use List::Util qw(first); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Config; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | with 'Tak::Role::Service'; | |||||||||
| 9 | |||||||||||
| 10 | 1 | has dir_list => (is => 'lazy'); | |||||||||
| 11 | |||||||||||
| 12 | sub _build_dir_list { | ||||||||||
| 13 | 0 | ▶ | my %core = map +($_ => 1), @Config{qw(privlibexp archlibexp)}; | ||||||||
|
Subroutine
_build_dir_list: not called CC=1 SCAR=6.9
| |||||||||||
| 14 | 0 | [ map io->dir($_), grep !/$Config{archname}$/, grep !$core{$_}, @INC ]; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | sub handle_source_for { | ||||||||||
| 18 | 0 | ▶ | my ($self, $module) = @_; | ||||||||
|
Subroutine
handle_source_for: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 19 | 0 | ▶ | my $io = first { $_->exists } map $_->catfile($module), @{$self->dir_list}; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 20 | 0 | ▶ | unless ($io) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | die [ 'failure' ]; | |||||||||
| 22 | } | ||||||||||
| 23 | 0 | my $code = $io->all; | |||||||||
| 24 | 0 | return $code; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | 1; | |||||||||