Condition Coverage

blib/lib/Dancer2/Plugin/Auth/Extensible.pm
Criterion Covered Total %
condition 72 98 83.6


and 2 conditions

line l !l condition
910 6 0 $role_match++ and last
916 2 0 $role_match++ and last

and 3 conditions

line !l l&&!r l&&r condition
277 13 1 2 $code and $weak_plugin->reset_password_handler
14 1 1 $code and $weak_plugin->reset_password_handler and $weak_plugin->user_password('code', $code)
344 3 0 6 defined $username and defined $password
453 15 8 107 defined $username and ref $username eq ''
23 26 81 defined $username and ref $username eq '' and $username ne ''
34 2 79 defined $username and ref $username eq '' and $username ne '' and defined $password
28 2 77 defined $username and ref $username eq '' and $username ne '' and defined $password and ref $password eq ''
4 10 67 defined $username and ref $username eq '' and $username ne '' and defined $password and ref $password eq '' and $password ne ''
515 8 3 1 not $options{'realm'} and $plugin->realm_count > 1
619 1 0 1 defined $lastlogin and ref $lastlogin eq ''
1 0 1 defined $lastlogin and ref $lastlogin eq '' and $lastlogin =~ /^\d+$/
744 7 1 1 not $update{'realm'} and $plugin->realm_count > 1
751 3 3 2 $cur_user and $cur_user eq $username
1223 11 26 2 $plugin->reset_password_handler and $params->{'submit_reset'}
1238 24 0 2 $plugin->reset_password_handler && $params->{'confirm_reset'} && $app->request->splat

or 2 conditions

line l !l condition
479 1 0 $@ || 'Unknown error'
527 2 0 $@ || 'Unknown error'
555 1 0 $@ || 'Unknown error'
582 1 0 $@ || 'Unknown error'
1041 0 0 $plugin->app->config->{'appname'} || '[unknown]'
1057 23 7 $tokens ||= {}
1108 0 0 $plugin->app->config->{'appname'} || '[unknown]'
1126 0 0 $plugin->mailer->{'options'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
270 2 2 0 _return_url($app) || $weak_plugin->user_home_page
520 8 3 0 delete $options{'realm'} || $plugin->realm_names->[0]
706 2 2 59 not $coderef or ref $coderef ne 'CODE'
747 7 1 0 delete $update{'realm'} || $plugin->realm_names->[0]
975 7 0 1 not $ua->browser_string or $ua->robot
1178 2 4 55 $app->request->query_parameters->get('return_url') || $app->request->body_parameters->get('return_url')
1272 31 0 5 $params->{'username'} || $params->{'__auth_extensible_username'}
1273 31 0 5 $params->{'password'} || $params->{'__auth_extensible_password'}
1285 0 1 0 _return_url($app) || $plugin->user_home_page
1288 5 0 30 $params->{'realm'} || $params->{'__auth_extensible_realm'}
1303 2 26 0 _return_url($app) || $plugin->user_home_page