| blib/lib/Plack/Middleware/AutoRefresh.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 4 | 12 | 33.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 78 | 0 | 0 | 0 | defined $timestamp and $timestamp < $self->{'last_change'} |
| line | l | !l | condition |
|---|---|---|---|
| 32 | 0 | 1 | $self->{'filter'} ||= sub { not $_[0] =~ qr/\.(swp|bak)$/; } |
| 38 | 0 | 1 | $self->{'wait'} ||= 5 |
| 40 | 0 | 1 | $self->{'dirs'} ||= ['.'] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 41 | 1 | 0 | 0 | -d $_ or carp("AutoRefresh: can't find directory $_") |