Branch Coverage

lib/App/TimeTracker/Command/Core.pm
Criterion Covered Total %
branch 22 82 26.8


line true false branch
19 0 4 unless ($self->has_current_project)
42 3 6 unless ($task)
43 3 0 if $dont_exit
64 1 5 if ($task->stop < $task->start)
72 1 0 if $what_you_meant > $task->start
74 1 0 if ($what_you_meant ne $task->start) { }
97 1 1 if (my $task = 'App::TimeTracker::Data::Task'->current($self->home)) { }
1 0 elsif (my $prev = 'App::TimeTracker::Data::Task'->previous($self->home)) { }
124 0 1 if (my $task = 'App::TimeTracker::Data::Task'->current($self->home)) { }
1 0 elsif (my $prev = 'App::TimeTracker::Data::Task'->previous($self->home)) { }
148 0 0 if (my $task = 'App::TimeTracker::Data::Task'->current($self->home)) { }
0 0 elsif (my $prev = 'App::TimeTracker::Data::Task'->previous($self->home)) { }
200 0 0 $self->detail ? :
217 0 0 $self->detail ? :
255 0 0 if ($time >= 28800)
266 0 0 if (my $level = $self->detail)
269 0 0 if ($tags and @$tags) { }
279 0 0 if (my $desc = $detail->{'desc'})
283 0 0 if index($report->{$project}{$tags->[0]}{'desc'}, $desc) == -1
302 0 0 if @ancestors
303 0 0 unless @ancestors
320 0 0 if ($parent)
331 0 0 if $data->{'_total'}
332 0 0 if $data->{'_kids'}
333 0 0 unless $sum
341 0 0 if (my $detail = $self->detail)
345 0 0 if $data->{'_untagged'}
352 0 0 if ($detail eq 'description') { }
0 0 elsif ($detail eq 'tag') { }
374 0 0 unless (-e $file)
376 0 0 if ($+{'year'} and $+{'month'})
379 0 0 unless (-e $file)
399 0 2 if (-e $cwd->file('.tracker.json'))
417 2 0 if (-e $projects_file)
433 0 0 unless -f $file
434 0 0 if $file->basename eq 'Core.pm'
453 123 28 unless $method =~ /^cmd_/
460 0 2 if ($self->can('autocomplete') and $self->autocomplete) { }
606 3 1 if (my $last = $self->last) { }
1 0 elsif (my $this = $self->this) { }
620 4 0 if (my $date = $self->this || $self->last) { }