Branch Coverage

blib/lib/PowerDNS/Backend/MySQL.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
130 0 0 defined $$params{'db_user'} ? :
131 0 0 defined $$params{'db_pass'} ? :
132 0 0 defined $$params{'db_name'} ? :
133 0 0 defined $$params{'db_port'} ? :
134 0 0 defined $$params{'db_host'} ? :
136 0 0 defined $$params{'lock_name'} ? :
137 0 0 defined $$params{'lock_timeout'} ? :
139 0 0 $$params{'mysql_print_error'} ? :
140 0 0 $$params{'mysql_warn'} ? :
141 0 0 $$params{'mysql_auto_commit'} ? :
143 0 0 $$params{'mysql_auto_reconnect'} ? :
163 0 0 if (defined $$self{'dbh'})
165 0 0 unless delete $$self{'dbh'}
179 0 0 unless ($sth->execute)
197 0 0 unless ($sth->execute)
219 0 0 if ($sth->execute($$domain) != 1)
237 0 0 if ($sth->execute($$domain) != 1)
258 0 0 if ($self->domain_exists($domain)) { }
261 0 0 if ($sth->execute($$master, $$domain) != 1)
266 0 0 if ($sth->execute($$domain, $$master) != 1)
286 0 0 if ($sth->execute($$domain) != 1)
374 0 0 unless $sth->execute($$domain)
378 0 0 scalar @record ? :
446 0 0 if (not defined $ttl or $ttl eq '')
447 0 0 if (not defined $prio or $prio eq '')
450 0 0 unless ($self->_lock)
457 0 0 if ($sth->execute($name, $type, $content, $ttl, $prio, $$domain) <= 0)
487 0 0 unless ($self->_lock)
499 0 0 $rv > 0 ? :
531 0 0 if (not defined $ttl or $ttl eq '')
532 0 0 if (not defined $prio or $prio eq '')
535 0 0 unless ($self->_lock)
547 0 0 $rv > 0 ? :
583 0 0 if (not defined $ttl or $ttl eq '')
584 0 0 if (not defined $prio or $prio eq '')
587 0 0 unless ($self->_lock)
600 0 0 $rv > 0 ? :
632 0 0 if (not defined $ttl or $ttl eq '')
633 0 0 if (not defined $prio or $prio eq '')
636 0 0 unless ($self->_lock)
644 0 0 unless ($sth->execute($name1, $type1, $$domain))
652 0 0 if ($count == 0) { }
655 0 0 if ($sth->execute($name2, $type2, $content2, $ttl, $prio, $$domain) <= 0)
664 0 0 if ($sth->execute($name2, $type2, $content2, $ttl, $prio, $name1, $type1, $$domain) <= 0)
734 0 0 if ($sth->execute($$domain) != 1)
753 0 0 if ($sth->execute($$domain) != 1)
817 0 0 unless ($self->_lock)
824 0 0 unless ($sth->execute($$domain))
833 0 0 unless ($soa)
842 0 0 if ($soa_date != $now_date) { }
856 0 0 if ($sth->execute($new_soa, $$domain) <= 0)