| line |
true |
false |
branch |
|
34
|
459 |
789 |
if $_[0]{'base'} or $_[0]{'extends'} |
|
52
|
13 |
22678 |
if ($name =~ /^\+(.+)/ and $class->has_type("$1")) |
|
57
|
58 |
0 |
unless $value |
|
66
|
21416 |
1262 |
if (my $f = $class->meta->{'functions'}{$name} and defined $class->meta->{'functions'}{$name}{'type'}) |
|
78
|
42829 |
3 |
unless exists $value->{$param} |
|
79
|
0 |
3 |
unless defined $value->{'-as'} |
|
89
|
10790 |
10626 |
if ($tag eq "types") |
|
91
|
0 |
10790 |
if $globals->{'mouse'} |
|
92
|
0 |
10790 |
if $globals->{'moose'} |
|
93
|
2 |
10788 |
if $post_method or $custom_type |
|
104
|
1 |
21413 |
if ($custom_type and $tag ne "types") |
|
131
|
0 |
1 |
ref $into ? : |
|
|
1 |
21412 |
if defined $type and $type->deprecated and not $globals->{'allow_deprecated'} |
|
136
|
10088 |
11639 |
if (not ref $into and $into ne "-lexical" and defined $type and grep(($_ eq "types"), @$tags)) |
|
149
|
368 |
9720 |
$INC{'Type/Registry.pm'} ? : |
|
160
|
1108 |
2 |
if ($globals->{'declare'}) |
|
181
|
0 |
429 |
$extends ? : |
|
|
30 |
429 |
ref $extends ? : |
|
182
|
1 |
458 |
if $class ne __PACKAGE__ |
|
184
|
459 |
0 |
unless (ref $type_library) |
|
191
|
4 |
455 |
if ($install_utils) |
|
199
|
31 |
428 |
if (@extends and not ref $type_library) |
|
209
|
47692 |
94686 |
if builtin::blessed($_[0]) |
|
217
|
4 |
14342 |
if $meta->{'immutable'} |
|
222
|
10397 |
1101 |
ref $_[0] eq 'HASH' ? : |
|
|
0 |
11498 |
builtin::blessed($_[0]) ? : |
|
|
2844 |
11498 |
ref($_[0]) =~ /^Type::Tiny\b/ ? : |
|
226
|
1 |
14341 |
if ($meta->has_type($name)) |
|
228
|
0 |
1 |
if $type->{'uniq'} == $existing->{'uniq'} |
|
232
|
0 |
14341 |
if $meta->has_coercion($name) |
|
233
|
1 |
14340 |
if $type->is_anon |
|
245
|
1 |
57368 |
if $meta->{'functions'}{$name} |
|
254
|
148 |
14191 |
$INC{'Type/Registry.pm'} ? : |
|
266
|
0 |
1 |
if $meta->{'immutable'} |
|
293
|
0 |
1 |
if $INC{'Type/Registry.pm'} |
|
318
|
0 |
1019 |
if $meta->{'immutable'} |
|
321
|
175 |
844 |
builtin::blessed($_[0]) ? : |
|
324
|
0 |
1019 |
if $meta->has_coercion($name) |
|
325
|
1 |
1018 |
if $meta->has_type($name) |
|
326
|
0 |
1018 |
if $c->is_anon |
|
366
|
12620 |
784 |
unless $type->has_coercion and $type->coercion->frozen |