blib/lib/Kelp/Module/Beam/Wire.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 90.9% 20 / 22 CC 2 SCAR 3.4
CC
2
Cov
94%
build
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
↑ Summary
1 package Kelp::Module::Beam::Wire;
2 1 $Kelp::Module::Beam::Wire::VERSION = '1.00';
3 1 ▶use Kelp::Base 'Kelp::Module';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Beam::Wire;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub build
7 1 ▶{
Subroutine build: called CC=2 SCAR=7.0
Pod documented
8 1 my ($self, %args) = @_;
9  
10 1 my $wire = Beam::Wire->new(%args);
11 1 ▶ $wire->set($args{app_service} // 'app', $self->app);
Condition50%1/2
$args{"app_service"} // "app"
l!l
01
MC/DC0%0/1
$args{"app_service"} // "app"
$args{"app_service"}
Truth table50%1/2
A
A= $args{"app_service"}
Aresult
11
00
12  
13 # register as a sub so that it is avaliable in class context
14 1 ▶ $self->register(container => sub { $wire });
Subroutine __ANON__: called CC=1 SCAR=0.0
15  
16 1 return;
17 }
18  
19 1 1;
20 __END__
↑ Summary