Branch Coverage

lib/App/TimeTracker.pm
Criterion Covered Total %
branch 38 54 70.3


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