Branch Coverage

blib/lib/WebService/HabitRPG/Task.pm
Criterion Covered Total %
branch 11 22 50.0


line true false branch
86 1 4 if $self->type ne 'daily'
90 2 2 if ($frequency eq 'weekly') { }
2 0 elsif ($frequency eq 'daily') { }
91 0 2 unless $self->repeat
98 0 2 unless $every_x
116 0 1 if ($task->type =~ /^(?:daily|todo)$/) { }
1 0 elsif ($task->type eq 'habit') { }
117 0 0 if ($task->completed) { }
0 0 elsif (not $task->active_today) { }
129 1 0 $task->{'up'} ? :
130 0 1 $task->{'down'} ? :