blib/lib/Plack/Middleware/SignedCookies.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 17 | 76.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
44 | 10 | 1 | 7 | $secure and not /;\s* secure \s* (?:;|\z)/xi |
45 | 8 | 0 | 10 | $httponly and not /;\s* httponly \s* (?:;|\z)/xi |
line | l | !l | condition |
---|---|---|---|
30 | 3 | 6 | $$env{'HTTP_COOKIE'} // '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
23 | 8 | 0 | 1 | $self->secure // do { $self->secure(0) } |
24 | 8 | 0 | 1 | $self->httponly // do { $self->httponly(1) } |
26 | 8 | 0 | 1 | $self->secret // do { $self->secret(join('', map({chr int rand 256;} 1..17))) } |