blib/lib/XMail/Ctrl.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 46 | 0.0 |
line | l | !l | condition |
---|---|---|---|
275 | 0 | 0 | $self->last_error("Connection failed [${host}:$port] ($@)") and return 0 |
407 | 0 | 0 | $self->last_error('socket::send failed, no connection') and return 0 |
422 | 0 | 0 | $self->last_error('socket::recv failed, no connection') and return undef |
532 | 0 | 0 | $self->last_error('Unknown recv error') and return undef |
554 | 0 | 0 | $self->last_error($line || 'Unknown recv error') and return undef |
561 | 0 | 0 | $self->last_error($mode, $desc) and return undef |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
306 | 0 | 0 | 0 | defined $buf and $buf =~ /^\+/ |
340 | 0 | 0 | 0 | defined $$self{'_io'} && $$self{'_io'}->connected |
356 | 0 | 0 | 0 | $code =~ /^\d+/ and $desc |
401 | 0 | 0 | 0 | defined $$self{'_io'}->send($data) and $self->connected |
407 | 0 | 0 | 0 | $self->connect and defined $$self{'_io'}->send($data) |
422 | 0 | 0 | 0 | $self->connected and defined $$self{'_io'}->recv($buf, $bufsz || 128) |
line | l | !l | condition |
---|---|---|---|
232 | 0 | 0 | $args{'ctrlid'} || '' |
0 | 0 | $args{'ctrlpass'} || '' | |
0 | 0 | $args{'host'} || '127.0.0.1' | |
0 | 0 | $args{'port'} || 6017 | |
0 | 0 | $args{'debug'} || 0 | |
422 | 0 | 0 | $bufsz || 128 |
517 | 0 | 0 | $charge || '-' |
554 | 0 | 0 | $line || 'Unknown recv error' |