Branch Coverage

blib/lib/Class/DBI/Replicated.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
75 0 0 unless @_
77 0 0 if ($db_name =~ /^Slave_/)
113 0 0 if ($$arg{'user'})
123 0 0 if (not @slaves or @slaves % 2)
127 0 0 if ($$arg{'user'})
138 0 0 ref $dsn eq 'HASH' ? :
140 0 0 if ($$arg{'user'})
148 0 0 unless ($class->replication_db)
164 0 0 $class->__force_master ? :
205 0 0 unless $class->__repl_user
223 0 0 if $class->replication_db eq 'Master'
256 0 0 if $err
341 0 0 unless defined $$arg{'timeout'}
349 0 0 if ($tries >= $$arg{'timeout'} and not $done)
350 0 0 if $$arg{'fatal'}
354 0 0 unless ($class->replication_db eq "Slave_$$arg{'slave'}")
363 0 0 unless defined $class->repl_pos
371 0 0 if ($$arg{'slave'} eq $class->__slave_db) { }
381 0 0 if ($slave_pos and $class->repl_compare($slave_pos, $class->repl_pos))
439 0 0 if $class->__replication_std_triggers