Branch Coverage

blib/lib/App/HWD/Task.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
68 45 1 if ($line =~ /$line_regex/) { }
76 31 14 if ($name =~ s/\s*\(([^)]+)\)\s*$//)
87 28 32 if /^#(\d+)$/
90 25 7 if /^((\d*\.)?\d+)h$/
91 1 6 if /^(\d+)m$/
94 4 2 if (/^(added|deleted) (\S+)$/i)
97 4 0 if $date{$type}
104 1 44 @assignees ? :
186 0 4 unless (shift())->{'work'}
187 2 3 unless (shift())->{'notes'}
191 31 14 unless (shift())->{'children'}
192 9 1 unless (shift())->{'assignees'}
196 7 2 unless my $obj = $$self{'date_added_obj'}
203 18 7 unless my $obj = $$self{'date_deleted_obj'}
218 17 7 if ($self->estimate)
219 4 13 if $self->date_deleted
224 3 4 if $child->is_todo
240 0 0 if exists $$self{$key}
338 5 2 if $self->id
354 0 8 unless $a->when cmp $b->when or $a->completed cmp $b->completed