Branch Coverage

blib/lib/PlugAuth.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
23 25 405 if ($name eq 'plug_auth' or $name eq 'PlugAuth')
36 0 405 if (eval { do { $ret->isa('Clustericious::Plugin::PlugAuth') } }) { }
56 44 1 ref $plugins eq 'ARRAY' ? :
67 13 8 if (ref $plugin_class) { }
70 13 0 unless ref $plugin_config eq 'ARRAY'
80 0 21 if $@
81 0 21 unless Role::Tiny::does_role($plugin_class, 'PlugAuth::Role::Plugin')
86 17 4 if ($plugin->does('PlugAuth::Role::Auth'))
92 0 21 if ($plugin->does('PlugAuth::Role::Welcome'))
97 4 17 if $plugin->does('PlugAuth::Role::Authz')
98 7 14 if $plugin->does('PlugAuth::Role::Refresh')
101 33 12 unless (defined $auth_plugin)
104 1 32 if ($self->config->ldap('default', '')) { }
118 41 4 unless (defined $authz_plugin)
129 45 0 if (@refresh > 0) { }
143 0 2 if ($welcome_plugin) { }
162 0 429 if ($format ne 'txt') { }
174 45 0 if ($self->can('secrets')) { }