Branch Coverage

lib/Workflow/State.pm
Criterion Covered Total %
branch 32 58 55.1


line true false branch
63 0 76 if ($group)
66 0 0 if (defined $action_config->{'group'} and $action_config->{'group'} ne $group)
72 43 33 if ($self->is_action_available($wf, $action_name))
84 43 33 unless $Workflow::State::EVAL_ERROR
87 33 0 if "Exception::Class"->caught("Workflow::Exception")
89 0 0 if ref $Workflow::State::EVAL_ERROR
114 0 84 if ($Workflow::State::EVAL_ERROR) { }
33 51 elsif (not $rv) { }
115 0 0 if ('Exception::Class'->caught('Workflow::Exception::Condition')) { }
120 0 0 if ref $Workflow::State::EVAL_ERROR ne ""
140 53 0 unless ref $resulting_state eq "HASH"
142 0 0 if (defined $action_return) { }
154 0 9 unless ($self->autorun)
162 0 9 if (scalar @actions > 1)
166 0 9 if (scalar @actions == 0)
176 138 83 if (defined $setting)
177 9 129 if ($setting =~ /^(true|1|yes)$/i) { }
188 138 0 if (defined $setting)
189 0 138 if ($setting =~ /^(true|1|yes)$/i) { }
222 9 129 if ($config->{'autorun'}) { }
227 0 138 if ($config->{'may_stop'}) { }
245 0 20 if (not $map->{'state'} && defined $map->{'return'}) { }
0 20 elsif ($new_resulting{$map->{'return'}}) { }
256 0 10 if (scalar @errors)
268 10 143 if (my $resulting_type = ref $resulting)
269 10 0 if ($resulting_type eq "ARRAY")
282 0 153 unless ($action_config->{'resulting_state'})
315 16 72 if ($condition_info->{'test'}) { }
338 0 192 unless ($self->contains_action($action_name))