Branch Coverage

blib/lib/Mojo/Weixin/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->result->is_success) { }
0 0 elsif (defined $tx) { }
114 0 0 $opt{'json'} ? :
125 0 0 if ref $_[-1] eq 'CODE'
130 0 0 if $self->ua->ioloop->is_running
132 0 0 if ($opt{'ua_connect_timeout'} or $opt{'ua_request_timeout'} or $opt{'ua_inactivity_timeout'}) { }
136 0 0 if $opt{'ua_connect_timeout'}
137 0 0 if $opt{'ua_request_timeout'}
138 0 0 if $opt{'ua_inactivity_timeout'}
147 0 0 if $opt{'ua_debug'}
149 0 0 if (defined $tx and $tx->result->is_success) { }
0 0 elsif (defined $tx) { }
150 0 0 $opt{'json'} ? :
151 0 0 if defined $cb
152 0 0 wantarray ? :
160 0 0 if defined $cb
161 0 0 wantarray ? :
167 0 0 unless $self->keep_cookie
170 0 0 unless -f $cookie_path
172 0 0 if ($@) { }
182 0 0 if ($domain and $domain ne $self->domain)
191 0 0 unless $self->keep_cookie
194 0 0 if $@
203 0 0 if (@tmp == 1 and ref $tmp[0] eq 'ARRAY') { }
210 0 0 defined $c ? :