line |
true |
false |
branch |
27
|
3 |
105 |
if ($INC{'Moo/Role.pm'} and 'Moo::Role'->is_role($target)) { }
|
38
|
0 |
108 |
unless ref $orig
|
41
|
0 |
128 |
if (@_ % 2 == 0)
|
46
|
4 |
124 |
unless $spec{'handles'}
|
47
|
0 |
124 |
ref $attrs ? :
|
51
|
124 |
0 |
if $shv
|
60
|
124 |
0 |
if (ref $attrname)
|
61
|
0 |
124 |
unless @$attrname == 1
|
67
|
3 |
121 |
unless ($ctor_maker)
|
74
|
121 |
0 |
$spec->{'isa'} ? :
|
75
|
10 |
111 |
exists $spec->{'coerce'} ? :
|
76
|
0 |
121 |
if ((ref $coerce || '') eq "CODE")
|
91
|
1703 |
93 |
$gen ? :
|
93
|
1796 |
0 |
unless delete $maker->{'captures'}
|
98
|
349 |
28 |
$gen ? :
|
105
|
160 |
217 |
unless delete $maker->{'captures'}
|
107
|
93 |
28 |
$maker->is_simple_get($attrname, $spec) ? :
|
111
|
0 |
0 |
$gen ? :
|
113
|
0 |
0 |
unless delete $maker->{'captures'}
|
118
|
516 |
121 |
$gen ? :
|
120
|
353 |
284 |
unless delete $maker->{'captures'}
|
123
|
0 |
121 |
$maker->is_simple_set($attrname, $spec) ? :
|
130
|
90 |
31 |
if (exists $spec->{'default'}) { }
|
|
12 |
19 |
elsif (exists $spec->{'builder'}) { }
|
137
|
47 |
74 |
if (is_CodeRef($default->[1]))
|
157
|
0 |
19 |
unless my($gen, $handler) = @_
|
158
|
0 |
19 |
if (not $default and $handler) { }
|
|
4 |
15 |
elsif ($default->[0] eq 'builder') { }
|
|
5 |
10 |
elsif ($default->[0] eq 'default' and is_CodeRef($default->[1])) { }
|
|
0 |
10 |
elsif ($default->[0] eq 'default' and is_Undef($default->[1])) { }
|
|
10 |
0 |
elsif ($default->[0] eq 'default' and is_Str($default->[1])) { }
|
189
|
0 |
3 |
if (ref $attrname)
|
190
|
0 |
0 |
unless @$attrname == 1
|
201
|
3 |
0 |
if ($spec->{'is'} eq 'ro') { }
|
|
0 |
0 |
elsif ($spec->{'is'} eq 'rw') { }
|
|
0 |
0 |
elsif ($spec->{'is'} eq 'rwp') { }
|
212
|
3 |
0 |
if (exists $spec->{'reader'})
|
215
|
0 |
3 |
if (exists $spec->{'writer'})
|
218
|
0 |
3 |
if (exists $spec->{'accessor'})
|
219
|
0 |
0 |
unless defined $reader_name
|
220
|
0 |
0 |
unless defined $writer_name
|
223
|
3 |
0 |
$spec->{'isa'} ? :
|
225
|
0 |
3 |
if ((ref $coerce || '') eq "CODE")
|
233
|
3 |
0 |
if (defined $reader_name) { }
|
236
|
0 |
3 |
$reader_name =~ /^[\W0-9]\w*$/s ? :
|
240
|
0 |
0 |
if ($spec->is_Coderef->{'default'}) { }
|
|
0 |
0 |
elsif (exists $spec->{'default'}) { }
|
|
0 |
0 |
elsif (is_CodeRef($spec->{'builder'}) or ($spec->{'builder'} || 0) eq 1) { }
|
|
0 |
0 |
elsif ($spec->{'builder'}) { }
|
258
|
0 |
0 |
unless (exists $instance->{$attrname})
|
259
|
0 |
0 |
$default_literal ? :
|
268
|
0 |
3 |
if (defined $writer_name) { }
|
271
|
0 |
0 |
$writer_name =~ /^[\W0-9]\w*$/s ? :
|
275
|
0 |
3 |
if (($spec->{'trigger'} || 0) eq 1)
|
281
|
0 |
0 |
if ($type)
|
282
|
0 |
0 |
$type->has_coercion && $coerce ? :
|
286
|
0 |
0 |
if ($trigger)
|
287
|
0 |
0 |
exists $instance->{$attrname} ? :
|
290
|
0 |
0 |
if ($weaken and ref $new_value)
|
300
|
1 |
2 |
if (exists $spec->{'default'}) { }
|
|
2 |
0 |
elsif (exists $spec->{'builder'}) { }
|
307
|
1 |
2 |
if (is_CodeRef($default->[1]))
|
327
|
0 |
0 |
unless my($gen, $handler) = @_
|
328
|
0 |
0 |
if (not $default and $handler) { }
|
|
0 |
0 |
elsif ($default->[0] eq 'builder') { }
|
|
0 |
0 |
elsif ($default->[0] eq 'default' and is_CodeRef($default->[1])) { }
|
|
0 |
0 |
elsif ($default->[0] eq 'default' and is_Undef($default->[1])) { }
|
|
0 |
0 |
elsif ($default->[0] eq 'default' and is_Str($default->[1])) { }
|