Branch Coverage

src/ldns/zone.c
Criterion Covered Total %
branch 16 66 24.2


line true false branch
93 0 0 if (!ldns_zone_soa(z)) {
98 0 0 if (!zone_cuts) goto memory_error;
100 0 0 if (!addr) goto memory_error;
102 0 0 if (!glue) goto memory_error;
104 0 0 for(i = 0; i < ldns_zone_rr_count(z); i++) {
109 0 0 if (!ldns_rr_list_push_rr(addr, r)) goto memory_error;
112 0 0 if (ldns_rr_get_type(r) == LDNS_RR_TYPE_NS) {
117 0 0 if (ldns_rdf_compare(ldns_rr_owner(r),
119 0 0 if (!ldns_rr_list_push_rr(zone_cuts, r)) goto memory_error;
126 0 0 for(i = 0; i < ldns_rr_list_rr_count(zone_cuts); i++) {
130 0 0 for(j = 0; j < ldns_rr_list_rr_count(addr); j++) {
137 0 0 if (!ldns_rr_list_push_rr(glue, a)) goto memory_error;
145 0 0 if (ldns_rr_list_rr_count(glue) == 0) {
153 0 0 if (zone_cuts) {
156 0 0 if (addr) {
159 0 0 if (glue) {
171 0 1 if (!z) {
176 0 1 if (!z->_rrs) {
216 1 0 if (origin) {
218 0 1 if (!my_origin) goto error;
221 0 1 if (!my_prev) goto error;
225 0 1 if (!newzone) goto error;
227 19 1 while(!feof(fp)) {
231 1 15 if (ldns_rr_get_type(rr) == LDNS_RR_TYPE_SOA) {
232 0 1 if (soa_seen) {
242 0 1 if (!my_origin) {
249 0 15 if (!ldns_zone_push_rr(newzone, rr)) goto error;
268 1 0 if (my_origin) {
271 1 0 if (my_prev) {
274 1 0 if (z) {
283 0 0 if (my_origin) {
286 0 0 if (my_prev) {
289 0 0 if (newzone) {