Branch Coverage

blib/lib/AnyEvent/Filesys/Notify.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
49 15 33 if ($self->parse_events and $self->can('_parse_events')) { }
60 32 16 if $self->can('_process_events_for_backend')
63 39 9 if @events
71 40 8 if (ref $self->filter eq 'CODE') { }
6 2 elsif (ref $self->filter eq 'Regexp') { }
89 45 8 ref $args[0] eq 'ARRAY' ? :
96 2 498 unless my $stat = $self->_stat($file)
109 13 340 if (not exists $new_fs->{$path}) { }
14 326 elsif ($self->_is_path_modified($old_fs->{$path}, $new_fs->{$path})) { }
129 35 340 unless (exists $old_fs->{$path})
145 8 332 if $new_path->{'mode'} != $old_path->{'mode'}
146 137 195 if $new_path->{'is_dir'}
147 1 194 if $new_path->{'mtime'} != $old_path->{'mtime'}
148 5 189 if $new_path->{'size'} != $old_path->{'size'}
160 2 498 unless @stat
182 3 8 if ($self->backend) { }
3 5 elsif ($self->no_external) { }
5 0 elsif ($^O eq 'linux') { }
0 0 elsif ($^O eq 'darwin') { }
0 0 elsif ($^O =~ /bsd/) { }
187 2 1 unless $backend =~ s/^\+//