| 1 |
use strict; |
| 2 |
use warnings; |
| 3 |
|
| 4 |
use Test::More; |
| 5 |
|
| 6 |
use File::ChangeNotify; |
| 7 |
|
| 8 |
## no critic (Subroutines::ProtectPrivateSubs) |
| 9 |
ok( |
| 10 |
File::ChangeNotify::_try_load('File::ChangeNotify::Watcher::Default'), |
| 11 |
'can load Default watcher' |
| 12 |
); |
| 13 |
|
| 14 |
ok( |
| 15 |
File::ChangeNotify::_try_load('File::ChangeNotify::Watcher::Inotify'), |
| 16 |
'can load Inotify watcher' |
| 17 |
); |
| 18 |
|
| 19 |
ok( |
| 20 |
!File::ChangeNotify::_try_load('File::ChangeNotify::Watcher::KQueue'), |
| 21 |
'cannot load KQueue watcher' |
| 22 |
); |
| 23 |
|
| 24 |
done_testing(); |