Branch Coverage

blib/lib/Coat/Meta.pm
Criterion Covered Total %
branch 42 50 84.0


line true false branch
15 1 288 unless $$CLASSES{$_[1]}
24 125 43 unless defined $$CLASSES{'@!family'}{$class}
41 102 2 if (@_ == 4) { }
42 95 7 unless defined $desc
45 95 7 unless exists $$desc{'isa'}
46 95 7 unless exists $$desc{'is'}
49 3 99 if (defined $$attr_desc{'trigger'})
51 2 1 unless ref $trigger and ref $trigger eq 'CODE'
56 6 94 if (defined $$desc{'default'})
57 0 6 if (ref $$desc{'default'} and 'CODE' ne reftype($$desc{'default'}))
70 1 1 if defined $desc
90 0 52 unless defined $default
92 9 43 ref $default ? :
106 346 300 if exists $$CLASSES{$class}{$attribute}
113 90 113 if defined $parent_attr
124 120 0 unless defined $hash
150 0 12 unless $class
176 122 28 if (not grep(/^$parent$/, @{$$CLASSES{'@!family'}{$class};}))
185 150 0 unless ref $parents
188 1 149 unless (defined $$CLASSES{'@!family'}{$class})
208 21 43 unless defined $$CLASSES{'%!hooks'}{$class}{$hook}{$method}
212 16 48 if (defined $coderef) { }
223 21 0 if shift()
224 23 0 if shift()
225 20 0 if shift()