Branch Coverage

lib/App/TimeTracker.pm
Criterion Covered Total %
branch 33 54 61.1


line true false branch
147 1 0 unless $self->can($command)
161 2 8 unless $s
164 7 1 if ($s >= 60)
168 4 4 if ($m and $m >= 60)
181 2 1 if (my $from = $args->{'from'})
183 1 1 unless $to->hour
187 1 1 if ($from->year == $to->year)
189 1 0 if ($from->month == $to->month)
196 2 1 if ($args->{'projects'})
201 0 3 if ($args->{'parent'})
208 0 3 if ($args->{'tags'})
217 4 69 unless -f $file
219 0 69 unless $name =~ /\.trc$/
221 46 23 if ($cmp_from)
224 11 35 if $time < $cmp_from
225 6 29 if $time > $cmp_to
228 46 6 if ($projects)
229 23 23 unless $name =~ /$projects/i
232 0 29 if ($children)
233 0 0 unless $name =~ /$children/i
236 0 29 if ($tags)
238 0 0 unless $raw_content =~ /$tags/i
249 0 0 unless -e $file and -s $file
258 0 0 if (-e $location)
261 0 0 if (my $parent = $this_config->{'parent'})
270 0 0 if ($project ne $dir and my $parent = $projects->{$dir})
288 0 0 if (@kids)