Branch Coverage

blib/lib/OpenPlugin.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
38 6 0 if ($$params{'config'}{'src'} or $$params{'config'}{'data'}) { }
83 0 152 if (defined $key and not defined $value) { }
36 116 elsif (defined $key and defined $value) { }
150 25 6 if ($plugin) { }
172 8 19 if ($nested_plugin) { }
183 0 27 unless (ref $plugin_info eq 'HASH' and $$plugin_info{'driver'})
209 0 28 unless $driver
226 0 0 unless (ref $$self{'_plugin'} eq 'HASH')
286 27 0 if ($driver_count == 1 and not defined $default_driver)
295 26 1 if ($self->get_plugin_info($plugin)->{'load'} eq 'Startup') { }
1 0 elsif ($self->get_plugin_info($plugin)->{'load'} eq 'Auto') { }
297 26 0 unless (grep /^$class$/, 'OpenPlugin::Plugin'->get_loaded_classes)
314 1 0 unless (grep /^$class$/, 'OpenPlugin::Plugin'->get_registered_classes)
349 0 24 unless ($plugin)
354 0 24 unless ($self->get_plugin_info($plugin))
391 30 0 unless (defined &{$method;})
400 0 152 unless ($driver)
409 152 0 if ($$self{'_instance'}{$plugin}{$driver}) { }
457 6 0 unless (grep /^OpenPlugin::Config$/, 'OpenPlugin::Plugin'->get_loaded_classes)
467 1 5 if ($$params{'config'}{'src'}) { }
5 0 elsif ($$params{'config'}{'data'}) { }
478 0 6 if ($$params{'config'}{'data'} and $$params{'config'}{'src'})