Branch Coverage

blib/lib/App/HWD/Task.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
40 44 1 if ($line =~ /$line_regex/) { }
47 30 14 if ($name =~ s/\s*\(([^)]+)\)\s*$//)
58 27 29 if /^#(\d+)$/
61 24 5 if /^((\d*\.)?\d+)h$/
62 1 4 if /^(\d+)m$/
65 4 0 if (/^(added|deleted) (\S+)$/i)
68 4 0 if $date{$type}
175 0 4 unless (shift())->{'work'}
176 2 3 unless (shift())->{'notes'}
180 31 14 unless (shift())->{'children'}
184 6 2 unless my $obj = $$self{'date_added_obj'}
191 17 7 unless my $obj = $$self{'date_deleted_obj'}
206 16 7 if ($self->estimate)
207 4 12 if $self->date_deleted
212 3 4 if $child->is_todo
228 0 0 if exists $$self{$key}
326 5 2 if $self->id
342 0 8 unless $a->when cmp $b->when or $a->completed cmp $b->completed