Branch Coverage

blib/lib/Text/Todo/Entry.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
39 1 1 if (not ref $options) { }
0 1 elsif (ref $options ne 'HASH') { }
51 1 1 if (exists $$options{'tags'} and ref $$options{'tags'} eq 'HASH')
76 0 36 unless defined $$known_tags{$tag}
77 0 36 unless length $$known_tags{$tag}
99 16 1 unless ($completed)
103 1 0 if ($completed =~ s/(x)\s*//imsx)
105 1 0 if ($completed) { }
120 10 1 defined $text ? :
135 6 0 unless ($self->can($tag . 's'))
142 6 0 unless ($self->can('in_' . $tag))
157 35 0 if (defined $tags_of{$ident}{$tag})
160 35 0 wantarray ? :
165 0 20 unless defined $item
167 11 16 if $_ eq $item
176 0 2 unless ($new_pri =~ /^[a-zA-Z]?$/msx)
193 1 3 if ($self->done)
194 1 0 unless ($self->done =~ /^x/imsx)
200 2 2 if ($self->priority)
204 1 3 if (defined $addition and length $addition)
222 0 1 if ($self->done)