Branch Coverage

src/ldns/rdata.c
Criterion Covered Total %
branch 30 140 21.4


line true false branch
75 0 49 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_BYTE) {
89 0 25 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_WORD) {
103 0 10 if (ldns_rdf_size(rd) != LDNS_RDF_SIZE_DOUBLEWORD) {
136 0 0 if (!rdf_data) {
141 0 0 if(!rdf)
151 0 0 if (!rdf_data) {
156 0 0 if(!rdf)
166 0 0 if (!rdf_data) {
172 0 0 if(!rdf)
183 0 617 if (!rd) {
198 0 1818 if (size > LDNS_MAX_RDFLEN) {
204 0 1818 if (!rdf) {
208 0 1818 if (!rdf->_data) {
232 2425 106 if (rd) {
233 2425 0 if (rd->_data) {
243 0 0 if (rd) {
369 236 9 if (LDNS_STATUS_OK == status) {
373 0 9 if (rdf) {
393 0 0 if (!line) {
398 0 0 if ((t = ldns_fget_token_l(fp, line, LDNS_PARSE_SKIP_SPACE, 0, line_nr)) == -1 || t == 0) {
0 0 if ((t = ldns_fget_token_l(fp, line, LDNS_PARSE_SKIP_SPACE, 0, line_nr)) == -1 || t == 0) {
404 0 0 if (rdf) {
444 0 2 if (!in_addr) {
450 0 2 if (!rev) {
457 0 2 if (!char_dname) {
464 0 2 if (!ret_dname) {
477 0 0 for (nbit = 127; nbit >= 0; nbit = nbit - 4) {
493 0 0 if (!char_dname) {
499 0 0 for (i = 0, j = 0; i < LDNS_IP6ADDRLEN * 2; i++, j = j + 2) {
501 0 0 if (i != LDNS_IP6ADDRLEN * 2 - 1) {
506 0 0 if (!in_addr) {
514 0 0 if (!ret_dname) {
538 0 0 if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
0 0 if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
0 0 if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
0 0 if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
0 0 if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
0 0 if (! rdf || ! alg || ! hit || ! hit_size || ! pk || ! pk_size) {
540 0 0 } else if (ldns_rdf_get_type(rdf) != LDNS_RDF_TYPE_HIP) {
542 0 0 } else if ((rdf_size = ldns_rdf_size(rdf)) < 6) {
551 0 0 if (*hit_size == 0 || *pk_size == 0 ||
0 0 if (*hit_size == 0 || *pk_size == 0 ||
0 0 if (*hit_size == 0 || *pk_size == 0 ||
565 0 0 if (! rdf) {
568 0 0 if (4 + hit_size + pk_size > LDNS_MAX_RDFLEN) {
572 0 0 if (data == NULL) {
581 0 0 if (! *rdf) {
595 0 0 for (s = p = word; *s != '\0'; s++,p++) {
598 0 0 if (s[1] == '.') {
605 0 0 if ('0' <= s[1] && s[1] <= '9' &&
0 0 if ('0' <= s[1] && s[1] <= '9' &&
0 0 if ('0' <= s[1] && s[1] <= '9' &&
606 0 0 '0' <= s[2] && s[2] <= '9' &&
0 0 '0' <= s[2] && s[2] <= '9' &&
607 0 0 '0' <= s[3] && s[3] <= '9') {
612 0 0 if (0 <= val && val <= 255) {
0 0 if (0 <= val && val <= 255) {
634 0 0 if ( *s == '\0' ) {
657 0 21 if (!rd1 && !rd2) {
0 0 if (!rd1 && !rd2) {
660 21 0 if (!rd1 || !rd2) {
0 21 if (!rd1 || !rd2) {
666 18 3 if (i1 < i2) {
668 0 3 } else if (i1 > i2) {
673 18 2 for(i = 0; i < i1; i++) {
674 0 18 if (d1[i] < d2[i]) {
676 1 17 } else if (d1[i] > d2[i]) {
691 164 25 for(*endptr = nptr; **endptr; (*endptr)++) {
697 0 0 if(sign == 0) {
704 0 0 if(sign == 0) {