Branch Coverage

lib/Workflow.pm
Criterion Covered Total %
branch 29 46 63.0


line true false branch
29 5 5 unless ($self->_observers)
40 187 9 unless $self->_observers
53 27 245 if ($context)
58 0 27 if ($self->{'context'}) { }
65 0 272 unless ($self->{'context'})
86 0 60 unless ($wf_state->contains_action($action_name))
126 53 0 if ($new_state ne "NOCHANGE")
151 0 53 if ($Workflow::EVAL_ERROR)
163 0 0 if ("Exception::Class"->caught("Workflow::Exception::Validation"))
178 53 0 if ($old_state ne $new_state)
183 9 44 if ($new_state_obj->autorun)
198 0 9 if (ref $item eq 'HASH') { }
9 0 elsif (ref $item and $item->isa('Workflow::History')) { }
227 6 0 if ($id) { }
228 5 1 unless ($seen_ids{$id})
262 6 21 if $id
269 0 27 exists $config->{'time_zone'} ? :
274 51 64 if $key =~ /^(type|description)$/u
275 32 32 if ref $value
294 0 322 unless ($calling_pkg =~ /^Workflow/u)
314 0 272 unless ($wf_state)
336 0 9 if ($Workflow::EVAL_ERROR) { }
339 0 0 if (not $wf_state->may_stop)