Branch Coverage

blib/lib/Workflow/State.pm
Criterion Covered Total %
branch 30 54 55.5


line true false branch
62 0 67 if ($group)
65 0 0 if (defined $action_config->{'group'} and $action_config->{'group'} ne $group)
71 39 28 if ($self->is_action_available($wf, $action_name))
99 28 41 unless ($rv)
101 0 28 if $self->log->is_debug
117 36 0 unless ref $resulting_state eq "HASH"
119 0 0 unless defined $action_return
122 0 0 if ref $action_return ne ""
125 0 0 if $resulting_state->{$action_return}
127 0 0 if $resulting_state->{'*'}
138 0 5 unless ($self->autorun)
146 0 5 if (scalar @actions > 1)
150 0 5 if (scalar @actions == 0)
160 162 69 if (defined $setting)
161 5 157 if ($setting =~ /^(true|1|yes)$/iu) { }
172 162 5 if (defined $setting)
173 0 162 if ($setting =~ /^(true|1|yes)$/iu) { }
206 5 157 if ($config->{'autorun'}) { }
211 0 162 if ($config->{'may_stop'}) { }
229 0 28 if (not $map->{'state'} && defined $map->{'return'}) { }
0 28 elsif ($new_resulting{$map->{'return'}}) { }
240 0 14 if (scalar @errors)
252 14 151 if (my $resulting_type = ref $resulting)
253 14 0 if ($resulting_type eq "ARRAY")
266 0 165 unless ($action_config->{'resulting_state'})
299 20 78 if ($condition_info->{'test'}) { }
322 0 149 unless ($self->contains_action($action_name))