line |
true |
false |
branch |
22
|
0 |
102 |
$ENV{'MOJO_NO_ASYNC'} ? : |
29
|
0 |
10958 |
unless my $class = ref $self || $self and $attrs |
31
|
1 |
10957 |
if ref $value and ref $value ne "CODE" |
32
|
1 |
10956 |
if grep {$_ ne "weak";} keys %kv |
35
|
544 |
10412 |
if ($kv{'weak'}) |
37
|
542 |
2 |
unless ($weak_names{$class}) |
48
|
53 |
491 |
ref $attrs eq 'ARRAY' ? : |
51
|
1691 |
9265 |
ref $attrs eq 'ARRAY' ? : |
52
|
1 |
14296 |
unless $attr =~ /^[a-zA-Z_]\w*$/u |
56
|
596 |
13700 |
if ($kv{'weak'}) { } |
|
6418 |
7282 |
elsif (ref $value) { } |
|
3138 |
4144 |
elsif (defined $value) { } |
57
|
438 |
158 |
if (ref $value) { } |
62
|
27428 |
201 |
exists $_[0]{$attr} ? : |
|
27629 |
1173 |
if @_ == 1 |
64
|
1172 |
1 |
if ref($_[0]{$attr} = $_[1]) |
70
|
30839 |
1018 |
if @_ == 1 |
71
|
1015 |
3 |
if ref($_[0]{$attr} = $_[1]) |
78
|
335933 |
40821 |
exists $_[0]{$attr} ? : |
|
376754 |
30095 |
if @_ == 1 |
85
|
35499 |
26927 |
exists $_[0]{$attr} ? : |
|
62426 |
7298 |
if @_ == 1 |
91
|
152041 |
37497 |
if @_ == 1 |
99
|
5167 |
5425 |
unless my(@flags) = @_ |
108
|
2024 |
5432 |
if ($flag eq '-base') { } |
|
2 |
5430 |
elsif ($flag eq '-role') { } |
|
0 |
5430 |
elsif ($flag eq '-async_await') { } |
|
6 |
5424 |
elsif ($flag eq '-signatures') { } |
|
4176 |
1248 |
elsif (not $flag =~ /^-/u) { } |
|
1 |
1247 |
elsif ($flag ne '-strict') { } |
114
|
0 |
2 |
unless eval "package $caller; use Role::Tiny; 1" |
126
|
0 |
6 |
if $] < "5.02" |
134
|
667 |
3509 |
unless $flag->can("new") |
145
|
9287 |
389 |
@_ > 1 ? : |
|
9676 |
44728 |
@_ ? : |
157
|
2 |
11 |
unless @roles |
159
|
5 |
9 |
/^\+(.+)$/u ? : |
|
10 |
1 |
unless my $class = &Scalar::Util::blessed($self) |
162
|
1 |
1 |
/^\+(.+)$/u ? : |