| line |
true |
false |
branch |
|
34
|
369 |
614 |
if $_[0]{'base'} or $_[0]{'extends'} |
|
52
|
9 |
18166 |
if ($name =~ /^\+(.+)/ and $class->has_type("$1")) |
|
57
|
42 |
0 |
unless $value |
|
66
|
17308 |
858 |
if (my $f = $class->meta->{'functions'}{$name} and defined $class->meta->{'functions'}{$name}{'type'}) |
|
78
|
34613 |
3 |
unless exists $value->{$param} |
|
79
|
0 |
3 |
unless defined $value->{'-as'} |
|
89
|
8654 |
8654 |
if ($tag eq "types") |
|
91
|
0 |
8654 |
if $globals->{'mouse'} |
|
92
|
0 |
8654 |
if $globals->{'moose'} |
|
93
|
2 |
8652 |
if $post_method or $custom_type |
|
104
|
1 |
17305 |
if ($custom_type and $tag ne "types") |
|
131
|
0 |
1 |
ref $into ? : |
|
|
1 |
17304 |
if defined $type and $type->deprecated and not $globals->{'allow_deprecated'} |
|
136
|
8089 |
9266 |
if (not ref $into and $into ne "-lexical" and defined $type and grep(($_ eq "types"), @$tags)) |
|
149
|
221 |
7868 |
$INC{'Type/Registry.pm'} ? : |
|
160
|
718 |
2 |
if ($globals->{'declare'}) |
|
181
|
0 |
355 |
$extends ? : |
|
|
14 |
355 |
ref $extends ? : |
|
182
|
1 |
368 |
if $class ne "Type::Library" |
|
184
|
369 |
0 |
unless (ref $type_library) |
|
191
|
4 |
365 |
if ($install_utils) |
|
199
|
15 |
354 |
if (@extends and not ref $type_library) |
|
209
|
38064 |
75510 |
if &blessed($_[0]) |
|
217
|
4 |
11388 |
if $meta->{'immutable'} |
|
222
|
8917 |
711 |
ref $_[0] eq 'HASH' ? : |
|
|
0 |
9628 |
&blessed($_[0]) ? : |
|
|
1760 |
9628 |
ref($_[0]) =~ /^Type::Tiny\b/ ? : |
|
226
|
1 |
11387 |
if ($meta->has_type($name)) |
|
228
|
0 |
1 |
if $type->{'uniq'} == $existing->{'uniq'} |
|
232
|
0 |
11387 |
if $meta->has_coercion($name) |
|
233
|
1 |
11386 |
if $type->is_anon |
|
245
|
1 |
45552 |
if $meta->{'functions'}{$name} |
|
254
|
148 |
11237 |
$INC{'Type/Registry.pm'} ? : |
|
266
|
0 |
1 |
if $meta->{'immutable'} |
|
293
|
0 |
1 |
if $INC{'Type/Registry.pm'} |
|
318
|
0 |
851 |
if $meta->{'immutable'} |
|
321
|
127 |
724 |
&blessed($_[0]) ? : |
|
324
|
0 |
851 |
if $meta->has_coercion($name) |
|
325
|
1 |
850 |
if $meta->has_type($name) |
|
326
|
0 |
850 |
if $c->is_anon |
|
366
|
9930 |
520 |
unless $type->has_coercion and $type->coercion->frozen |