Branch Coverage

blib/lib/Mail/vpopmail.pm
Criterion Covered Total %
branch 0 126 0.0


line true false branch
197 0 0 unless defined $_arg{'cache'}
198 0 0 unless defined $_arg{'debug'}
201 0 0 unless -d $vpopdir
203 0 0 if (open MYSQL, "$vpopdir/etc/vpopmail.mysql") { }
0 0 elsif ($_arg{'auth_module'} eq 'sql') { }
209 0 0 if $dbport
216 0 0 unless defined $_arg{'dsn'}
218 0 0 unless defined $_arg{'dbun'}
219 0 0 unless defined $_arg{'dbpw'}
224 0 0 if ($_arg{'auth_module'} eq 'sql')
225 0 0 unless ($HAVE_DBI)
240 0 0 $_cache{'dbh'} ? :
242 0 0 unless ($dbh)
245 0 0 if ($_arg{'cache'})
246 0 0 unless $_cache{'dbh'}
253 0 0 if (my $domain = shift()) { }
254 0 0 if $_cache{$domain}{'dir'}
257 0 0 if (open ASSIGN, '/var/qmail/users/assign') { }
260 0 0 if (/^\+$domain\-:[^:]+:\d+:\d+:([^:]+):-:/)
267 0 0 if (defined $dir) { }
268 0 0 if $_arg{'cache'}
271 0 0 if $_arg{'debug'}
274 0 0 if $_arg{'debug'}
277 0 0 if $_arg{'debug'}
285 0 0 unless (exists $arg{'email'} and exists $arg{'field'})
286 0 0 if ($_arg{'debug'})
292 0 0 if $_arg{'debug'}
294 0 0 if (defined $user and defined $domain) { }
298 0 0 if ($arg{'field'} eq 'dir') { }
301 0 0 if (exists $_cache{$arg{'email'}}{'crypt'}) { }
302 0 0 if $_arg{'debug'}
308 0 0 if ($_arg{'auth_module'} eq 'cdb') { }
309 0 0 if (open VPASSWD, "$dir/vpasswd") { }
312 0 0 if (/^$user:([^:]+):(\d+):(\d+):([^:]*):([^:]+):([^:]+)(:([^:]+))?/)
321 0 0 if $_arg{'debug'}
333 0 0 if exists $uhash{'crypt'}
335 0 0 if ($found) { }
336 0 0 if ($_arg{'cache'})
346 0 0 if $_arg{'debug'}
350 0 0 @return == 1 ? :
352 0 0 if $_arg{'debug'}
360 0 0 unless ($arg{'field'} eq 'name' or $arg{'field'} eq 'dir' or $arg{'field'} eq 'map')
361 0 0 if ($_arg{'debug'})
368 0 0 if (open ASSIGN, '/var/qmail/users/assign') { }
371 0 0 if (/^\+([^:]+)\-:[^:]+:\d+:\d+:([^:]+):-:/)
372 0 0 if ($arg{'field'} eq 'map') { }
0 0 elsif ($arg{'field'} eq 'dir') { }
384 0 0 if $_arg{'debug'}
393 0 0 if (exists $arg{'domain'} and exists $arg{'field'}) { }
394 0 0 unless ($arg{'field'} eq 'mailboxes' or $arg{'field'} eq 'all' or $arg{'field'} eq 'dir')
395 0 0 if $_arg{'debug'}
399 0 0 if ($_arg{'debug'})
405 0 0 exists $_cache{$arg{'domain'}}{'dir'} ? :
406 0 0 if $_arg{'debug'}
408 0 0 if ($arg{'field'} eq 'dir')
413 0 0 if ($_arg{'auth_module'} eq 'cdb') { }
414 0 0 if (open VPASSWD, "$hash{'dir'}/vpasswd") { }
417 0 0 if (/^([^:]+):([^:]+):(\d+):(\d+):([^:]*):([^:]+):([^:]+)(:([^:]+))?/)
421 0 0 if ($arg{'field'} eq 'mailboxes') { }
427 0 0 if ($_arg{'cache'})
437 0 0 if $_arg{'debug'}
443 0 0 if $arg{'field'} eq 'all'
448 0 0 if ($arg{'field'} eq 'mailboxes') { }