Bolts/Meta/Class/Trait/Locator.pm

filter: Statementstmt 80.0% 12 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 100% 4 / 4 totaltotal 76.9% 20 / 26 CC 1 SCAR 3.6
CC
1
Cov
80%
acquire_all
2.0
resolve
2.0
get
2.0
CRAP 1.4
« Bolts/Injector/Store/Array.pm ↑ Summary Bolts.pm »
1 package Bolts::Meta::Class::Trait::Locator;
2 11 $Bolts::Meta::Class::Trait::Locator::VERSION = '0.143171';
3 # ABSTRACT: Metaclass role for objects that have a meta locator
4  
5 11 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 ▶use Bolts::Meta::Locator;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 11 has locator => (
11 is => 'rw',
12 does => 'Bolts::Role::Locator',
13 lazy_build => 1,
14 );
15  
16 19 ▶sub _build_locator {
Subroutine _build_locator: called CC=1 SCAR=0.0
17 19 $Bolts::GLOBAL_FALLBACK_META_LOCATOR->new;
18 }
19  
20  
21 164 ▶sub acquire { shift->locator->acquire(@_) }
Subroutine acquire: called CC=1 SCAR=0.0
Pod documented
22 0 ▶sub acquire_all { shift->locator->acquire_all(@_) }
Subroutine acquire_all: not called CC=1 SCAR=6.9
Pod documented
23 0 ▶sub resolve { shift->locator->resolve(@_) }
Subroutine resolve: not called CC=1 SCAR=6.9
Pod documented
24 0 ▶sub get { shift->locator->get(@_) }
Subroutine get: not called CC=1 SCAR=6.9
Pod documented
25  
26 11 with 'Bolts::Role::Locator';
27  
28 11 1;
29  
30 __END__
« Bolts/Injector/Store/Array.pm ↑ Summary Bolts.pm »