Branch Coverage

blib/lib/Throwable/Factory.pm
Criterion Covered Total %
branch 26 26 100.0


line true false branch
72 8 18 unless @_
73 5 13 if @_ % 2 and not ref $_[0]
90 1 3 if $f eq 'message'
92 2 1 ref $v ? :
122 9 6 unless ($name =~ /^-(isa|extends|with|class)$/)
125 1 8 if @matches > 1
126 1 7 if @matches < 1
138 9 19 if (ref $proto eq 'HASH')
143 7 2 if (defined $proto{'isa'})
147 3 6 if (defined $proto{'description'})
151 5 4 if (defined $proto{'fields'})
153 4 1 ref $fields ? :
156 1 8 if (keys %proto)