Branch Coverage

blib/lib/File/ChangeNotify/Watcher.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
125 0 144 $^O eq 'MSWin32' ? :
130 4 140 if ($self->_path_is_excluded($path))
135 2 138 unless my $entry = $self->_entry_for_map($path)
142 3 51 $self->follow_symlinks ? :
160 82 58 -d $path ? :
166 2 138 if -l $path and not $is_dir
168 56 82 unless ($is_dir)
170 0 56 unless ('File::Spec'->splitpath($path))[2] =~ /$filter/
174 82 56 $is_dir ? :
82 56 $is_dir ? :
188 0 138 unless ($self->_always_requires_mtime)
190 0 0 unless $self->_path_matches($self->modify_includes_file_attributes, $path)
204 138 0 $stat ? :
222 48 8 unless $self->_path_matches($self->modify_includes_content, $path)
224 0 8 unless open my $fh, '<', $path
225 0 8 unless binmode $fh, ':bytes'
230 0 8 unless close $fh
249 39 8 unless $self->_path_matches($self->modify_includes_file_attributes, $path)
262 4 17 if $old_attr->{$k} != $new_attr->{$k}
275 10 4 unless $self->_path_matches($self->modify_includes_content, $path)
286 95 172 unless ref $matches
289 54 19 if (my $ref = ref $matcher) { }
290 51 3 if ($ref eq 'Regexp') { }
3 0 elsif ($ref eq 'CODE') { }
291 16 35 if $path =~ /$matcher/
295 0 3 if &$matcher($path)
299 1 18 if $path eq $matcher