blib/lib/Catalyst/Seal/Construct.pm

filter: Statementstmt 93.3% 183 / 196 Branchbran 67.0% 59 / 88 Conditioncond 55.5% 40 / 72 MC/DCmcdc 23.8% 10 / 42 Subroutinesub 92.8% 26 / 28 Podpod 0.0% 0 / 3 totaltotal 74.1% 318 / 429 CC 74 SCAR 26.2
CC
74
Cov
79%
_ctor_attr
26.5
_controller_build
17.2
_seal_constructor
17.1
CRAP 13.8
« blib/lib/Catalyst/Seal/Dispatch.pm ↑ Summary blib/lib/Catalyst/Seal/Finalize.pm »
1 package Catalyst::Seal::Construct;
2  
3 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 19 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 19 ▶use Scalar::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 19 ▶use Catalyst::Seal ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 19 ▶use Catalyst::Seal::Guard ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 19 our $VERSION = '0.04';
12  
13 19 my %EMPTY;
14 my %DECIDED;
15  
16 0 ▶sub _clear { %EMPTY = (); %DECIDED = (); return }
Subroutine _clear: not called CC=1 SCAR=6.9
17 1 ▶sub empty_classes { scalar keys %EMPTY }
Subroutine empty_classes: called CC=1 SCAR=0.0
Pod undocumented
18  
19 13 ▶sub _stock_controller_build {
Subroutine _stock_controller_build: called CC=1 SCAR=0.0
20 13 my $orig = $Catalyst::Seal::Guard::ORIGINAL{'Catalyst::Controller::BUILD'};
21 13 return $orig;
22 }
23  
24 379 ▶sub _controller_build {
Subroutine _controller_build: called CC=13 SCAR=28.4
25 379 my ($self, $args) = @_;
26  
27 379 my $class = ref $self;
28 379 ▶ my $plain = !exists $args->{action} && !exists $args->{actions};
Condition66%2/3
exists $args->{'action'} || exists $args->{'actions'}
l!l&&r!l&&!r
01378
MC/DC50%1/2
exists $args->{'action'} || exists $args->{'actions'}
exists $args->{'action'} exists $args->{'actions'}
Truth table66%2/3
A || B
A= exists $args->{'action'}B= exists $args->{'actions'}
ABresult
1X1
011
000
29  
30 379 ▶ if ($plain && $EMPTY{$class}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($plain and $EMPTY{$class}) 366 13 379
Condition100%3/3
$plain and $EMPTY{$class}
!ll&&!rl&&r
112366
MC/DC100%2/2
$plain and $EMPTY{$class}
$plain $EMPTY{$class}
Truth table100%3/3
A and B
A= $plainB= $EMPTY{$class}
ABresult
0X0
100
111
31 366 $self->{actions} = {};
32 366 $self->{_all_actions_attributes} = {};
33 366 $self->{_action_roles} = [];
34 366 return;
35 }
36  
37 13 ▶ my $orig = _stock_controller_build() or return;
Branch: 1 branch
BranchTrueFalseTotal
my $orig = _stock_controller_build() or return 13 0 13
38 13 $orig->($self, $args);
39  
40 13 ▶ return unless $plain;
Branch: 1 branch
BranchTrueFalseTotal
unless $plain 1 12 13
41 12 ▶ return if $DECIDED{$class}++;
Branch: 1 branch
BranchTrueFalseTotal
if $DECIDED{$class}++ 0 12 12
42  
43 12 my $actions = $self->{actions};
44 12 my $attrs = $self->{_all_actions_attributes};
45 12 my $roles = $self->{_action_roles};
46  
47 12 ▶ $EMPTY{$class} = 1
Branch: 1 branch
BranchTrueFalseTotal
if ref $actions eq "HASH" and not keys %$actions and ref $attrs eq "HASH" and not keys %$attrs and ref $roles eq "ARRAY" and not @$roles 12 0 12
Condition33%5/15
ref $actions eq "HASH" and not keys %$actions and ref $attrs eq "HASH" and not keys %$attrs and ref $roles eq "ARRAY" and not @$roles
!ll&&!rl&&r
0012
ref $actions eq "HASH" and not keys %$actions and ref $attrs eq "HASH" and not keys %$attrs and ref $roles eq "ARRAY"
!ll&&!rl&&r
0012
ref $actions eq "HASH" and not keys %$actions and ref $attrs eq "HASH" and not keys %$attrs
!ll&&!rl&&r
0012
ref $actions eq "HASH" and not keys %$actions and ref $attrs eq "HASH"
!ll&&!rl&&r
0012
ref $actions eq "HASH" and not keys %$actions
!ll&&!rl&&r
0012
MC/DC0%0/6
ref $actions eq "HASH" and not keys %$actions and ref $attrs eq "HASH" and not keys %$attrs and ref $roles eq "ARRAY" and not @$roles
ref $actions eq "HASH" not keys %$actions ref $attrs eq "HASH" not keys %$attrs ref $roles eq "ARRAY" not @$roles
Truth table14%1/7
A and not(B) and C and not(D) and E and not(F)
A= ref $actions eq "HASH"B= not keys %$actionsC= ref $attrs eq "HASH"D= not keys %$attrsE= ref $roles eq "ARRAY"F= not @$roles
ABCDEFresult
0XXXXX0
10XXXX0
110XXX0
1110XX0
11110X0
1111100
1111111
48 if ref $actions eq 'HASH' && !keys %$actions
49 && ref $attrs eq 'HASH' && !keys %$attrs
50 && ref $roles eq 'ARRAY' && !@$roles;
51  
52 12 return;
53 }
54  
55 19 our %LAZY_STATS;
56  
57 19 my %STATS_ORIG;
58  
59 12 ▶sub _make_stats_reader {
Subroutine _make_stats_reader: called CC=2 SCAR=6.9
60 12 my ($class) = @_;
61 12 ▶ my $orig = $class->can('stats') or return;
Branch: 1 branch
BranchTrueFalseTotal
my $orig = $class->can("stats") or return 12 0 12
62 12 $STATS_ORIG{$class} = $orig;
63  
64 7 ▶ return sub {
Subroutine __ANON__: called CC=3 SCAR=11.0
65 7 my $self = shift;
66 7 ▶ return $orig->($self, @_) if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 6 7
67  
68 6 my $v = $self->{stats};
69 6 ▶ return $v if defined $v;
Branch: 1 branch
BranchTrueFalseTotal
if defined $v 2 4 6
70  
71 4 my $stats = $self->stats_class->new;
72 4 $stats->enable($self->use_stats);
73 4 return $self->{stats} = $stats;
74 12 };
75 }
76  
77 19 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
78 19 D_NONE => 0,
79 D_CONST => 1,
80 D_HASH => 2,
81 D_ARRAY => 3,
82 D_CODE => 4,
83 19 };
84  
85 19 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
86 19 A_GUARDED => 1,
87 A_REQUIRED => 2,
88 A_WEAK => 4,
89 A_TYPED => 8,
90 19 };
91  
92 516 ▶sub _default_kind {
Subroutine _default_kind: called CC=14 SCAR=27.8
93 516 my ($attr) = @_;
94  
95 516 ▶ return (D_NONE, undef) unless $attr->has_default;
Branch: 1 branch
BranchTrueFalseTotal
unless $attr->has_default 324 192 516
96  
97 192 my $d = $attr->default;
98 192 ▶ return (D_CONST, $d) unless ref $d eq 'CODE';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $d eq "CODE" 72 120 192
99  
100 120 my ($one, $two) = (eval { $d->() }, eval { $d->() });
101 120 ▶ return (D_CODE, $d) if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 120 120
102  
103 120 for my $pair ([ 'HASH', D_HASH ], [ 'ARRAY', D_ARRAY ]) {
104 192 my ($type, $kind) = @$pair;
105 192 ▶ next unless ref $one eq $type && ref $two eq $type;
Branch: 1 branch
BranchTrueFalseTotal
unless ref $one eq $type and ref $two eq $type 96 96 192
Condition66%2/3
ref $one eq $type and ref $two eq $type
!ll&&!rl&&r
96096
MC/DC50%1/2
ref $one eq $type and ref $two eq $type
ref $one eq $type ref $two eq $type
Truth table66%2/3
A and B
A= ref $one eq $typeB= ref $two eq $type
ABresult
0X0
100
111
106 96 ▶ next if Scalar::Util::blessed($one) || Scalar::Util::blessed($two);
Branch: 1 branch
BranchTrueFalseTotal
if builtin::blessed($one) or builtin::blessed($two) 0 96 96
Condition33%1/3
builtin::blessed($one) or builtin::blessed($two)
l!l&&r!l&&!r
0096
MC/DC0%0/2
builtin::blessed($one) or builtin::blessed($two)
builtin::blessed($one) builtin::blessed($two)
Truth table33%1/3
A or B
A= builtin::blessed($one)B= builtin::blessed($two)
ABresult
1X1
011
000
107 96 ▶ next if Scalar::Util::refaddr($one) == Scalar::Util::refaddr($two);
Branch: 1 branch
BranchTrueFalseTotal
if builtin::refaddr($one) == builtin::refaddr($two) 0 96 96
108 96 ▶ next if $type eq 'HASH' && keys %$one;
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "HASH" and keys %$one 0 96 96
Condition66%2/3
$type eq "HASH" and keys %$one
!ll&&!rl&&r
48480
MC/DC0%0/2
$type eq "HASH" and keys %$one
$type eq "HASH" keys %$one
Truth table66%2/3
A and B
A= $type eq "HASH"B= keys %$one
ABresult
0X0
100
111
109 96 ▶ next if $type eq 'ARRAY' && @$one;
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "ARRAY" and @$one 0 96 96
Condition66%2/3
$type eq "ARRAY" and @$one
!ll&&!rl&&r
48480
MC/DC0%0/2
$type eq "ARRAY" and @$one
$type eq "ARRAY" @$one
Truth table66%2/3
A and B
A= $type eq "ARRAY"B= @$one
ABresult
0X0
100
111
110 96 return ($kind, undef);
111 }
112  
113 24 return (D_CODE, $d);
114 }
115  
116 720 ▶sub _ctor_attr {
Subroutine _ctor_attr: called CC=22 SCAR=32.8
117 720 my ($attr) = @_;
118  
119 720 my @slots = $attr->slots;
120 720 ▶ return undef unless @slots == 1 && $slots[0] eq $attr->name;
Branch: 1 branch
BranchTrueFalseTotal
unless @slots == 1 and $slots[0] eq $attr->name 0 720 720
Condition33%1/3
@slots == 1 and $slots[0] eq $attr->name
!ll&&!rl&&r
00720
MC/DC0%0/2
@slots == 1 and $slots[0] eq $attr->name
@slots == 1 $slots[0] eq $attr->name
Truth table33%1/3
A and B
A= @slots == 1B= $slots[0] eq $attr->name
ABresult
0X0
100
111
121 720 ▶ return undef if $attr->has_initializer;
Branch: 1 branch
BranchTrueFalseTotal
if $attr->has_initializer 0 720 720
122  
123 720 ▶ my ($kind, $default) = $attr->is_lazy ? (D_NONE, undef) : _default_kind($attr);
Branch: 1 branch
BranchTrueFalseTotal
$attr->is_lazy ? : 204 516 720
124  
125 720 my $flags = 0;
126 720 my $check;
127 720 ▶ $flags |= A_WEAK if $attr->is_weak_ref;
Branch: 1 branch
BranchTrueFalseTotal
if $attr->is_weak_ref 36 684 720
128  
129 720 ▶ if ($attr->has_trigger || $attr->should_coerce) {
Branch: 2 branches
BranchTrueFalseTotal
if ($attr->has_trigger or $attr->should_coerce) { } 0 720 720
elsif ($attr->has_type_constraint) { } 132 588 720
Condition33%1/3
$attr->has_trigger or $attr->should_coerce
l!l&&r!l&&!r
00720
MC/DC0%0/2
$attr->has_trigger or $attr->should_coerce
$attr->has_trigger $attr->should_coerce
Truth table33%1/3
A or B
A= $attr->has_triggerB= $attr->should_coerce
ABresult
1X1
011
000
130 0 $flags |= A_GUARDED;
131 }
132 elsif ($attr->has_type_constraint) {
133 132 my $tc = $attr->type_constraint;
134 132 $check = eval { $tc->_compiled_type_constraint };
135 0 ▶ $check = sub { $tc->check($_[0]) } unless ref $check eq 'CODE';
Subroutine __ANON__: not called CC=1 SCAR=1.2
Branch: 1 branch
BranchTrueFalseTotal
unless ref $check eq "CODE" 0 132 132
136 132 $flags |= A_TYPED;
137 }
138  
139 720 ▶ $flags |= A_REQUIRED
Branch: 1 branch
BranchTrueFalseTotal
if $attr->is_required and not $attr->has_default and not $attr->has_builder 12 708 720
Condition100%6/6
$attr->is_required and not $attr->has_default and not $attr->has_builder
!ll&&!rl&&r
6961212
$attr->is_required and not $attr->has_default
!ll&&!rl&&r
6366024
MC/DC100%3/3
$attr->is_required and not $attr->has_default and not $attr->has_builder
$attr->is_required not $attr->has_default not $attr->has_builder
Truth table100%4/4
A and not(B) and not(C)
A= $attr->is_requiredB= not $attr->has_defaultC= not $attr->has_builder
ABCresult
0XX0
10X0
1100
1111
140 if $attr->is_required && !$attr->has_default && !$attr->has_builder;
141  
142 720 ▶ if ($kind == D_NONE && !$attr->is_lazy && $attr->has_builder) {
Branch: 1 branch
BranchTrueFalseTotal
if ($kind == 0 and not $attr->is_lazy and $attr->has_builder) 0 720 720
Condition83%5/6
$kind == 0 and not $attr->is_lazy and $attr->has_builder
!ll&&!rl&&r
3963240
$kind == 0 and not $attr->is_lazy
!ll&&!rl&&r
192204324
MC/DC0%0/3
$kind == 0 and not $attr->is_lazy and $attr->has_builder
$kind == 0 not $attr->is_lazy $attr->has_builder
Truth table75%3/4
A and not(B) and C
A= $kind == 0B= not $attr->is_lazyC= $attr->has_builder
ABCresult
0XX0
10X0
1100
1111
143 0 return undef;
144 }
145  
146 720 ▶ if ($kind != D_NONE && $attr->has_type_constraint) {
Branch: 1 branch
BranchTrueFalseTotal
if ($kind != 0 and $attr->has_type_constraint) 24 696 720
Condition100%3/3
$kind != 0 and $attr->has_type_constraint
!ll&&!rl&&r
52816824
MC/DC100%2/2
$kind != 0 and $attr->has_type_constraint
$kind != 0 $attr->has_type_constraint
Truth table100%3/3
A and B
A= $kind != 0B= $attr->has_type_constraint
ABresult
0X0
100
111
147 24 ▶ return undef if $kind == D_CODE;
Branch: 1 branch
BranchTrueFalseTotal
if $kind == 4 0 24 24
148 24 my $tc = $attr->type_constraint;
149 24 ▶ my $probe = $kind == D_CONST ? $default
Branch: 2 branches
BranchTrueFalseTotal
$kind == 1 ? : 0 24 24
$kind == 2 ? : 12 12 24
150 : $kind == D_HASH ? {}
151 : [];
152 24 ▶ return undef unless eval { $tc->check($probe) };
Branch: 1 branch
BranchTrueFalseTotal
unless eval { do { $tc->check($probe) } } 0 24 24
153 }
154  
155 720 my $init = $attr->init_arg;
156 720 return [ $init, $attr->name, $kind, $default, $flags, $check ];
157 }
158  
159 my %CTOR;
160  
161 3 ▶sub sealed_constructors { sort keys %CTOR }
Subroutine sealed_constructors: called CC=1 SCAR=0.0
Pod undocumented
162  
163 3 ▶sub stock_constructor { $CTOR{ $_[0] } }
Subroutine stock_constructor: called CC=1 SCAR=0.0
Pod undocumented
164  
165 2 ▶sub _unseal_constructors {
Subroutine _unseal_constructors: called CC=2 SCAR=6.9
166 2 my $undone = 0;
167 2 for my $class (sort keys %CTOR) {
168 3 my $orig = delete $CTOR{$class};
169 19 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
170 19 ▶ no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
171 3 *{"${class}::new"} = $orig;
172 3 Catalyst::Seal::note("$class\::new un-sealed, a BUILD changed after seal");
173 3 $undone++;
174 }
175 2 return $undone;
176 }
177  
178 36 ▶sub _seal_constructor {
Subroutine _seal_constructor: called CC=14 SCAR=28.4
179 36 my ($class) = @_;
180  
181 36 ▶ return 0 if $CTOR{$class};
Branch: 1 branch
BranchTrueFalseTotal
if $CTOR{$class} 0 36 36
182  
183 36 ▶ my $meta = Class::MOP::class_of($class) or return 0;
Branch: 1 branch
BranchTrueFalseTotal
my $meta = Class::MOP::class_of($class) or return 0 36 0 36
184 36 ▶ return 0 unless $meta->isa('Class::MOP::Class');
Branch: 1 branch
BranchTrueFalseTotal
unless $meta->isa("Class::MOP::Class") 0 36 36
185 36 ▶ unless ($meta->is_immutable) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($meta->is_immutable) 0 36 36
186 0 Catalyst::Seal::note("$class is mutable, its constructor was not sealed");
187 0 return 0;
188 }
189 36 ▶ return 0 unless $meta->instance_metaclass->isa('Class::MOP::Instance');
Branch: 1 branch
BranchTrueFalseTotal
unless $meta->instance_metaclass->isa("Class::MOP::Instance") 0 36 36
190  
191 36 ▶ my $orig = $class->can('new') or return 0;
Branch: 1 branch
BranchTrueFalseTotal
my $orig = $class->can("new") or return 0 36 0 36
192  
193 36 my @attrs;
194 36 for my $attr ($meta->get_all_attributes) {
195 720 my $row = _ctor_attr($attr);
196 720 ▶ unless ($row) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($row) 0 720 720
197 0 Catalyst::Seal::note(
198 "$class\::new not sealed: " . $attr->name . ' is not describable');
199 0 return 0;
200 }
201 720 push @attrs, $row;
202 }
203  
204 36 my @builds;
205 36 for my $cl (reverse $meta->linearized_isa) {
206 19 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
207 108 ▶ my $code = *{"${cl}::BUILD"}{CODE} or next;
Branch: 1 branch
BranchTrueFalseTotal
my $code = *{"${cl}::BUILD";}{"CODE"} or next 48 60 108
208 48 push @builds, $code;
209 }
210  
211 36 my $buildargs = $class->can('BUILDARGS');
212 36 ▶ $buildargs = undef
Branch: 1 branch
BranchTrueFalseTotal
if $buildargs and $buildargs == "Moose::Object"->can("BUILDARGS") 24 12 36
Condition66%2/3
$buildargs and $buildargs == "Moose::Object"->can("BUILDARGS")
!ll&&!rl&&r
01224
MC/DC50%1/2
$buildargs and $buildargs == "Moose::Object"->can("BUILDARGS")
$buildargs $buildargs == "Moose::Object"->can("BUILDARGS")
Truth table66%2/3
A and B
A= $buildargsB= $buildargs == "Moose::Object"->can("BUILDARGS")
ABresult
0X0
100
111
213 if $buildargs && $buildargs == Moose::Object->can('BUILDARGS');
214  
215 36 my $ok = eval {
216 19 ▶ no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
217 36 Catalyst::Seal::_install_ctor(
218 $class, 'new', $orig, $buildargs, \@attrs, \@builds);
219 36 1;
220 };
221 36 ▶ unless ($ok) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($ok) 0 36 36
222 0 Catalyst::Seal::note("could not seal $class\::new: $@");
223 0 return 0;
224 }
225  
226 36 $CTOR{$class} = $orig;
227 36 return 1;
228 }
229  
230 12 ▶sub _constructor_classes {
Subroutine _constructor_classes: called CC=5 SCAR=18.2
231 12 my ($app) = @_;
232  
233 12 ▶ my @classes = ($app->context_class || $app);
Condition33%1/3
$app->context_class || $app
l!l&&r!l&&!r
1200
MC/DC0%0/2
$app->context_class || $app
$app->context_class $app
Truth table33%1/3
A || B
A= $app->context_classB= $app
ABresult
1X1
011
000
234 12 ▶ push @classes, eval { $app->composed_request_class } || ();
Condition33%1/3
eval { do { $app->composed_request_class } } || ()
l!l&&r!l&&!r
1200
MC/DC0%0/2
eval { do { $app->composed_request_class } } || ()
eval { do { $app->composed_request_class } } ()
Truth table33%1/3
A || B
A= eval { do { $app->composed_request_class } }B= ()
ABresult
1X1
011
000
235 12 ▶ push @classes, eval { $app->composed_response_class } || ();
Condition33%1/3
eval { do { $app->composed_response_class } } || ()
l!l&&r!l&&!r
1200
MC/DC0%0/2
eval { do { $app->composed_response_class } } || ()
eval { do { $app->composed_response_class } } ()
Truth table33%1/3
A || B
A= eval { do { $app->composed_response_class } }B= ()
ABresult
1X1
011
000
236  
237 12 my %seen;
238 12 ▶ return grep { !$seen{$_}++ } grep { defined && length } @classes;
Condition33%1/3
defined $_ && length $_
!ll&&!rl&&r
0036
MC/DC0%0/2
defined $_ && length $_
defined $_ length $_
Truth table33%1/3
A && B
A= defined $_B= length $_
ABresult
0X0
100
111
239 }
240  
241 19 my $PATCHED = 0;
242  
243 12 ▶Catalyst::Seal::register_step('construct' => sub {
Subroutine __ANON__: called CC=7 SCAR=19.9
244 12 my ($app) = @_;
245  
246 12 require Class::MOP;
247 12 require Moose::Object;
248  
249 12 my $build = 0;
250 12 ▶ unless ($PATCHED++) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($PATCHED++) 12 0 12
251 12 $build = Catalyst::Seal::Guard::replace(
252 'Catalyst::Controller::BUILD' => \&_controller_build);
253 }
254  
255 12 ▶ my $ctx = $app->context_class || $app;
Condition33%1/3
$app->context_class || $app
l!l&&r!l&&!r
1200
MC/DC0%0/2
$app->context_class || $app
$app->context_class $app
Truth table33%1/3
A || B
A= $app->context_classB= $app
ABresult
1X1
011
000
256 12 my $stats = 0;
257 12 ▶ if (my $reader = _make_stats_reader($ctx)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $reader = _make_stats_reader($ctx)) 12 0 12
258 12 my $ok = eval {
259 19 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
260 19 ▶ no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
261 12 *{"${ctx}::stats"} = $reader;
262 12 1;
263 };
264 12 ▶ if ($ok) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ok) { } 12 0 12
265 12 $LAZY_STATS{$ctx} = 1;
266 12 $stats = 1;
267 }
268 else {
269 0 Catalyst::Seal::note("could not install a lazy stats reader on $ctx: $@");
270 }
271 }
272  
273 12 my $ctors = 0;
274 12 $ctors += _seal_constructor($_) for _constructor_classes($app);
275  
276 12 ▶ Catalyst::Seal::note(
Branch: 1 branch
BranchTrueFalseTotal
if $Catalyst::Seal::DEBUG 0 12 12
277 "construct: controller-build=$build stats-lazy=$stats constructors=$ctors")
278 if $Catalyst::Seal::DEBUG;
279 12 return;
280 19 });
281  
282 19 1;
283  
284 __END__
« blib/lib/Catalyst/Seal/Dispatch.pm ↑ Summary blib/lib/Catalyst/Seal/Finalize.pm »