Branch Coverage

blib/lib/Text/Todo/Entry.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
39 36 9 if (not ref $options) { }
0 9 elsif (ref $options ne 'HASH') { }
51 9 36 if (exists $$options{'tags'} and ref $$options{'tags'} eq 'HASH')
76 0 278 unless defined $$known_tags{$tag}
77 0 278 unless length $$known_tags{$tag}
99 139 16 unless ($completed)
103 16 0 if ($completed =~ s/(x)\s*//imsx)
105 5 11 if ($completed) { }
120 53 1 defined $text ? :
135 11 90 unless ($self->can($tag . 's'))
142 11 90 unless ($self->can('in_' . $tag))
157 105 0 if (defined $tags_of{$ident}{$tag})
160 105 0 wantarray ? :
165 0 26 unless defined $item
167 12 18 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)