line |
true |
false |
branch |
27
|
1 |
10 |
if ($INC{'Moo/Role.pm'} and 'Moo::Role'->is_role($target)) { }
|
|
10 |
0 |
elsif ($Moo::MAKERS{$target} and $Moo::MAKERS{$target}{'is_class'}) { }
|
39
|
0 |
11 |
unless ref $orig
|
42
|
0 |
12 |
if (@_ % 2 == 0)
|
47
|
12 |
0 |
unless ref $attrs
|
50
|
11 |
1 |
if (delete $spec{'moox_enumeration_process_handles'})
|
66
|
0 |
12 |
if (exists $spec{'isa'} and exists $spec{'enum'}) { }
|
|
1 |
11 |
elsif (&blessed($spec{'isa'}) and $spec{'isa'}->isa('Type::Tiny::Enum')) { }
|
|
10 |
1 |
elsif (exists $spec{'enum'}) { }
|
73
|
0 |
10 |
unless ref $spec{'enum'} eq 'ARRAY'
|
84
|
11 |
0 |
if (my $handles = $spec{'handles'})
|
88
|
5 |
6 |
if (not ref $handles and $handles eq 1)
|
92
|
1 |
10 |
if (ref $handles eq 'ARRAY')
|
93
|
0 |
3 |
ref $_ ? :
|
96
|
11 |
0 |
if (ref $handles eq 'HASH')
|
98
|
30 |
5 |
if ref $handles->{$k}
|
107
|
0 |
11 |
if (ref $spec{'moosify'} eq 'CODE')
|
115
|
1 |
0 |
if $spec->{'_orig_handles'}
|
144
|
2 |
22 |
if ($INC{'Moo/Role.pm'} and 'Moo::Role'->is_role($target)) { }
|
|
22 |
0 |
elsif ($Moo::MAKERS{$target} and $Moo::MAKERS{$target}{'is_class'}) { }
|
165
|
17 |
7 |
$MAKER->is_simple_get($attr, $spec) ? :
|
169
|
1 |
23 |
if (ref $match) { }
|
|
22 |
1 |
elsif ($spec->{'isa'}->check($match)) { }
|
204
|
0 |
9 |
unless $spec->{'isa'}->check($newvalue) or not $spec->{'isa'}
|
209
|
6 |
3 |
$MAKER->is_simple_get($attr, $spec) ? :
|
222
|
0 |
1 |
unless delete $MAKER->{'captures'}
|
225
|
8 |
1 |
$MAKER->is_simple_set($attr, do {
my(%temp) = %$spec;
delete $temp{'coerce'};
delete $temp{'isa'};
\%temp
}) ? :
|
230
|
3 |
6 |
if (ref $match) { }
|
|
3 |
3 |
elsif (defined $match) { }
|
250
|
0 |
3 |
unless $spec->{'isa'}->check($match)
|