Condition Coverage

blib/lib/Yancy/Plugin/Auth/Password.pm
Criterion Covered Total %
condition 21 38 55.2


and 3 conditions

line !l l&&!r l&&r condition
550 0 1 0 $username_field and $username_field ne $id_field
569 10 0 3 $c->current_route =~ /^yancy\.auth/u && $c->req->headers->referrer && !($c->req->headers->referrer =~ m[^(?:\w+:|//)]u)
766 2 10 1 $success and $force_upgrade || $user_digest_config_string ne $default_config_string

or 2 conditions

line l !l condition
449 0 0 $config->{'schema'} || $config->{'collection'} || die("Error configuring Auth::Password plugin: No schema defined\n")
461 11 0 $config->{'password_field'} || 'password'
466 10 1 $config->{'register_fields'} || $app->yancy->schema($schema_name)->{'required'} || []
476 0 10 $field->{'x-filter'} ||= []
485 0 0 $self->username_field || $schema->{'x-id-field'} || 'id'
548 1 0 $schema->{'x-id-field'} || 'id'
569 10 0 $c->req->url->path || '/'
608 3 8 $c->req->param('return_to') || '/'
652 0 0 $self->username_field || $schema->{'x-id-field'} || 'id'
784 2 1 ($c->param("redirect_to") // $c->req->headers->referrer) // "/"

or 3 conditions

line l !l&&r !l&&!r condition
751 0 0 0 $self->migrate_digest || $self->default_digest
766 0 1 10 $force_upgrade || $user_digest_config_string ne $default_config_string
784 1 1 1 $c->param("redirect_to") // $c->req->headers->referrer