Branch Coverage

blib/lib/Acme/Has/Tiny.pm
Criterion Covered Total %
branch 29 60 48.3


line true false branch
25 2 0 eval 'use Class::XSAccessor 1.18; 1' ? :
35 4 0 if ($want{'has'})
40 2 2 if ($want{'new'})
55 8 0 unless ref $attrs eq 'ARRAY'
68 0 8 unless eval $str
2 2 defined $_[1] && !ref($_[1]) && &Scalar::Util::looks_like_number($_[1]) ? :
107 0 4 if $options{'build'}
112 2 4 if ($options{'replace'}) { }
131 2 6 if ($$spec{'is'} eq 'rwp') { }
0 6 elsif ($$spec{'is'} eq 'rw') { }
146 4 4 if ($$spec{'predicate'} eq '1') { }
0 4 elsif ($$spec{'predicate'}) { }
164 0 8 if ($$spec{'builder'} eq '1') { }
0 8 elsif (ref $$spec{'builder'} eq 'CODE') { }
0 8 elsif ($$spec{'builder'}) { }
179 8 0 unless ($builder_name)
185 0 0 $builder_name ? :
211 2 0 if (blessed $isa and $isa->isa('Type::Tiny') and $isa->can_be_inlined) { }
0 0 elsif ($isa) { }
220 0 2 unless ($inlined)
226 2 0 defined $inlined ? :
238 0 0 if (blessed $isa and $isa->can_be_inlined) { }
0 0 elsif ($isa) { }
247 0 0 unless ($inlined)
253 0 0 defined $inlined ? :
283 0 8 if ($$spec{'default'}) { }
4 4 elsif ($$spec{'required'}) { }
299 8 0 if (blessed $isa and $isa->can_be_inlined) { }
0 0 elsif ($isa) { }
325 6 0 if (eval { do { require mro } } or eval { do { require MRO::Compat } })