Branch Coverage

blib/lib/Web/Machine/FSM.pm
Criterion Covered Total %
branch 27 42 64.2


line true false branch
37 0 124 if ($ENV{'WM_DEBUG'})
41 0 0 $ENV{'WM_DEBUG'} eq 'diag' ? :
56 0 2579 if $DEBUG
61 1766 813 if $tracing
63 0 2575 if (not ref $result) { }
120 2455 elsif (is_status_code($result)) { }
2455 0 elsif (is_new_state($result)) { }
68 0 0 if $DEBUG
76 0 120 if $DEBUG
79 57 63 if (&is_error($$result) and not $response->body)
86 0 57 unless my $lang = 'Web::Machine::I18N'->get_handle($metadata->{'Language'} || 'en')
91 0 120 if ($DEBUG)
106 0 2455 if $DEBUG
115 0 4 if $DEBUG
117 1 3 if ($request->logger)
132 119 5 unless $request->env->{'web.machine.streaming_push'}
137 0 1 if $DEBUG
139 1 0 if ($request->logger)
145 91 33 if $tracing
162 18 13 if (ref $body eq 'ARRAY') { }
173 96 23 if (ref $body eq 'ARRAY' and not Plack::Util::status_with_no_entity_body($response->status))