Branch Coverage

blib/lib/Web/Machine/FSM.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
51 0 2556 if $DEBUG
52 1766 790 if $tracing
54 0 2552 if (not ref $result) { }
119 2433 elsif (is_status_code($result)) { }
2433 0 elsif (is_new_state($result)) { }
59 0 0 if $DEBUG
66 0 119 if $DEBUG
69 57 62 if (is_error $$result and not $response->body)
75 0 57 unless my $lang = 'Web::Machine::I18N'->get_handle($$metadata{'Language'} || 'en')
81 0 119 if ($DEBUG)
91 0 2433 if $DEBUG
99 0 4 if $DEBUG
101 1 3 if ($request->logger)
115 118 5 unless $request->env->{'web.machine.streaming_push'}
121 0 1 if $DEBUG
123 1 0 if ($request->logger)
129 91 32 if $tracing
146 18 13 if (ref $body eq 'ARRAY') { }
157 95 23 if (ref $body eq 'ARRAY' and not Plack::Util::status_with_no_entity_body($response->status))