Branch Coverage

blib/lib/Mite/Trait/HasAttributes.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
31 0 134 if $self->attributes->{$attribute->name}
48 0 1 unless $attr
52 0 1 if (ref $attr_args{'default'})
86 1 2 if (@_ % 2)
88 1 0 'CODE' eq ref $default ? :
95 1 2 ref $names ? :
96 1 2 if (my $is_extension = $name =~ s/^\+//) { }
114 0 3 if "CODE" eq ref($code = $spec{'builder'})
116 0 2 if "CODE" eq ref($code = $spec{'trigger'})
118 0 2 if "CODE" eq ref($code = $spec{'clone'})
170 0 11 unless eval {
178 127 3 if (@lines)
179 18 109 $attr->type ? :
188 397 127 /\S/ ? :
220 40 82 unless keys %$attributes