blib/lib/Mojolicious/Plugin/AutoSecrets.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 25 | 40.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
36 | 1 | 0 | 0 | $disk && decode_json($disk) |
44 | 0 | 1 | 0 | $prune and @secrets > $prune |
line | l | !l | condition |
---|---|---|---|
17 | 1 | 0 | $config //= {} |
20 | 0 | 1 | $config->{'mode'} // 384 |
21 | 0 | 1 | $config->{'expire_days'} // 60 |
22 | 0 | 1 | $config->{'prune'} // 3 |
23 | 0 | 1 | $config->{'generator'} // \&Mojolicious::Plugin::AutoSecrets::generator |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
19 | 1 | 0 | 0 | $config->{'path'} // $app->home->rel_file('.mojo-secrets') |
41 | 1 | 0 | 0 | not @secrets or -z $path |
1 | 0 | 0 | not @secrets or -z $path or -M _ > $expire_days |