blib/lib/MojoX/Log/Rotate.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 20 | 60.0 |
line | true | false | branch |
---|---|---|---|
22 | 1 | 0 | if exists $p{'frequency'} |
25 | 0 | 1 | if exists $p{'on_rotate'} |
27 | 0 | 1 | if ($p{'threaded'}) { } |
47 | 4 | 0 | if ($cb_when and $cb_how) |
48 | 2 | 2 | if (my $when_res = &$cb_when($self)) |
59 | 0 | 4 | unless $self->path |
60 | 2 | 2 | if (time - $self->last_rotate > $self->frequency) |
69 | 2 | 0 | if (my $handle = $self->handle) |
70 | 2 | 0 | if (-f $self->path) |
76 | 0 | 2 | unless "Mojo::File"->new($self->path)->move_to($new_name) |