| blib/lib/Filesys/Notify/Simple.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 18 | 40 | 45.0 |
| line | l | !l | condition |
|---|---|---|---|
| 35 | 0 | 5 | $^O eq 'linux' and 1 |
| 5 | 0 | $^O eq 'darwin' and 1 | |
| 5 | 0 | $^O eq 'freebsd' || $^O eq 'openbsd' and 1 | |
| 5 | 0 | $^O eq 'MSWin32' and 1 | |
| 5 | 0 | $^O eq 'cygwin' and 1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 35 | 1 | 4 | 0 | $^O eq 'linux' and 1 and eval { do { require Linux::Inotify2; 1 } } |
| 5 | 0 | 0 | $^O eq 'darwin' and 1 and eval { do { require Mac::FSEvents; 1 } } | |
| 5 | 0 | 0 | $^O eq 'freebsd' || $^O eq 'openbsd' and 1 and eval { do { require Filesys::Notify::KQueue; 1 } } | |
| 5 | 0 | 0 | $^O eq 'MSWin32' and 1 and eval { do { require Win32::ChangeNotify; 1 } } | |
| 5 | 0 | 0 | $^O eq 'cygwin' and 1 and eval { do { require Win32::ChangeNotify; 1 } } | |
| 177 | 12 | 6 | 0 | not $new->{$dir}{$path}{'is_dir'} and $old->{$dir}{$path}{'mtime'} != $new->{$dir}{$path}{'mtime'} || $old->{$dir}{$path}{'size'} != $new->{$dir}{$path}{'size'} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 27 | 2 | 3 | 0 | $self->{'watcher'} ||= $self->{'watcher_cb'}->(@{$$self{'paths'};}) |
| 35 | 0 | 0 | 5 | $^O eq 'freebsd' || $^O eq 'openbsd' |
| 177 | 0 | 0 | 6 | $old->{$dir}{$path}{'mtime'} != $new->{$dir}{$path}{'mtime'} || $old->{$dir}{$path}{'size'} != $new->{$dir}{$path}{'size'} |
| 203 | 43 | 0 | 0 | $File::Find::fullname || 'File::Spec'->rel2abs($File::Find::name) |