Spoon/Plugin.pm

filter: Statementstmt 43.4% 10 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 0.0% 0 / 4 totaltotal 36.1% 13 / 36 CC 2 SCAR 9.7
CC
2
Cov
40%
register
6.0
class_title_prefix
2.0
class_id
2.0
CRAP 2.6
« Spoon/Template.pm ↑ Summary Spoon/Headers.pm »
1 package Spoon::Plugin;
2 1 ▶use Spoon::Base -Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
4 0 ▶sub class_title_prefix { () }
Subroutine class_title_prefix: not called CC=1 SCAR=6.9
Pod undocumented
5  
6 0 ▶sub class_id {
Subroutine class_id: not called CC=1 SCAR=6.9
Pod undocumented
7 0 my $package = ref $self;
8 0 $package =~ s/.*:://;
9 0 lc($package);
10 }
11  
12 0 ▶sub class_title {
Subroutine class_title: not called CC=1 SCAR=6.9
Pod undocumented
13 join ' ', map {
14 0 s/(.*)/\u$1/;
15 0 $_;
16 } $self->class_title_prefix, split '_', $self->class_id;
17 }
18  
19 0 ▶sub register {
Subroutine register: not called CC=2 SCAR=17.9
Pod undocumented
20 0 ▶ $self->hub->registry->add(action => $self->class_id, 'process')
Branch: 1 branch
BranchTrueFalseTotal
if $self->can("process") 0 0 0
21 if $self->can('process');
22 0 return $self;
23 }
24  
25 1 __END__
« Spoon/Template.pm ↑ Summary Spoon/Headers.pm »