line |
true |
false |
branch |
17
|
0 |
9 |
$ENV{'PERL_ROLE_HOOKS_DEBUG'} ? :
|
25
|
0 |
0 |
@args ? :
|
31
|
0 |
0 |
@args ? :
|
43
|
46 |
19 |
if ($INC{'Role/Tiny.pm'} and "Role::Tiny"->can("is_role") and "Role::Tiny"->is_role($target))
|
50
|
0 |
0 |
if ($INC{'Role/Tiny.pm'} and not "Role::Tiny"->can("is_role") and $Role::Tiny::INFO{$target})
|
56
|
26 |
4 |
if ($INC{'Moose/Meta/Role.pm'} and do {
|
62
|
0 |
0 |
if ($INC{'Mouse/Meta/Role.pm'} and do {
|
68
|
0 |
23 |
if ($INC{'Role/Basic.pm'} and eval {
|
76
|
13 |
10 |
if (defined $UM and $UM eq "Mite::Role")
|
85
|
1 |
19 |
unless @callbacks
|
86
|
0 |
19 |
unless $me->is_role($target)
|
94
|
1 |
18 |
unless @callbacks
|
95
|
0 |
18 |
unless $me->is_role($target)
|
104
|
3 |
3 |
unless @callbacks
|
105
|
0 |
3 |
unless $me->is_role($target) eq "Role::Tiny" or $target->isa("Moo::Object")
|
122
|
27 |
13 |
if ($INC{'Role/Tiny.pm'})
|
125
|
21 |
19 |
if ($INC{'Moo/Role.pm'} or $INC{'Moo.pm'})
|
128
|
19 |
21 |
if ($INC{'Moose/Role.pm'} or $INC{'Moose.pm'})
|
131
|
0 |
40 |
if ($INC{'Mouse/Role.pm'} or $INC{'Mouse.pm'})
|
134
|
0 |
40 |
if ($INC{'Role/Basic.pm'})
|
139
|
6 |
34 |
if (defined $is_role and $is_role eq "Mite::Role")
|
147
|
3 |
0 |
if ($INC{'Moo/Role.pm'} or $INC{'Moo.pm'})
|
154
|
0 |
6 |
if $patched{'Role::Tiny'}
|
173
|
2 |
6 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
183
|
2 |
6 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
187
|
4 |
4 |
if (my $is_role = $me->is_role($to))
|
189
|
1 |
3 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
190
|
1 |
3 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
191
|
4 |
0 |
if ($is_role eq "Role::Tiny" or $to->isa("Moo::Object"))
|
192
|
3 |
1 |
unless $CALLBACKS_AFTER_INFLATE{$role}
|
204
|
0 |
4 |
if $patched{'Moo::Role'}
|
229
|
0 |
1 |
if $patched_inflation{'Moo::Role'}
|
244
|
0 |
4 |
unless $CALLBACKS_AFTER_INFLATE{$name}
|
246
|
1 |
3 |
if $already{"$name|$cb"}++
|
256
|
0 |
4 |
if $patched{'Moose::Role'}
|
269
|
0 |
4 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
277
|
0 |
4 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
282
|
2 |
2 |
if ($me->is_role($to))
|
284
|
0 |
2 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
285
|
0 |
2 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
295
|
0 |
0 |
if $patched{'Mouse::Role'}
|
308
|
0 |
0 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
316
|
0 |
0 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
321
|
0 |
0 |
if ($me->is_role($to))
|
323
|
0 |
0 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
324
|
0 |
0 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
334
|
0 |
0 |
if $patched{'Role::Basic'}
|
340
|
0 |
0 |
unless $Role::Basic::VERSION =~ /^0\.(?:0[7-9]|1[0-3])/
|
348
|
0 |
0 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
356
|
0 |
0 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
361
|
0 |
0 |
if ($me->is_role($to))
|
363
|
0 |
0 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
364
|
0 |
0 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
374
|
0 |
2 |
if $ENV{'MITE_COMPILE'}
|
379
|
2 |
1 |
unless ($indirect)
|
381
|
0 |
2 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
387
|
2 |
1 |
unless ($indirect)
|
389
|
0 |
2 |
unless $CALLBACKS_AFTER_APPLY{$role}
|
395
|
1 |
2 |
if (defined $to_type and $to_type eq "Mite::Role")
|
397
|
0 |
1 |
unless $CALLBACKS_BEFORE_APPLY{$role}
|
398
|
0 |
1 |
unless $CALLBACKS_AFTER_APPLY{$role}
|