Branch Coverage

blib/lib/autobox.pm
Criterion Covered Total %
branch 60 72 83.3


line true false branch
65 36 775 if $seen{$element}
83 351 136 if (@$isa == 1)
105 0 399 unless defined $class
109 120 279 unless *{"${class}::autobox_class";}{'CODE'}
123 109 109 $synthetic{$class} ? :
144 0 1092 &Scalar::Util::blessed($ref) ? :
154 191 48 wantarray ? :
174 0 1018 unless wantarray
176 1012 6 if (defined $class and $class ne '') { }
177 21 991 $class =~ /::$/ ? :
188 3 103 @_ == 1 && &_isa($_[0], 'HASH') ? :
191 20 86 unless %args
195 167 893 if (exists $args{$type}) { }
196 10 157 if (&_isa($args{$type}, 'ARRAY')) { }
212 30 76 if ($default)
213 26 4 unless &_isa($default, 'ARRAY')
225 20 100 if @{$args{$type};}
232 0 318 unless $args{$vtype}
237 848 0 if (&_isa($args{$vtype}, 'ARRAY')) { }
257 31 75 $^H{'autobox'} ? :
266 0 0 defined $type ? :
0 742 unless $TYPES{$type}
270 142 600 if ($class = $bindings->{$type})
271 82 60 $synthetic{$class} ? :
289 255 487 if (@$isa == 0) { }
312 31 75 exists $^H{'autobox_scope'} ? :
315 25 81 if ($scope == $old_scope) { }
324 44 62 if ($debug)
325 0 44 unless &_isa($debug, 'CODE')
329 25 81 unless $new_scope
366 14 20 unless $^H{'autobox'}
370 9 11 if (@args) { }
376 20 7 unless $args{$vtype}
387 0 0 defined $type ? :
0 17 unless $TYPES{$type}
394 7 13 if (%$bindings) { }