Bolts/Blueprint/Built.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
builder
1.0
CRAP 1.0
« Bolts/Blueprint.pm ↑ Summary Bolts/Blueprint/BuiltInjector.pm »
1 package Bolts::Blueprint::Built;
2 11 $Bolts::Blueprint::Built::VERSION = '0.143171';
3 # ABSTRACT: Build an artifact by running a subroutine
4  
5 11 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 with 'Bolts::Blueprint';
8  
9 11 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 11 has builder => (
13 isa => 'CodeRef',
14 reader => 'the_builder',
15 required => 1,
16 traits => [ 'Code' ],
17 handles => {
18 'call_builder' => 'execute_method',
19 },
20 );
21  
22  
23 57 ▶sub builder {
Subroutine builder: called CC=1 SCAR=0.0
Pod documented
24 57 my ($self, $bag, $name, @params) = @_;
25 57 $self->call_builder($bag, $name, @params);
26 }
27  
28 11 __PACKAGE__->meta->make_immutable;
29  
30 __END__
« Bolts/Blueprint.pm ↑ Summary Bolts/Blueprint/BuiltInjector.pm »