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))
127 53 0 if ($new_state ne "NOCHANGE")
152 0 53 if ($Workflow::EVAL_ERROR)
164 0 0 if ("Exception::Class"->caught("Workflow::Exception::Validation"))
179 53 0 if ($old_state ne $new_state)
184 9 44 if ($new_state_obj->autorun)
199 0 9 if (ref $item eq 'HASH') { }
9 0 elsif (ref $item and $item->isa('Workflow::History')) { }
228 6 0 if ($id) { }
229 5 1 unless ($seen_ids{$id})
263 6 21 if $id
270 0 27 exists $config->{'time_zone'} ? :
275 51 64 if $key =~ /^(type|description)$/u
276 32 32 if ref $value
295 0 322 unless ($calling_pkg =~ /^Workflow/u)
315 0 272 unless ($wf_state)
339 0 9 if ($Workflow::EVAL_ERROR) { }
342 0 0 if (not $wf_state->may_stop)