line |
true |
false |
branch |
38
|
50 |
869 |
if (@args)
|
43
|
113 |
0 |
defined $_ ? :
|
|
0 |
113 |
ref $_ ? :
|
58
|
259 |
2 |
unless $_[0][0]
|
66
|
183 |
1749 |
if defined $Mite::COMPILING
|
74
|
110 |
184 |
if (_is_compiling()) { }
|
86
|
0 |
184 |
unless (-e $mite_file)
|
99
|
281 |
13 |
if not $arg{'-unclean'}
|
106
|
1 |
1 |
if ($INC{'Role/Hooks.pm'})
|
110
|
1 |
1 |
if ($cb_before)
|
111
|
1 |
0 |
unless $cb_before->{$role}
|
115
|
1 |
1 |
unless $info->{'modifiers'}
|
121
|
1 |
1 |
if ($cb_after)
|
122
|
0 |
1 |
unless $cb_after->{$role}
|
132
|
1 |
846 |
ref $_[0] ? :
|
133
|
2 |
845 |
if ($INC{'Role/Tiny.pm'} and 'Role::Tiny'->is_role($role)) { }
|
147
|
4 |
5679 |
if (@_ % 2)
|
149
|
1 |
3 |
'CODE' eq ref $default ? :
|
155
|
314 |
5369 |
ref $names ? :
|
158
|
1441 |
5025 |
if "CODE" eq ref($code = $spec{'default'})
|
160
|
1118 |
5348 |
if "CODE" eq ref($code = $spec{'builder'})
|
162
|
108 |
6358 |
if "CODE" eq ref($code = $spec{'trigger'})
|
164
|
3 |
6463 |
if "CODE" eq ref($code = $spec{'clone'})
|
175
|
2642 |
0 |
if $orig
|
181
|
1913 |
2491 |
ref $_ ? :
|
190
|
447 |
493 |
if ($kind eq "role")
|
198
|
0 |
493 |
unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \@_ );\n \$orig->( \@_ );\n }\n 1;\n"
|
216
|
0 |
1 |
if ($kind eq "role")
|
224
|
0 |
1 |
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"
|
|
0 |
1 |
if (wantarray) { }
|
253
|
1313 |
2147 |
if ($kind eq "role")
|
261
|
1 |
2148 |
unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \$orig, \@_ );\n }\n 1;\n"
|