Branch Coverage

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


line true false branch
63 36 752 if $seen{$element}
81 340 130 if (@$isa == 1)
103 0 386 unless defined $class
107 115 271 unless *{"${class}::autobox_class";}{'CODE'}
121 109 109 $synthetic{$class} ? :
142 0 1044 &Scalar::Util::blessed($ref) ? :
152 191 46 wantarray ? :
172 0 967 unless wantarray
174 961 6 if (defined $class and $class ne '') { }
175 21 940 $class =~ /::$/ ? :
186 2 99 @_ == 1 && &_isa($_[0], 'HASH') ? :
189 20 81 unless %args
193 160 850 if (exists $args{$type}) { }
194 8 152 if (&_isa($args{$type}, 'ARRAY')) { }
210 30 71 if ($default)
211 26 4 unless &_isa($default, 'ARRAY')
223 20 100 if @{$args{$type};}
230 0 303 unless $args{$vtype}
235 808 0 if (&_isa($args{$vtype}, 'ARRAY')) { }
255 31 70 $^H{'autobox'} ? :
264 0 0 defined $type ? :
0 707 unless $TYPES{$type}
268 142 565 if ($class = $bindings->{$type})
269 82 60 $synthetic{$class} ? :
287 237 470 if (@$isa == 0) { }
310 31 70 exists $^H{'autobox_scope'} ? :
313 25 76 if ($scope == $old_scope) { }
322 44 57 if ($debug)
323 0 44 unless &_isa($debug, 'CODE')
327 25 76 unless $new_scope
364 14 20 unless $^H{'autobox'}
368 9 11 if (@args) { }
374 20 7 unless $args{$vtype}
385 0 0 defined $type ? :
0 17 unless $TYPES{$type}
392 7 13 if (%$bindings) { }