Branch Coverage

src/ldns/update.c
Criterion Covered Total %
branch 0 76 0.0


line true false branch
32 0 0 if (!zone_rdf || !up_rrlist) {
0 0 if (!zone_rdf || !up_rrlist) {
36 0 0 if (c == 0) {
42 0 0 if (!p) {
55 0 0 if (pr_rrlist) {
61 0 0 if (ad_rrlist) {
74 0 0 if (ldns_resolver_tsig_keyname(r) && ldns_resolver_tsig_keydata(r))
0 0 if (ldns_resolver_tsig_keyname(r) && ldns_resolver_tsig_keydata(r))
99 0 0 if (!query) {
104 0 0 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) {
109 0 0 if (!resp) {
115 0 0 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_answer(resp)))) {
116 0 0 if (ldns_rr_get_type(soa_rr) != LDNS_RR_TYPE_SOA
117 0 0 || ldns_rr_rdf(soa_rr, 0) == NULL)
125 0 0 return *mname ? LDNS_STATUS_OK : LDNS_STATUS_ERR;
149 0 0 if (!query) {
155 0 0 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) {
160 0 0 if (!resp) {
165 0 0 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_authority(resp)))) {
166 0 0 if (ldns_rr_get_type(soa_rr) != LDNS_RR_TYPE_SOA
167 0 0 || ldns_rr_rdf(soa_rr, 0) == NULL)
174 0 0 if (!soa_rr) {
180 0 0 if (!query) {
186 0 0 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) {
191 0 0 if (!resp) {
195 0 0 if (ldns_pkt_ancount(resp) == 0) {
205 0 0 if (!(tmp_r = ldns_resolver_clone(r))) {
209 0 0 for (i = 0; i < ldns_resolver_nameserver_count(tmp_r); i++) {
210 0 0 if (ldns_rdf_compare(ipaddr, nslist[i]) == 0) {
211 0 0 if (i) {
219 0 0 if (i >= ldns_resolver_nameserver_count(tmp_r)) {
236 0 0 if (!query) {
243 0 0 if (ldns_resolver_send_pkt(&resp, tmp_r, query) != LDNS_STATUS_OK) {
250 0 0 if (!resp) {
255 0 0 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_authority(resp)))) {
256 0 0 if (ldns_rr_get_type(soa_rr) != LDNS_RR_TYPE_SOA
257 0 0 || ldns_rr_rdf(soa_rr, 0) == NULL)
265 0 0 if (!soa_rr) {