Branch Coverage

src/ldns/rr_functions.c
Criterion Covered Total %
branch 3 44 6.8


line true false branch
33 19 0 if (!rr || ldns_rr_get_type(rr) != type) {
0 19 if (!rr || ldns_rr_get_type(rr) != type) {
51 0 0 if (!rr || ldns_rr_get_type(rr) != type) {
0 0 if (!rr || ldns_rr_get_type(rr) != type) {
64 2 0 if (!r || (ldns_rr_get_type(r) != LDNS_RR_TYPE_A &&
76 0 0 if (!r || (ldns_rr_get_type(r) != LDNS_RR_TYPE_A &&
81 0 0 if (pop) {
282 0 0 if (len > 0) {
296 0 0 if (len > 0) {
297 0 0 if (keydata[0] == 0) {
299 0 0 if (len > 3) {
334 0 0 if (!key || !ldns_rr_dnskey_key(key)
0 0 if (!key || !ldns_rr_dnskey_key(key)
335 0 0 || !ldns_rr_dnskey_algorithm(key)) {
364 0 0 time_t t = data ? (time_t) (intptr_t) data : ldns_time(NULL);
368 0 0 return new_s - ((int32_t) s) <= 0 ? s+1 : ((uint32_t) new_s);
374 0 0 : (int32_t) ldns_time(NULL);
375 0 0 return new_s - ((int32_t) s) <= 0 ? s+1 : ((uint32_t) new_s);
395 0 0 if ( !soa || !f || ldns_rr_get_type(soa) != LDNS_RR_TYPE_SOA
0 0 if ( !soa || !f || ldns_rr_get_type(soa) != LDNS_RR_TYPE_SOA
0 0 if ( !soa || !f || ldns_rr_get_type(soa) != LDNS_RR_TYPE_SOA
396 0 0 || !ldns_rr_rdf(soa, 2)) {