EventReceiver/Debug.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 8 totaltotal 0.0% 0 / 47 CC 1 SCAR 6.9
CC
1
Cov
0%
handle_access
2.0
handle_modify
2.0
handle_attribute_change
2.0
CRAP 2.0
1 package AnyEvent::Inotify::EventReceiver::Debug;
2 $AnyEvent::Inotify::EventReceiver::Debug::VERSION = '0.04';
3 use Moose;
4 use namespace::autoclean;
5  
6 with 'AnyEvent::Inotify::EventReceiver';
7 use Carp qw(carp);
8  
9 sub handle_access {
10 my ($self,$file) = @_;
11 carp "Access $file";
12 }
13  
14 sub handle_modify {
15 my ($self, $file) = @_;
16 carp "Modify $file";
17 }
18  
19 sub handle_attribute_change {
20 my ($self, $file) = @_;
21 carp "Attribute change $file";
22 }
23  
24 sub handle_close {
25 my ($self, $file) = @_;
26 carp "Close $file";
27 }
28  
29 sub handle_open {
30 my ($self, $file) = @_;
31 carp "Open $file";
32 }
33  
34 sub handle_move {
35 my ($self, $from, $to) = @_;
36 carp "Move $from to $to";
37 }
38  
39 sub handle_delete {
40 my ($self, $file) = @_;
41 carp "Delete $file";
42 }
43  
44 sub handle_create {
45 my ($self, $file) = @_;
46 carp "Create $file";
47 }
48  
49 1;
50  
51 __END__