Branch Coverage

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


line true false branch
89 1 4 if $self->type ne 'daily'
93 2 2 if ($frequency eq 'weekly') { }
2 0 elsif ($frequency eq 'daily') { }
94 0 2 unless $self->repeat
101 0 2 unless $every_x
119 0 1 if ($task->type =~ /^(?:daily|todo)$/) { }
1 0 elsif ($task->type eq 'habit') { }
120 0 0 if ($task->completed) { }
0 0 elsif (not $task->active_today) { }
132 1 0 $task->{'up'} ? :
133 0 1 $task->{'down'} ? :