line |
true |
false |
branch |
34
|
439 |
716 |
if $_[0]{'base'} or $_[0]{'extends'}
|
52
|
13 |
20579 |
if ($name =~ /^\+(.+)/ and $class->has_type("$1"))
|
57
|
58 |
0 |
unless $value
|
66
|
19587 |
992 |
if (my $f = $class->meta->{'functions'}{$name} and defined $class->meta->{'functions'}{$name}{'type'})
|
78
|
39171 |
3 |
unless exists $value->{$param}
|
79
|
0 |
3 |
unless defined $value->{'-as'}
|
89
|
9694 |
9893 |
if ($tag eq "types")
|
91
|
0 |
9694 |
if $globals->{'mouse'}
|
92
|
0 |
9694 |
if $globals->{'moose'}
|
93
|
2 |
9692 |
if $post_method or $custom_type
|
104
|
1 |
19584 |
if ($custom_type and $tag ne "types")
|
131
|
0 |
1 |
ref $into ? :
|
|
1 |
19583 |
if defined $type and $type->deprecated and not $globals->{'allow_deprecated'}
|
136
|
8978 |
10636 |
if (not ref $into and $into ne "-lexical" and defined $type and grep(($_ eq "types"), @$tags))
|
149
|
222 |
8756 |
$INC{'Type/Registry.pm'} ? :
|
160
|
811 |
2 |
if ($globals->{'declare'})
|
181
|
0 |
422 |
$extends ? :
|
|
17 |
422 |
ref $extends ? :
|
182
|
1 |
438 |
if $class ne "Type::Library"
|
184
|
439 |
0 |
unless (ref $type_library)
|
191
|
4 |
435 |
if ($install_utils)
|
199
|
18 |
421 |
if (@extends and not ref $type_library)
|
209
|
45333 |
86255 |
if &blessed($_[0])
|
217
|
4 |
13569 |
if $meta->{'immutable'}
|
222
|
10435 |
802 |
ref $_[0] eq 'HASH' ? :
|
|
0 |
11237 |
&blessed($_[0]) ? :
|
|
2332 |
11237 |
ref($_[0]) =~ /^Type::Tiny\b/ ? :
|
226
|
1 |
13568 |
if ($meta->has_type($name))
|
228
|
0 |
1 |
if $type->{'uniq'} == $existing->{'uniq'}
|
232
|
0 |
13568 |
if $meta->has_coercion($name)
|
233
|
1 |
13567 |
if $type->is_anon
|
245
|
1 |
54276 |
if $meta->{'functions'}{$name}
|
254
|
333 |
13233 |
$INC{'Type/Registry.pm'} ? :
|
266
|
0 |
1 |
if $meta->{'immutable'}
|
293
|
0 |
1 |
if $INC{'Type/Registry.pm'}
|
318
|
0 |
1013 |
if $meta->{'immutable'}
|
321
|
166 |
847 |
&blessed($_[0]) ? :
|
324
|
0 |
1013 |
if $meta->has_coercion($name)
|
325
|
1 |
1012 |
if $meta->has_type($name)
|
326
|
0 |
1012 |
if $c->is_anon
|
366
|
11668 |
603 |
unless $type->has_coercion and $type->coercion->frozen
|