Branch Coverage

blib/lib/Org/Element/Timestamp.pm
Criterion Covered Total %
branch 29 56 51.7


line true false branch
34 0 1 unless defined $self->_is_parsed
43 18 0 if $self->_str
46 0 0 if ($self->event_duration)
55 0 0 $self->is_active ? :
0 0 defined $hour2 ? :
0 0 $self->_repeater ? :
0 0 $self->_warning_period ? :
0 0 $self->has_time ? :
0 0 $self->is_active ? :
98 0 70 unless $str =~ m(^(?<open_bracket> \[|<)
131 0 70 if $+{'open_bracket'} eq "<" and $+{'close_bracket'} eq "]" or $+{'open_bracket'} eq "[" and $+{'close_bracket'} eq ">"
133 1 13 if not $opts->{'allow_event_duration'} and $+{'event_duration'}
135 1 12 if not $opts->{'allow_repeater'} and $+{'repeater'}
137 35 33 $+{'open_bracket'} eq '<' ? :
68 0 unless defined $self->is_active
140 3 65 if ($+{'event_duration'} and not defined $self->event_duration)
148 20 48 if (defined $+{'hour'}) { }
155 1 67 if ($self->document->time_zone)
161 12 55 if ($+{'repeater'} and not $self->recurrence)
165 2 10 if ($u eq 'd') { }
3 7 elsif ($u eq 'w') { }
4 3 elsif ($u eq 'm') { }
3 0 elsif ($u eq 'y') { }
184 1 66 if ($+{'warning_period'})
187 1 0 if ($u eq 'd') { }
0 0 elsif ($u eq 'w') { }
0 0 elsif ($u eq 'm') { }
0 0 elsif ($u eq 'y') { }