Branch Coverage

blib/lib/Mojo/Webqq/Request.pm
Criterion Covered Total %
branch 0 100 0.0


line true false branch
11 0 0 unless defined $key
12 0 0 unless defined $val
25 0 0 unless defined $key
26 0 0 unless defined $val
42 0 0 unless $opt->{'ua_debug'}
43 0 0 $is_blocking ? :
45 0 0 if ($opt->{'ua_debug_req_body'}) { }
47 0 0 if (defined $req_content_type and $req_content_type =~ m[^multipart/form-data; boundary=(.+?)$]) { }
51 0 0 if ($filename_pos != -1)
53 0 0 if ($binary_start_pos != -1)
55 0 0 if $binary_end_pos != -1
69 0 0 if ($opt->{'ua_debug_res_body'}) { }
71 0 0 if (defined $res_content_type and $res_content_type =~ m[^(image|video|auido)/|^application/octet-stream]) { }
96 0 0 if (ref $_[1] eq 'HASH')
97 0 0 if defined $_[1]{'json'}
98 0 0 if defined $_[1]{'blocking'}
99 0 0 if defined $_[1]{'ua_retry_times'}
100 0 0 if defined $_[1]{'ua_debug'}
101 0 0 if defined $_[1]{'ua_debug_res_body'}
102 0 0 if defined $_[1]{'ua_debug_req_body'}
103 0 0 if defined $_[1]{'ua_connect_timeout'}
104 0 0 if defined $_[1]{'ua_request_timeout'}
105 0 0 if defined $_[1]{'ua_inactivity_timeout'}
107 0 0 if (ref $_[-1] eq 'CODE' and not $opt{'blocking'}) { }
111 0 0 if $opt{'ua_debug'}
113 0 0 if (defined $tx and $tx->res->is_success) { }
0 0 elsif (defined $tx) { }
114 0 0 $opt{'json'} ? :
118 0 0 unless ($tx->req->url->host eq 'd1.web2.qq.com' and $tx->req->url->path eq '/channel/poll2' and &first(sub { $tx->res->code == $_; } , @{$self->ignore_poll_http_code;}))
130 0 0 if ref $_[-1] eq 'CODE'
135 0 0 if $self->ua->ioloop->is_running
137 0 0 if ($opt{'ua_connect_timeout'} or $opt{'ua_request_timeout'} or $opt{'ua_inactivity_timeout'}) { }
141 0 0 if $opt{'ua_connect_timeout'}
142 0 0 if $opt{'ua_request_timeout'}
143 0 0 if $opt{'ua_inactivity_timeout'}
152 0 0 if $opt{'ua_debug'}
154 0 0 if (defined $tx and $tx->res->is_success) { }
0 0 elsif (defined $tx) { }
155 0 0 $opt{'json'} ? :
156 0 0 if defined $cb
157 0 0 wantarray ? :
165 0 0 if defined $cb
166 0 0 wantarray ? :
172 0 0 unless $self->keep_cookie
175 0 0 unless -f $cookie_path
177 0 0 if ($@) { }
188 0 0 unless $self->keep_cookie
191 0 0 if $@
199 0 0 if (@tmp == 1 and ref $tmp[0] eq 'ARRAY') { }
206 0 0 defined $c ? :