| line |
true |
false |
branch |
|
38
|
3 |
1 |
if (@args) |
|
43
|
6 |
0 |
defined $_ ? : |
|
|
0 |
6 |
ref $_ ? : |
|
58
|
0 |
0 |
unless $_[0][0] |
|
74
|
0 |
31 |
if (_is_compiling()) { } |
|
86
|
0 |
31 |
unless (-e $mite_file) |
|
106
|
0 |
0 |
if ($INC{'Role/Hooks.pm'}) |
|
110
|
0 |
0 |
if ($cb_before) |
|
111
|
0 |
0 |
unless $cb_before->{$role} |
|
115
|
0 |
0 |
unless $info->{'modifiers'} |
|
121
|
0 |
0 |
if ($cb_after) |
|
122
|
0 |
0 |
unless $cb_after->{$role} |
|
132
|
0 |
0 |
ref $_[0] ? : |
|
133
|
0 |
0 |
if ($INC{'Role/Tiny.pm'} and 'Role::Tiny'->is_role($role)) { } |
|
147
|
0 |
54 |
if (@_ % 2) |
|
149
|
0 |
0 |
'CODE' eq ref $default ? : |
|
155
|
0 |
54 |
ref $names ? : |
|
158
|
0 |
54 |
if "CODE" eq ref($code = $spec{'default'}) |
|
160
|
13 |
41 |
if "CODE" eq ref($code = $spec{'builder'}) |
|
162
|
0 |
54 |
if "CODE" eq ref($code = $spec{'trigger'}) |
|
164
|
0 |
54 |
if "CODE" eq ref($code = $spec{'clone'}) |
|
175
|
64 |
0 |
if $orig |
|
181
|
0 |
64 |
ref $_ ? : |
|
190
|
0 |
0 |
if ($kind eq "role") |
|
198
|
0 |
0 |
unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \@_ );\n \$orig->( \@_ );\n }\n 1;\n" |
|
216
|
0 |
0 |
if ($kind eq "role") |
|
224
|
0 |
0 |
unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n my \@r;\n if ( wantarray ) {\n \@r = \$orig->( \@_ );\n }\n elsif ( defined wantarray ) {\n \@r = scalar \$orig->( \@_ );\n }\n else {\n \$orig->( \@_ );\n 1;\n }\n \$coderef->( \@_ );\n wantarray ? \@r : \$r[0];\n }\n 1;\n" |
|
253
|
0 |
64 |
if ($kind eq "role") |
|
261
|
0 |
64 |
unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \$orig, \@_ );\n }\n 1;\n" |