blib/lib/MojoX/Log/Rotate.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 9 | 14 | 64.2 |
line | true | false | branch |
---|---|---|---|
17 | 1 | 0 | if exists $p{'frequency'} |
33 | 4 | 0 | if ($cb_when and $cb_how) |
34 | 2 | 2 | if (my $when_res = &$cb_when($self)) |
45 | 0 | 4 | unless $self->path |
46 | 2 | 2 | if (time - $self->last_rotate > $self->frequency) |
57 | 2 | 0 | if (-f $self->path) |
61 | 0 | 2 | unless File::Copy::move($self->path, $new_name) |