Branch Coverage

lib/AnyEvent/SMTP/Client.pm
Criterion Covered Total %
branch 30 66 45.4


line true false branch
40 40 44 exists $MAXCON{$host} ? :
42 42 48 if (my $cb = shift @{$CO_SLOT{$host}[1];}) { }
49 14 28 unless --$ACTIVE{$host} > 0
56 5 43 unless $CO_SLOT{$host}[0]
227 1 0 unless @_
229 0 0 if ($_ eq 'sendmail') { }
243 0 42 if ($args{'server'})
245 0 0 unless $args{'host'} = $h
246 0 0 if defined $p
252 42 0 if $args{'cv'}
257 1 41 defined $err ? :
258 42 0 if $args{'cv'}
263 0 42 ref $args{'to'} ? :
267 0 42 if $args{'debug'}
271 41 1 if $con
274 0 42 if (@rcpt > 1) { }
276 0 0 if ($_[0]) { }
290 1 41 unless my $fh = shift()
295 0 0 unless $con
300 0 41 unless shift()
302 0 41 unless shift()
304 0 41 unless shift()
310 0 41 unless shift()
313 0 41 unless my $reply = shift()
322 0 41 unless shift()
332 0 42 unless $args{'timeout'}
336 42 0 if ($args{'host'}) { }
340 0 0 $args{'timeout'} ? :
351 0 0 if ($AnyEvent::VERSION > 6) { }
356 0 0 if $args{'debug'}
357 0 0 if (@_) { }
360 0 0 if (@rcpt > 1) { }
374 0 42 defined wantarray ? :