Forest/Tree/Indexer.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
get_root
1.0
CRAP 1.0
« Forest.pm ↑ Summary Forest/Tree/Reader.pm »
1 package Forest::Tree::Indexer;
2 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 4 our $VERSION = '0.10';
5 4 our $AUTHORITY = 'cpan:STEVAN';
6  
7 4 has 'tree' => (
8 is => 'rw',
9 isa => 'Forest::Tree::Pure',
10 );
11  
12 has 'index' => (
13 traits => ['Hash'],
14 is => 'rw',
15 isa => 'HashRef[Forest::Tree::Pure]',
16 lazy => 1,
17 3 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
18 4 handles => {
19 get_tree_at => 'get',
20 has_tree_at => 'exists',
21 clear_index => 'clear',
22 get_index_keys => 'keys',
23 }
24 );
25  
26 4 requires 'build_index';
27  
28 3 ▶sub get_root { (shift)->tree }
Subroutine get_root: called CC=1 SCAR=0.0
Pod documented
29  
30 4 ▶no Moose::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 __END__
« Forest.pm ↑ Summary Forest/Tree/Reader.pm »