| 1 | package App::BCSSH::Inline; | ||||||||||||||||||||
| 2 | 1 | ▶ | use strictures 1; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 1 | ▶ | use Moo (); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 1 | ▶ | use Moo::Role (); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 1 | ▶ | use Module::Runtime qw(module_notional_filename); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 1 | ▶ | use Import::Into; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 1 | ▶ | use base 'Exporter'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | 1 | our @EXPORT = qw(make_handler); | |||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 0 | ▶ | sub import { | ||||||||||||||||||
|
Subroutine
import: not called CC=2 SCAR=17.9
| |||||||||||||||||||||
| 12 | 0 | my $class = $_[0]; | |||||||||||||||||||
| 13 | 0 | my ($target, $file) = caller; | |||||||||||||||||||
| 14 | 0 | my $filename = module_notional_filename($target); | |||||||||||||||||||
| 15 | 0 | ▶ | $INC{$filename} ||= $file; | ||||||||||||||||||
|
Condition0%0/3
$INC{$filename} ||= $file
MC/DC0%0/2
$INC{$filename} ||= $file
$INC{$filename}
$file
Truth table0%0/3
A ||= B
A= $INC{$filename}B= $file
| |||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 0 | $class->export_to_level(1, @_); | |||||||||||||||||||
| 18 | } | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 0 | ▶ | sub make_handler (&) { | ||||||||||||||||||
|
Subroutine
make_handler: not called CC=2 SCAR=14.4
Pod
undocumented
| |||||||||||||||||||||
| 21 | 0 | my $handler = shift; | |||||||||||||||||||
| 22 | 0 | my ($class, $file) = caller; | |||||||||||||||||||
| 23 | 0 | my $handler_name = $class->handler; | |||||||||||||||||||
| 24 | 0 | my $role = 'App::BCSSH::Handler'; | |||||||||||||||||||
| 25 | 0 | my $handler_class = "${role}::${handler_name}"; | |||||||||||||||||||
| 26 | 0 | ▶ | $INC{module_notional_filename($handler_class)} ||= $file; | ||||||||||||||||||
|
Condition0%0/3
$INC{&module_notional_filename($handler_class)} ||= $file
MC/DC0%0/2
$INC{&module_notional_filename($handler_class)} ||= $file
$INC{&module_notional_filename($handler_class)}
$file
Truth table0%0/3
A ||= B
A= $INC{&module_notional_filename($handler_class)}B= $file
| |||||||||||||||||||||
| 27 | 0 | Moo->import::into($handler_class); | |||||||||||||||||||
| 28 | 0 | Moo::Role->apply_roles_to_package($handler_class, $role); | |||||||||||||||||||
| 29 | 1 | ▶ | no strict 'refs'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 30 | 0 | *{"${handler_class}::handle"} = $handler; | |||||||||||||||||||
| 31 | 0 | return 1; | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 1 | 1; | |||||||||||||||||||