Condition Coverage

blib/lib/XMail/Ctrl.pm
Criterion Covered Total %
condition 0 46 0.0


and 2 conditions

line l !l condition
69 0 0 $self->last_error("Connection failed [${host}:$port] ($@)") and return 0
202 0 0 $self->last_error('socket::send failed, no connection') and return 0
217 0 0 $self->last_error('socket::recv failed, no connection') and return
327 0 0 $self->last_error('Unknown recv error') and return
349 0 0 $self->last_error($line || 'Unknown recv error') and return
356 0 0 $self->last_error($mode, $desc) and return

and 3 conditions

line !l l&&!r l&&r condition
100 0 0 0 defined $buf and $buf =~ /^\+/
134 0 0 0 defined $$self{'_io'} && $$self{'_io'}->connected
150 0 0 0 $code =~ /^\d+/ and $desc
196 0 0 0 defined $$self{'_io'}->send($data) and $self->connected
202 0 0 0 $self->connect and defined $$self{'_io'}->send($data)
217 0 0 0 $self->connected and defined $$self{'_io'}->recv($buf, $bufsz || 128)

or 2 conditions

line l !l condition
26 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
217 0 0 $bufsz || 128
312 0 0 $charge || '-'
349 0 0 $line || 'Unknown recv error'