Branch Coverage

blib/lib/Acme/Mitey/Cards/Mite.pm
Criterion Covered Total %
branch 18 64 28.1


line true false branch
38 3 1 if (@args)
43 6 0 defined $_ ? :
0 6 ref $_ ? :
58 0 0 unless $_[0][0]
68 0 0 if (ref $ref eq "ARRAY")
73 0 0 if (ref $ref eq "HASH")
94 0 39 if defined $Mite::COMPILING
102 0 39 if (_is_compiling()) { }
114 0 39 unless (-e $mite_file)
134 0 0 if ($INC{'Role/Hooks.pm'})
138 0 0 if ($cb_before)
139 0 0 unless $cb_before->{$role}
143 0 0 unless $info->{'modifiers'}
149 0 0 if ($cb_after)
150 0 0 unless $cb_after->{$role}
160 0 0 ref $_[0] ? :
161 0 0 if ($INC{'Role/Tiny.pm'} and 'Role::Tiny'->is_role($role)) { }
175 0 67 if (@_ % 2)
177 0 0 'CODE' eq ref $default ? :
183 0 67 ref $names ? :
186 0 67 if "CODE" eq ref($code = $spec{'default'})
188 15 52 if "CODE" eq ref($code = $spec{'builder'})
190 0 67 if "CODE" eq ref($code = $spec{'trigger'})
192 0 67 if "CODE" eq ref($code = $spec{'clone'})
203 80 0 if $orig
209 0 80 ref $_ ? :
218 0 0 if ($kind eq "role")
226 0 0 unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \@_ );\n \$orig->( \@_ );\n }\n 1;\n"
244 0 0 if ($kind eq "role")
252 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"
281 0 80 if ($kind eq "role")
289 0 80 unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \$orig, \@_ );\n }\n 1;\n"