Branch Coverage

src/ldns/higher.c
Criterion Covered Total %
branch 36 88 40.9


line true false branch
39 0 2 if (!res) {
42 0 2 if (ldns_rdf_get_type(name) != LDNS_RDF_TYPE_DNAME) {
52 18 2 for (i = 0; i < ldns_rr_list_rr_count(hostsfilenames); i++) {
53 0 18 if (ldns_rdf_compare(name,
56 0 0 if (!result) {
65 0 2 if (result) {
71 2 0 if (pkt) {
79 2 0 if (pkt) {
86 2 0 if (aaaa && a) {
2 0 if (aaaa && a) {
93 0 0 if (aaaa) {
97 0 0 if (a) {
116 2 0 if (!res || !addr) {
0 2 if (!res || !addr) {
130 2 0 if (pkt) {
169 2 0 if(!line || !word || !addr || !rr_str || !list) {
2 0 if(!line || !word || !addr || !rr_str || !list) {
2 0 if(!line || !word || !addr || !rr_str || !list) {
2 0 if(!line || !word || !addr || !rr_str || !list) {
0 2 if(!line || !word || !addr || !rr_str || !list) {
178 14 2 for(i = ldns_fget_token_l(fp, line, "\n", LDNS_MAX_LINELEN, line_nr);
181 0 14 if (line[0] == '#') {
186 0 14 if(!linebuf) {
196 32 14 for(cnt = 0, j = ldns_bget_token(linebuf, word, LDNS_PARSE_NO_NL, LDNS_MAX_LINELEN);
199 14 18 if (cnt == 0) {
201 10 4 if ((tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_AAAA,
207 4 0 if ((tmp = ldns_rdf_new_frm_str(LDNS_RDF_TYPE_A,
220 14 4 if (ip6) {
228 18 0 if (parse_result == LDNS_STATUS_OK && ldns_rr_owner(rr) && ldns_rr_rd_count(rr) > 0) {
18 0 if (parse_result == LDNS_STATUS_OK && ldns_rr_owner(rr) && ldns_rr_rd_count(rr) > 0) {
18 0 if (parse_result == LDNS_STATUS_OK && ldns_rr_owner(rr) && ldns_rr_rd_count(rr) > 0) {
249 2 0 if (!filename) {
255 0 2 if (!fp) {
277 0 0 if (res == NULL) {
280 0 0 if (s != LDNS_STATUS_OK) {
285 0 0 if (t == LDNS_RDF_TYPE_DNAME) {
291 0 0 if (t == LDNS_RDF_TYPE_A || t == LDNS_RDF_TYPE_AAAA) {
0 0 if (t == LDNS_RDF_TYPE_A || t == LDNS_RDF_TYPE_AAAA) {
297 0 0 if (res == NULL) {
308 0 0 case LDNS_RR_TYPE_NSEC : if (ldns_rr_rd_count(nsec) < 2) {
314 0 0 case LDNS_RR_TYPE_NSEC3 : if (ldns_rr_rd_count(nsec) < 6) {
332 0 0 for (rdf = (int16_t)rdfnum; rdf != -1; rdf = (int16_t)va_arg(va_rdf, int))
0 0 for (rdf = (int16_t)rdfnum; rdf != -1; rdf = (int16_t)va_arg(va_rdf, int))
335 0 0 if (!rd) {