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