Branch Coverage

lib/Metadata/ByInode/Indexer.pm
Criterion Covered Total %
branch 29 80 36.2


line true false branch
55 0 31 if (defined $arg and $arg =~ /^\d+$/)
57 0 0 if DEBUG()
67 0 3 unless $arg
79 3 0 unless ($$self{'index_hidden_files'})
80 3 0 if DEBUG()
82 3 0 if DEBUG()
87 3 0 if (DEBUG())
99 3 28 unless ($runonce_)
101 3 0 if ($abs_path eq $_ and -d $_)
102 3 0 if DEBUG()
107 0 28 if (DEBUG() || TEST() and $self->_teststop == $files_indexed)
115 0 28 unless $abs_path =~ m[^(.+)/([^/]+$)]
127 0 28 if (-l _ or -p _ or -b _)
137 0 28 if ($self->_save_stat_data)
139 0 0 if $size
140 0 0 if $ctime
141 0 0 if $mtime
143 0 0 if (-f _) { }
0 0 elsif (-d _) { }
150 0 0 if (-T _) { }
0 0 elsif (-B _) { }
194 6 0 unless (defined $$self{'file_file_rule'})
196 0 6 unless defined $$self{'file_find_rule'}
214 0 84 unless defined $key and defined $val
222 0 28 unless defined $$self{'_current_record'}
371 0 3 unless $arg
374 3 0 if DEBUG()
382 0 3 if ($ondisk) { }
383 0 0 if DEBUG()
386 0 0 unless (defined $$self{'_open_handle'}{'recursive_delete_o'})
387 0 0 unless $$self{'_open_handle'}{'recursive_delete_o'} = $self->dbh->prepare(q[DELETE FROM metadata WHERE inode IN (SELECT inode FROM metadata WHERE mkey='abs_loc' AND mvalue LIKE ? AND inode IN (SELECT inode FROM metadata WHERE mkey='ondisk' AND mvalue < ?));"])
398 0 0 if DEBUG()
405 3 0 if DEBUG()
423 3 0 if DEBUG()
426 3 0 if DEBUG()
428 3 0 if DEBUG()
436 3 0 if DEBUG()
440 3 0 if DEBUG()
469 3 0 if DEBUG()
474 3 0 if DEBUG()