| line |
true |
false |
branch |
|
24
|
0 |
771 |
(caller) =~ /^(Moo::HandleMoose|Sub::Quote)/ ? : |
|
39
|
3 |
13 |
if ('Sub::Quote'->can('quote_sub') and $self->can_be_inlined) { } |
|
42
|
3 |
0 |
unless $self->{'_overload_coderef'} and $self->{'_sub_quoted'}++ |
|
54
|
843 |
13170 |
@_ == 1 ? : |
|
56
|
13136 |
877 |
unless exists $params{'name'} |
|
61
|
298 |
13715 |
if @$C |
|
64
|
14 |
13999 |
if $F |
|
66
|
877 |
13136 |
unless ($self->is_anon) |
|
69
|
0 |
877 |
unless $self->name =~ /^_{0,2}[A-Z][A-Za-z0-9_]+$/ms or eval " use 5.008; \$self->name =~ /^_{0,2}\\p{Lu}[\\p{L}0-9_]+\$/sm " |
|
120
|
13943 |
5 |
if $self->{'type_constraint'} |
|
125
|
2 |
2 |
if (my $check = $self->{'_compiled_type_constraint_check'}) |
|
135
|
0 |
2 |
if Types::TypeTiny::is_TypeTiny($x) |
|
136
|
0 |
2 |
if Types::TypeTiny::is_TypeTiny($y) |
|
138
|
0 |
2 |
unless builtin::blessed($x) and builtin::blessed($y) and $x->isa($class) and $y->isa($class) |
|
144
|
0 |
2 |
if $swap |
|
147
|
2 |
0 |
if ($x->has_type_constraint and $y->has_type_constraint and $x->type_constraint == $y->type_constraint) { } |
|
|
0 |
0 |
elsif ($x->has_type_constraint and $y->has_type_constraint) { } |
|
161
|
0 |
2 |
if $opts{'display_name'} eq "__ANON__+__ANON__" |
|
176
|
31 |
987 |
if ($self->has_library and not $self->is_anon) |
|
205
|
8 |
0 |
if ($self->has_type_constraint) { } |
|
207
|
4 |
4 |
$tc->check($r) ? : |
|
217
|
64 |
0 |
if $self->has_type_constraint |
|
226
|
2 |
15 |
if $self->has_type_constraint and $type->is_a_type_of($self->type_constraint) |
|
232
|
11 |
8 |
if $type->is_a_type_of($c->[$i]) |
|
241
|
1 |
3 |
if $self->has_type_constraint and $self->type_constraint->check(@_) |
|
247
|
2 |
3 |
if $c->[$i]->check(@_) |
|
256
|
3 |
1310 |
if $self->frozen |
|
262
|
1 |
1922 |
if (builtin::blessed($type) and my $method = $type->can('type_coercion_map')) { } |
|
267
|
0 |
1922 |
unless Types::TypeTiny::is_TypeTiny($type) |
|
269
|
0 |
1922 |
unless Types::TypeTiny::is_StringLike($coercion) or Types::TypeTiny::is_CodeLike($coercion) |
|
285
|
1 |
738 |
unless @mishmash |
|
287
|
604 |
134 |
if ($self->can_be_inlined) |
|
300
|
134 |
0 |
if ($self->has_type_constraint) |
|
308
|
246 |
44 |
$types[$i]->can_be_inlined ? : |
|
312
|
27 |
129 |
Types::TypeTiny::is_StringLike($codes[$i]) ? : |
|
|
134 |
156 |
!defined($codes[$i]) ? : |
|
337
|
47 |
1744 |
unless $self->frozen |
|
340
|
80 |
1664 |
if $self->has_type_constraint and not $self->type_constraint->can_be_inlined |
|
346
|
2 |
1690 |
unless $type->can_be_inlined |
|
347
|
151 |
1539 |
unless Types::TypeTiny::is_StringLike($converter) |
|
356
|
58 |
0 |
if $self->has_type_constraint |
|
372
|
0 |
748 |
unless $self->can_be_inlined |
|
375
|
0 |
748 |
unless @mishmash |
|
382
|
748 |
0 |
if ($self->has_type_constraint) |
|
391
|
744 |
748 |
defined $codes[$i] ? : |
|
|
18 |
1492 |
defined $codes[$i] && $varname eq '$_' ? : |
|
412
|
0 |
0 |
if $self->has_type_constraint |
|
431
|
0 |
0 |
$modifier ? : |
|
433
|
0 |
0 |
if (Types::TypeTiny::is_CodeLike($converter)) { } |
|
457
|
0 |
7 |
unless @_ |
|
458
|
0 |
7 |
unless $self->is_parameterizable |
|
477
|
0 |
7 |
unless $self->is_parameterized |
|
494
|
0 |
0 |
if ($INC{'Moose/Meta/TypeCoercion.pm'} and builtin::blessed($self) and $_[0] eq "Moose::Meta::TypeCoercion") |
|
501
|
0 |
0 |
if ($INC{'Moose/Meta/TypeCoercion.pm'} and builtin::blessed($self) and $_[0] =~ /^(Class::MOP|MooseX?)::/) |
|
506
|
0 |
0 |
if $r |
|
516
|
19 |
1 |
if $can |
|
518
|
0 |
0 |
if ($INC{'Moose/Meta/TypeCoercion.pm'} and builtin::blessed($self) and my $method = $self->moose_coercion->can(@_)) |
|
531
|
782 |
0 |
if $m eq "DESTROY" |
|
533
|
0 |
0 |
if ($INC{'Moose/Meta/TypeCoercion.pm'} and builtin::blessed($self) and my $method = $self->moose_coercion->can($m)) |
|
547
|
2 |
0 |
if (@_) |
|
549
|
1 |
1 |
if (builtin::blessed($thing) and $thing->isa('Type::Coercion')) { } |
|
|
1 |
0 |
elsif (Types::TypeTiny::is_CodeLike($thing)) { } |