Branch Coverage

blib/lib/SockJS/Transport/JSONPSend.pm
Criterion Covered Total %
branch 14 16 87.5


line true false branch
22 1 6 unless $conn->is_connected
25 2 4 if $data and ref $data eq 'ARRAY'
30 1 3 unless (eval { do { $message = $json->decode($data) } })
34 3 0 if ($message and ref $message eq 'ARRAY')
55 1 5 unless $rcount == $content_length
60 1 4 if ($env->{'CONTENT_TYPE'} and $env->{'CONTENT_TYPE'} eq 'application/x-www-form-urlencoded') { }
65 1 0 if defined $d
71 1 4 unless length $d