Branch Coverage

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


line true false branch
65 36 781 if $seen{$element}
83 357 136 if (@$isa == 1)
105 0 405 unless defined $class
109 121 284 unless *{"${class}::autobox_class";}{"CODE"}
123 109 109 $synthetic{$class} ? :
144 0 1102 builtin::blessed($ref) ? :
154 191 48 wantarray ? :
174 0 1032 unless wantarray
176 1026 6 if (defined $class and $class ne '') { }
177 21 1005 $class =~ /::$/ ? :
188 4 103 @_ == 1 && &_isa($_[0], 'HASH') ? :
191 20 87 unless %args
195 167 903 if (exists $args{$type}) { }
196 10 157 if (&_isa($args{$type}, 'ARRAY')) { }
212 31 76 if ($default)
213 27 4 unless &_isa($default, "ARRAY")
225 20 104 if @{$args{$type};}
232 0 321 unless $args{$vtype}
237 856 0 if (&_isa($args{$vtype}, 'ARRAY')) { }
257 31 76 $^H{'autobox'} ? :
266 0 0 defined $type ? :
0 749 unless $TYPES{$type}
270 142 607 if ($class = $bindings->{$type})
271 82 60 $synthetic{$class} ? :
289 256 493 if (@$isa == 0) { }
312 31 76 exists $^H{'autobox_scope'} ? :
315 25 82 if ($scope == $old_scope) { }
324 44 63 if ($debug)
325 0 44 unless &_isa($debug, "CODE")
329 25 82 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) { }