Branch Coverage

blib/lib/Mooish/AttributeBuilder.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
12 15 0 if (eval { do { require Sub::Util } } and "Sub::Util"->VERSION >= "1.4")
88 69 0 if $set_subname
109 0 4 unless ref $sub eq "CODE"
126 52 0 if ($type and $self->attribute_types->{$type})
140 5 2 if ($args{'lazy'} and not exists $args{'default'} and not $args{'builder'})
144 3 2 if (ref $lazy eq 'CODE') { }
159 1 51 if (&blessed($args{'coerce'}))
171 1 6 if ($args{'required'} and exists $args{'default'} || $args{'builder'})
189 329 34 unless defined $args{$method_type}
190 0 34 if ref $args{$method_type}
191 2 32 unless grep {$_ eq $args{$method_type};} 1, "-public", "-hidden"
205 14 17 $is_hidden ? :
210 2 49 if ($args{'trigger'} and not ref $args{'trigger'})
225 2 153 if ($literal =~ /\A - (.+) \z/x)
243 51 1 unless $standard
252 4 47 if ($attribute_type eq "extended")
253 2 2 if (ref $name eq 'ARRAY') { }
272 0 6 if exists $hash_ref->{$key}
284 1 30 if ref $name