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('_add_created')
62 39 9 if @events
70 40 8 if (ref $self->filter eq 'CODE') { }
6 2 elsif (ref $self->filter eq 'Regexp') { }
88 45 8 ref $args[0] eq 'ARRAY' ? :
95 2 498 unless my $stat = $self->_stat($file)
108 13 340 if (not exists $new_fs->{$path}) { }
14 326 elsif ($self->_is_path_modified($old_fs->{$path}, $new_fs->{$path})) { }
128 35 340 unless (exists $old_fs->{$path})
144 8 332 if $new_path->{'mode'} != $old_path->{'mode'}
145 137 195 if $new_path->{'is_dir'}
146 1 194 if $new_path->{'mtime'} != $old_path->{'mtime'}
147 5 189 if $new_path->{'size'} != $old_path->{'size'}
159 2 498 unless @stat
181 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/) { }
186 2 1 unless $backend =~ s/^\+//