Branch Coverage

blib/lib/Sub/HandlesVia/Toolkit/Moose.pm
Criterion Covered Total %
branch 25 34 73.5


line true false branch
27 3 89 if ($meta->isa('Moose::Meta::Role')) { }
54 104 0 if (ref $attrname)
55 0 104 unless @$attrname == 1
60 0 104 if (ref $target) { }
80 80 24 if (not $spec->{'lazy'} || $spec->{'traits'} || $spec->{'auto_deref'}) { }
18 6 elsif ($attr->has_read_method) { }
95 76 28 if ($attr->has_write_method) { }
109 28 0 $attr->can('set_value') ? :
119 81 23 if (exists $spec->{'default'}) { }
9 14 elsif (exists $spec->{'builder'}) { }
126 37 67 if (ref $default->[1] eq "CODE")
147 0 15 unless my($gen, $handler) = @_
148 0 15 if (not $default and $handler) { }
4 11 elsif ($default->[0] eq 'builder') { }
0 11 elsif ($default->[0] eq 'default' and ref $default->[1] eq 'CODE') { }
0 11 elsif ($default->[0] eq 'default' and not defined $default->[1]) { }
11 0 elsif ($default->[0] eq 'default' and not ref $default->[1]) { }