Branch Coverage

blib/lib/Sub/HandlesVia/Toolkit/Mouse.pm
Criterion Covered Total %
branch 26 36 72.2


line true false branch
27 3 87 if ($meta->isa('Mouse::Meta::Role')) { }
54 101 0 if (ref $attrname)
55 0 101 unless @$attrname == 1
60 0 101 if (ref $target) { }
75 78 23 if (not $spec->{'lazy'} || $spec->{'traits'} || $spec->{'auto_deref'}) { }
17 6 elsif ($attr->has_read_method) { }
99 77 24 if ($attr->has_write_method) { }
118 80 21 if (exists $spec->{'default'}) { }
9 12 elsif (exists $spec->{'builder'}) { }
125 39 62 if (ref $default->[1] eq "CODE")
146 0 15 unless my($gen, $handler) = @_
147 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]) { }
238 0 8 ref $_ && &blessed($_->[0]) && $_->[0]->can('_shv_toolkit') ? :
242 0 4 if ($hack)