Gears/Component.pm

filter: Statementstmt 100% 12 / 12 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 2 SCAR 4.1
CC
2
Cov
100%
BUILD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« Gears/Router/Pattern.pm ↑ Summary Gears/X/HTTP.pm »
1 package Gears::Component;
2 1 $Gears::Component::VERSION = '0.105';
3 1 ▶use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Mooish::Base -standard;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 has param 'app' => (
7 isa => InstanceOf ['Gears::App'],
8 weak_ref => 1,
9 );
10  
11 4 ▶sub BUILD ($self, $)
Subroutine BUILD: called CC=2 SCAR=6.9
Pod undocumented
12 {
13 4 $self->configure;
14 4 my $class = ref $self;
15  
16 # make sure superclass build method won't be called (avoid building the
17 # same elements twice)
18 4 ▶ if (exists &{"${class}::build"}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists &{"${class}::build";}) 2 2 4
19 2 $self->build;
20 }
21 }
22  
23 sub configure ($self)
24 {
25 }
26  
27 sub build ($self)
28 {
29 }
30  
31 __END__
« Gears/Router/Pattern.pm ↑ Summary Gears/X/HTTP.pm »