Branch Coverage

blib/lib/Mojo/Webqq/Client.pm
Criterion Covered Total %
branch 0 156 0.0


line true false branch
27 0 0 unless $self->is_ready
29 0 0 unless $self->ioloop->is_running
42 0 0 if $self->is_stop
56 0 0 if defined $plugins->{$_}{'auto_call'}
62 0 0 if $self->login_state ne 'success'
63 0 0 if $self->get_model_status == 0
66 0 0 if $self->is_stop
67 0 0 unless $self->is_update_group
73 0 0 if $self->is_stop
74 0 0 unless $self->is_update_discuss
81 0 0 if $self->is_stop
82 0 0 unless $self->is_update_friend
89 0 0 if $self->is_stop
90 0 0 unless $self->is_update_user
119 0 0 if (defined $self->poll_connection_id)
125 0 0 if $@
152 0 0 if ($self->_get_vfwebqq and $self->_login2) { }
162 0 0 if $self->login_state eq 'success'
165 0 0 defined $p{'delay'} ? :
166 0 0 if ($self->is_first_login == -1) { }
0 0 elsif ($self->is_first_login == 1) { }
172 0 0 if ($self->is_first_login)
176 0 0 if defined $ptwebqq
177 0 0 if defined $skey
180 0 0 if ($self->_prepare_for_login and $self->_check_login) { }
181 0 0 unless ($self->_check_sig and $self->_get_vfwebqq and $self->_login2)
188 0 0 if ($self->login_type eq 'login')
196 0 0 if ($ret == 1) { }
206 0 0 if ($self->login_type eq 'qrlogin' and $self->_check_verify_code and $self->_get_img_verify_code and $self->_get_qrlogin_pic)
226 0 0 if ($ret == -4) { }
0 0 elsif ($ret == -5) { }
0 0 elsif ($ret == -3 or $ret == -6) { }
0 0 elsif ($ret == 1) { }
241 0 0 if $self->_check_sig and $self->_get_vfwebqq
254 0 0 if ($self->login_state ne 'success') { }
261 0 0 $self->login_type eq 'qrlogin' ? :
263 0 0 unless defined $self->model_ext
266 0 0 if $self->is_init_friend
267 0 0 if $self->is_init_group
268 0 0 if $self->is_init_discuss
278 0 0 if (ref $_[-1] eq 'CODE')
300 0 0 if ($@)
310 0 0 if defined $opt{$_}
312 0 0 if $new{'port'} == 465 and not defined $new{'tls'}
314 0 0 unless (defined $smtp)
319 0 0 if (defined $opt{'data'}) { }
323 0 0 if defined $opt{'cc'}
325 0 0 defined $opt{'charset'} ? :
327 0 0 if (defined $opt{'text'}) { }
0 0 elsif (defined $opt{'html'}) { }
335 0 0 if (defined $callback) { }
344 0 0 if ($resp->error) { }
346 0 0 if ref $callback eq 'CODE'
351 0 0 if ref $callback eq 'CODE'
366 0 0 $@ ? :
376 0 0 $is_blocking ? :
377 0 0 if defined $opt{'max_forks'}
379 0 0 if $is_blocking
384 0 0 unless defined $self->qrcode_path
385 0 0 unless -f $self->qrcode_path
387 0 0 unless unlink $self->qrcode_path
391 0 0 unless defined $self->verifycode_path
392 0 0 unless -f $self->verifycode_path
394 0 0 unless unlink $self->verifycode_path
405 0 0 unless $self->pid_path
407 0 0 if (not -f $self->pid_path) { }
412 0 0 if ($pid =~ /^\d+$/ and kill 0, $pid) { }
421 0 0 if $@
428 0 0 unless defined $self->pid_path
429 0 0 unless -f $self->pid_path
431 0 0 unless unlink $self->pid_path
473 0 0 if $@
479 0 0 if (substr($plugin, 0, 1) eq '+') { }
491 0 0 if ($^O ne 'MSWin32' and defined $self->controller_pid)
492 0 0 if ($once) { }
500 0 0 if ($ppid =~ /^\d+$/ and $ppid == 1 or $ppid != $self->controller_pid)
510 0 0 unless $self->is_fetch_notice
513 0 0 if ($notice)