Branch Coverage

blib/lib/WWW/Xunlei.pm
Criterion Covered Total %
branch 23 40 57.5


line true false branch
61 0 3 if ($res->{'rtn'} != 0)
70 1 2 wantarray ? :
79 0 1 unless @downloaders
106 0 0 if ($self->_is_session_expired) { }
113 0 0 if $res != 0
154 2 1 unless $session_expired_time
210 2 3 unless $cookie_file
212 1 2 unless (-d $cookie_path)
230 0 9 $data ? :
235 0 9 unless $self->_is_logged_in
237 0 9 if ($res->{'rtn'} != 0)
250 13 0 if ($parameters)
254 1 12 if ($method ne 'GET' and not $postdata) { }
261 0 12 if (ref $postdata)
271 0 13 unless $response->is_success
278 4 9 unless length $content
280 9 0 if $content =~ /\s*[\[\{\"]/
297 1 0 unless ($pass =~ /^[0-9a-f]{32}$/i)
306 0 27 if ($DEBUG)
307 0 0 if (ref $message)