Branch Coverage

blib/lib/Bot/Cobalt/Core/Loader.pm
Criterion Covered Total %
branch 4 16 25.0


line true false branch
14 1 0 unless $obj and &blessed($obj)
17 0 0 $obj->can('NON_RELOADABLE') && $obj->NON_RELOADABLE ? :
24 0 1 unless defined $module
32 0 1 unless defined $module
37 1 0 unless (&try(sub { require $modpath; 1; } , &catch(sub { $orig_err = $_; 0; } )))
53 0 0 unless &try(sub { $obj = $module->new(@newargs); } , &catch(sub { $err = "new() failed for ${module}: $_"; undef; } ))
61 0 0 unless defined $module
73 0 0 if $symbol =~ /^[^:]+::$/