Branch Coverage

blib/lib/Class/Tiny/ConstrainedAccessor.pm
Criterion Covered Total %
branch 43 44 97.7


line true false branch
133 1 24 if ref $_[0] eq 'ARRAY'
136 1 24 if (ref $_[0] eq 'HASH' and scalar @_ == 1) { }
139 2 22 if @_ % 2
167 2 10 $has_build ? :
180 6 26 unless $type->can('name')
181 27 17 if $name
184 21 23 unless $name
188 7 37 if (ref $type eq 'ARRAY')
189 2 5 unless scalar @$type == 2
191 1 4 unless ref $type->[0] eq 'CODE'
192 1 3 unless ref $type->[1] eq 'CODE'
203 3 34 if (ref $type eq 'CODE')
208 182 47 if ($@) { }
47 0 elsif (not defined $is_ok) { }
219 7 30 unless ref $impl eq 'Type::Tiny'
233 1260 66 if (@_) { }
23 43 elsif (exists $self_->{$k}) { }
234 860 400 unless &$checker($_[0])
245 21 22 if ref $def_ eq 'CODE'
247 3 40 unless &$checker($def_)
262 44 76 unless exists $accessors{$k}
264 45 31 unless &$checker($args->{$k})