line |
true |
false |
branch |
22
|
0 |
101 |
$ENV{'MOJO_NO_ASYNC'} ? : |
29
|
0 |
10710 |
unless my $class = ref $self || $self and $attrs |
31
|
1 |
10709 |
if ref $value and ref $value ne "CODE" |
32
|
1 |
10708 |
if grep {$_ ne "weak";} keys %kv |
35
|
535 |
10173 |
if ($kv{'weak'}) |
37
|
533 |
2 |
unless ($weak_names{$class}) |
48
|
52 |
483 |
ref $attrs eq 'ARRAY' ? : |
51
|
1660 |
9048 |
ref $attrs eq 'ARRAY' ? : |
52
|
1 |
13988 |
unless $attr =~ /^[a-zA-Z_]\w*$/u |
56
|
586 |
13402 |
if ($kv{'weak'}) { } |
|
6301 |
7101 |
elsif (ref $value) { } |
|
3081 |
4020 |
elsif (defined $value) { } |
57
|
431 |
155 |
if (ref $value) { } |
62
|
27210 |
197 |
exists $_[0]{$attr} ? : |
|
27407 |
1161 |
if @_ == 1 |
64
|
1160 |
1 |
if ref($_[0]{$attr} = $_[1]) |
70
|
29986 |
1015 |
if @_ == 1 |
71
|
1012 |
3 |
if ref($_[0]{$attr} = $_[1]) |
78
|
330922 |
40381 |
exists $_[0]{$attr} ? : |
|
371303 |
29875 |
if @_ == 1 |
85
|
34887 |
26457 |
exists $_[0]{$attr} ? : |
|
61344 |
7217 |
if @_ == 1 |
91
|
149446 |
37073 |
if @_ == 1 |
99
|
5076 |
5338 |
unless my(@flags) = @_ |
108
|
1989 |
5345 |
if ($flag eq '-base') { } |
|
2 |
5343 |
elsif ($flag eq '-role') { } |
|
0 |
5343 |
elsif ($flag eq '-async_await') { } |
|
6 |
5337 |
elsif ($flag eq '-signatures') { } |
|
4105 |
1232 |
elsif (not $flag =~ /^-/u) { } |
|
1 |
1231 |
elsif ($flag ne '-strict') { } |
114
|
0 |
2 |
unless eval "package $caller; use Role::Tiny; 1" |
126
|
0 |
6 |
if $] < "5.02" |
134
|
656 |
3449 |
unless $flag->can("new") |
145
|
9218 |
383 |
@_ > 1 ? : |
|
9601 |
43918 |
@_ ? : |
157
|
2 |
11 |
unless @roles |
159
|
5 |
9 |
/^\+(.+)$/u ? : |
|
10 |
1 |
unless my $class = &Scalar::Util::blessed($self) |
162
|
1 |
1 |
/^\+(.+)$/u ? : |