Branch Coverage

blib/lib/YAOO.pm
Criterion Covered Total %
branch 73 116 62.9


line true false branch
32 27 4 scalar @value > 1 ? :
44 4 4 $isa eq 'hash' ? :
8 1 scalar @args > 1 ? :
4 9 $isa eq 'ordered_hash' ? :
13 14 if scalar @args
58 0 3 unless $object{$inherit}
64 10 0 if ($value and $object{$extend}{'has'}{$name}{'is'} eq 'rw' || [split(/::/, [caller 1]->[3], 0)]->[-1] =~ /^new|build|set_defaults|auto_build$/)
69 0 10 if $object{$extend}{'has'}{$name}{'coerce'}
71 0 10 if $object{$extend}{$name}{'required'}
75 0 10 if $object{$extend}{'has'}{$name}{'trigger'}
119 1 7 if $object{$called}{'lazy'}
121 8 0 if $object{$called}{'auto_build'}
122 0 8 if $self->can("build")
123 1 7 if $object{$called}{'delay'}
134 0 31 if ($name =~ s/^_([a-zA-Z].*)/$1/)
138 1 30 if ($ref eq 'ARRAY') { }
1 29 elsif ($ref eq 'HASH') { }
144 0 31 if (not $attribute_extend and $object{$called}{'has'}{$name})
148 0 31 if (scalar @attrs % 2)
155 8 23 unless $object{$called}{'has'}{$name}{'is'}
158 1 30 unless defined $object{$called}{'has'}{$name}{'isa'}
160 13 18 if ($object{$called}{'has'}{$name}{'default'})
161 0 13 if ($object{$called}{'has'}{$name}{'default'} =~ /^1$/) { }
13 0 elsif (ref $object{$called}{'has'}{$name}{'default'} eq 'CODE') { }
168 0 0 $object{$called}{'has'}{$name}{'type'} eq 'ordered_hash' ? :
172 0 31 if ($object{$called}{'has'}{$name}{'required'})
176 4 27 if ($object{$called}{'has'}{$name}{'lazy'})
180 1 30 if ($object{$called}{'has'}{$name}{'delay'})
186 33 0 if (@_ > 1 and $object{$called}{'has'}{$name}{'is'} eq 'rw' || [split(/::/, [caller 1]->[3], 0)]->[-1] =~ /^new|build|set_defaults|auto_build$/)
190 32 1 if (defined $value) { }
192 2 30 if $object{$called}{'has'}{$name}{'coerce'}
194 0 32 if $object{$called}{$name}{'required'}
198 0 32 if $object{$called}{'has'}{$name}{'trigger'}
204 31 0 unless $attribute_extend
211 1 5 unless $object{$called}{'has'}{$_}
218 0 1 unless $self->can($_)
227 0 0 unless $object{$called}{'method'}{$_}
236 7 15 $object{$called}{'has'}{$_}{'type'} eq 'ordered_hash' ? :
22 24 if defined $object{$called}{'has'}{$_}{'value'}
243 0 8 scalar @_ == 1 ? :
245 15 0 if ($self->can($_))
255 0 5 ref $object{$called}{'has'}{$_}{$type} || !($object{$called}{'has'}{$_}{$type} =~ /^1$/) ? :
264 0 0 if (not defined $value)
276 0 6 if (ref $value)
287 0 12 if (ref $value or not $value =~ /^\d+$/)
298 0 0 if (ref $value or not $value =~ /^\d+\.\d+$/)
309 0 0 if (ref $value ne "SCALAR")
320 2 0 unless (ref $value)
323 0 2 if (ref $value ne "SCALAR")
338 0 15 if (ref $value ne "HASH")
349 0 7 if (ref $value ne "ARRAY")
358 0 0 if (ref $value ne "GLOB")
369 0 0 if (not ref $value or ref !($value =~ /SCALAR|ARRAY|HASH|GLOB/))
379 145 66 if (not $ref) { }
0 66 elsif ($ref eq 'SCALAR') { }
22 44 elsif ($ref eq 'ARRAY') { }
44 0 elsif ($ref eq 'HASH') { }
387 7 4 scalar @_ == 1 ? :