Condition Coverage

blib/lib/Mojolicious/Plugin/Hakkefuin.pm
Criterion Covered Total %
condition 40 82 48.7


and 3 conditions

line !l l&&!r l&&r condition
89 4 0 0 $conf->{'table_config'} && $conf->{'migration'}
115 0 4 40 $c->sessions and $c->sessions == $sessions
137 5 0 2 $opts and ref $opts eq "HASH"
181 0 0 3 $upd_coolock->{'code'} == 200 and $upd_state->{'code'} == 200
215 0 0 3 $lock_cookie and $stored_lock
224 0 0 3 $upd_coolock->{'code'} == 200 and $upd_state->{'code'} == 200
279 0 0 6 $lock_cookie && $auth_check->{'data'}{'cookie_lock'} && secure_compare($lock_cookie, $auth_check->{'data'}{'cookie_lock'})

or 2 conditions

line l !l condition
53 4 0 $conf //= {}
54 0 4 $conf->{'helper.prefix'} //= "mhf"
55 0 4 $conf->{'stash.prefix'} //= "mhf"
56 3 1 $conf->{'via'} //= "sqlite"
57 4 0 $conf->{'dir'} //= "migrations"
58 0 4 $conf->{'csrf.name'} //= "mhf_csrf_token"
59 0 4 $conf->{'lock'} //= 1
60 0 4 $conf->{'s.time'} //= "1w"
61 0 4 $conf->{'c.time'} //= "1w"
62 0 4 $conf->{'cl.time'} //= "60m"
69 0 4 $conf->{'callback'} //= {"has_auth", sub { } , "sign_in", sub { } , "sign_out", sub { } , "lock", sub { } , "unlock", sub { } }
76 0 4 $conf->{'cookies'} //= {"name", "clg", "path", "/", "httponly", 1, "secure", 0}
78 0 4 $conf->{'cookies_lock'} //= {"name", "clglc", "path", "/", "httponly", 1, "secure", 0}
80 0 4 $conf->{'session'} //= {"cookie_name", "_mhf", "cookie_path", "/", "secure", 0}
144 7 3 $opts //= {}
270 26 0 $auth_check->{'data'}{'csrf'} // ""
26 0 $c->$csrf_get // ""

or 3 conditions

line l !l&&r !l&&!r condition
82 0 4 0 $conf->{'session'}{'default_expiration'} //= $time_cookies->{'session'}
148 2 8 0 $opts->{'s_time'} // $conf->{'s.time'}
2 8 0 $opts->{'c_time'} // $conf->{'c.time'}
0 10 0 $opts->{'cl_time'} // $conf->{'cl.time'}
166 0 0 3 $check_auth->{'result'} == 0 or $check_auth->{'result'} == 3
202 0 0 3 $check_auth->{'result'} == 0 or $check_auth->{'result'} == 3
350 26 0 5 $c->session($conf->{'csrf.name'}) || $c->req->headers->header(uc $conf->{'csrf.name'})
383 0 5 0 $app->$csrf_get || $app->$csrf_reg->[1]
451 3 0 0 $seed || $self->utils->gen_cookie(4)