blib/lib/Bot/Cobalt/Core/Loader.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 5 | 18 | 27.7 |
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 | if $INC[-1] eq '.' |
40 | 1 | 0 | unless (&try(sub { require $modpath; 1; } , &catch(sub { $orig_err = $_; 0; } ))) |
56 | 0 | 0 | unless &try(sub { $obj = $module->new(@newargs); } , &catch(sub { $err = "new() failed for ${module}: $_"; undef; } )) |
64 | 0 | 0 | unless defined $module |
76 | 0 | 0 | if $symbol =~ /^[^:]+::$/ |