Forest/Tree/Builder/Callback.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
create_new_subtree
1.0
BEGIN
1.0
CRAP 1.0
« Forest/Tree/Reader/SimpleTextFile.pm ↑ Summary Forest/Tree/Loader.pm »
1 package Forest::Tree::Builder::Callback;
2 10 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 10 our $VERSION = '0.10';
5 10 our $AUTHORITY = 'cpan:STEVAN';
6  
7 10 with 'Forest::Tree::Builder' => { -excludes => [qw(create_new_subtree)] };
8  
9 10 has new_subtree_callback => (
10 isa => "CodeRef|Str",
11 is => "ro",
12 required => 1,
13 default => "Forest::Tree::Constructor::create_new_subtree",
14 );
15  
16 76 ▶sub create_new_subtree {
Subroutine create_new_subtree: called CC=1 SCAR=0.0
Pod undocumented
17 76 my ( $self, @args ) = @_;
18  
19 76 my $method = $self->new_subtree_callback;
20  
21 76 $self->$method(@args);
22 }
23  
24 10 ▶no Moose::Role; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 __END__
« Forest/Tree/Reader/SimpleTextFile.pm ↑ Summary Forest/Tree/Loader.pm »