Branch Coverage

blib/lib/Mojo/Weixin/Client.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
18 0 0 if $self->login_state eq 'success'
19 0 0 if ($self->is_first_login == -1) { }
0 0 elsif ($self->is_first_login == 1) { }
34 0 0 if ($ret and $self->login_state eq 'success' and $self->model_init) { }
35 0 0 $ret == 2 ? :
50 0 0 if (defined $self->_synccheck_connection_id)
56 0 0 if $@
90 0 0 defined $retcode ? :
109 0 0 if defined $plugins->{$_}{'auto_call'}
115 0 0 if $self->login_state ne 'success'
121 0 0 unless ($status)
131 0 0 $status ? :
148 0 0 unless $self->is_ready
150 0 0 unless $self->ioloop->is_running
154 0 0 unless 'Mojo::IOLoop'->singleton->is_running
159 0 0 unless defined $self->qrcode_path
160 0 0 unless -f $self->qrcode_path
162 0 0 unless unlink $self->qrcode_path
180 0 0 defined $code ? :
196 0 0 $is_blocking ? :
197 0 0 if defined $opt{'max_forks'}
199 0 0 if $is_blocking
207 0 0 if (ref $_[-1] eq 'CODE')
229 0 0 if ($@)
239 0 0 if defined $opt{$_}
241 0 0 if $new{'port'} == 465 and not defined $new{'tls'}
243 0 0 unless (defined $smtp)
248 0 0 if (defined $opt{'data'}) { }
252 0 0 if defined $opt{'cc'}
254 0 0 defined $opt{'charset'} ? :
256 0 0 if (defined $opt{'text'}) { }
0 0 elsif (defined $opt{'html'}) { }
264 0 0 if (defined $callback) { }
273 0 0 if ($resp->error) { }
275 0 0 if ref $callback eq 'CODE'
280 0 0 if ref $callback eq 'CODE'
295 0 0 $@ ? :
307 0 0 unless $self->pid_path
309 0 0 if (not -f $self->pid_path) { }
314 0 0 if ($pid =~ /^\d+$/ and kill 0, $pid) { }
328 0 0 if $@
335 0 0 unless defined $self->pid_path
336 0 0 unless -f $self->pid_path
338 0 0 unless unlink $self->pid_path
384 0 0 if $@
390 0 0 if (substr($plugin, 0, 1) eq '+') { }
402 0 0 if ($^O ne 'MSWin32' and defined $self->controller_pid)
403 0 0 if ($once) { }
411 0 0 if ($ppid =~ /^\d+$/ and $ppid == 1 or $ppid != $self->controller_pid)
421 0 0 unless $self->is_fetch_notice
424 0 0 if ($notice)