Branch Coverage

blib/lib/Coat/Object.pm
Criterion Covered Total %
branch 13 24 54.1


line true false branch
34 112 0 if @args % 2 == 0
37 0 112 if ($self->can('BUILDARGS'))
44 0 0 if (defined &$buildargs_sub)
52 0 112 unless (defined $args)
53 0 0 if (@args == 1) { }
54 0 0 if (ref $args[0] ne 'HASHREF') { }
86 1 239 if $$meta{'lazy'} and not exists $$meta{'default'}
90 46 193 if (not $$meta{'lazy'} and defined $$meta{'default'})
105 2 10 if $$meta{'required'} and $$meta{'is'} eq 'ro' and not exists $$meta{'default'} and not exists $$attrs{$attr}
133 212 5 unless $self->can($method_name)
141 7 5 if defined &$sub
155 0 0 if @_