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))
85 43 33 unless $Workflow::State::EVAL_ERROR
88 33 0 if "Exception::Class"->caught("Workflow::Exception")
90 0 0 if ref $Workflow::State::EVAL_ERROR
116 0 84 if ($Workflow::State::EVAL_ERROR) { }
33 51 elsif (not $rv) { }
117 0 0 if ('Exception::Class'->caught('Workflow::Exception::Condition')) { }
122 0 0 if ref $Workflow::State::EVAL_ERROR ne ""
142 53 0 unless ref $resulting_state eq "HASH"
144 0 0 if (defined $action_return) { }
156 0 9 unless ($self->autorun)
164 0 9 if (scalar @actions > 1)
168 0 9 if (scalar @actions == 0)
178 138 83 if (defined $setting)
179 9 129 if ($setting =~ /^(true|1|yes)$/i) { }
190 138 0 if (defined $setting)
191 0 138 if ($setting =~ /^(true|1|yes)$/i) { }
224 9 129 if ($config->{'autorun'}) { }
229 0 138 if ($config->{'may_stop'}) { }
247 0 20 if (not $map->{'state'} && defined $map->{'return'}) { }
0 20 elsif ($new_resulting{$map->{'return'}}) { }
258 0 10 if (scalar @errors)
270 10 143 if (my $resulting_type = ref $resulting)
271 10 0 if ($resulting_type eq "ARRAY")
284 0 153 unless ($action_config->{'resulting_state'})
317 16 72 if ($condition_info->{'test'}) { }
340 0 192 unless ($self->contains_action($action_name))