Branch Coverage

blib/lib/Specio/OO.pm
Criterion Covered Total %
branch 36 38 94.7


line true false branch
49 919 1213 if ($attr->{'lazy'} and my $builder = $attr->{'builder'}) { }
65 0 919 $attr->{'weak_ref'} ? :
88 1586 546 unless $attr->{'predicate'}
110 56 168 unless my($type) = $sub =~ /^is_(.+)$/
125 87 107 if defined &{$parent . '::BUILD';}
136 110 84 if (Role::Tiny::does_role($class, $role))
172 459 1673 defined $attr->{'init_arg'} ? :
174 450 1682 if ($attr->{'required'})
182 144 1988 if ($attr->{'builder'} and not $attr->{'lazy'})
189 1668 464 if ($attr->{'isa'})
191 1499 169 if ($TypeChecks{$attr->{'isa'}}) { }
215 219 1913 if ($attr->{'does'})
229 28 2104 if ($attr->{'weak_ref'})
269 0 2872 if $e
325 8608 85064 if ($special{$key})
333 474 84590 if (ref $value eq 'ARRAY' and &all(sub { (ref $_ || '') =~ /Specio/; } , @{$value;}))
348 473 14834 $BuiltinTypes{$ref} ? :
17631 15307 $ref eq 'CODE' ? :
51652 32938 !$ref ? :