Branch Coverage

blib/lib/Workflow.pm
Criterion Covered Total %
branch 34 48 70.8


line true false branch
29 36 19 unless ($self->_observers)
40 28 253 unless $self->_observers
63 36 195 if ($context)
68 0 36 if ($self->{'context'}) { }
75 0 231 unless ($self->{'context'})
103 0 43 unless ($wf_state->contains_action($action_name))
126 0 5 if $self->log->is_info
132 0 5 if ($wf_state->may_stop) { }
142 5 0 if ($action_name)
143 0 5 if $self->log->is_debug
159 1 4 unless $running
166 1 58 if not $running and $run_notified
191 37 1 if (ref $item eq 'HASH') { }
0 1 elsif (ref $item and $item->isa($history)) { }
221 5 0 if (defined $id) { }
222 5 0 unless ($seen_ids{$id})
234 6 0 if (defined $id) { }
235 3 3 unless ($seen_ids{$id})
269 8 28 if $id
276 0 36 exists $config->{'time_zone'} ? :
282 105 82 if $key =~ /^(type|description|history_class)$/u
283 41 41 if ref $value
302 0 460 unless ($calling_pkg =~ /^Workflow/u)
415 0 211 unless ($wf_state)