Branch Coverage

blib/lib/Acme/Mitey/Cards/Mite.pm
Criterion Covered Total %
branch 29 78 37.1


line true false branch
21 3 1 if (@args)
26 6 0 defined $_ ? :
0 6 ref $_ ? :
39 0 9 eval { do { require namespace::autoclean } } ? :
61 0 0 unless $_[0][0]
87 0 31 $arg{'-role'} ? :
89 0 31 if (_is_compiling()) { }
102 0 31 unless (-e $mite_file)
121 279 0 $arg->{'-all'} ? :
0 279 $$arg{'!' . $_[0]} ? :
0 279 $$arg{$_[0]} ? :
125 31 0 if &$requested("has", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
126 31 0 if &$requested("param", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
127 31 0 if &$requested("field", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
129 31 0 if &$requested("with", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
136 31 0 if &$requested("signature_for", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
139 31 0 if $kind eq "class" and &$requested("extends", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
141 0 31 if $kind eq "role" and &$requested("requires", Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
143 31 0 $kind eq 'class' ? :
146 0 93 unless &$requested($modifier, Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018. )
148 93 0 if ($kind eq 'class') { }
170 0 54 if (@_ % 2)
172 0 0 'CODE' eq ref $default ? :
179 0 54 ref $names ? :
183 0 54 if "CODE" eq ref($code = $spec{'default'})
186 13 41 if "CODE" eq ref($code = $spec{'builder'})
189 0 54 if "CODE" eq ref($code = $spec{'trigger'})
192 0 54 if "CODE" eq ref($code = $spec{'clone'})
205 0 0 ref $_[0] ? :
206 0 0 if ($INC{'Role/Tiny.pm'} and 'Role::Tiny'->is_role($role)) { }
222 0 0 if ($INC{'Role/Hooks.pm'})
226 0 0 if ($cb_before)
227 0 0 unless $cb_before->{$role}
233 0 0 unless $info->{'modifiers'}
239 0 0 if ($cb_after)
240 0 0 unless $cb_after->{$role}
263 0 0 unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \@_ );\n \$orig->( \@_ );\n }\n 1;\n"
282 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"
312 0 64 unless eval " package $caller;\n no warnings 'redefine';\n sub $name {\n \$coderef->( \$orig, \@_ );\n }\n 1;\n"