• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PowerDNS / pdns / 18679017918

21 Oct 2025 09:15AM UTC coverage: 69.743% (+2.0%) from 67.713%
18679017918

Pull #16307

github

web-flow
Merge ba88af487 into da98764c6
Pull Request #16307: rec: explicit disabling/enabling of tls-gnutls for full and least configs and packages

26192 of 45526 branches covered (57.53%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

2282 existing lines in 57 files now uncovered.

86265 of 115719 relevant lines covered (74.55%)

4323875.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.05
/pdns/test-common.hh
1

2
#include "dnsrecords.hh"
3
#include "iputils.hh"
4

5
static inline std::shared_ptr<DNSRecordContent> getRecordContent(uint16_t type, const std::string& content)
6
{
70✔
7
  std::shared_ptr<DNSRecordContent> result = nullptr;
70✔
8

9
  if (type == QType::NS) {
70✔
10
    result = std::make_shared<NSRecordContent>(DNSName(content));
1✔
11
  }
1✔
12
  else if (type == QType::A) {
69✔
13
    result = std::make_shared<ARecordContent>(ComboAddress(content));
29✔
14
  }
29✔
15
  else if (type == QType::AAAA) {
40!
UNCOV
16
    result = std::make_shared<AAAARecordContent>(ComboAddress(content));
×
UNCOV
17
  }
×
18
  else if (type == QType::CNAME) {
40!
UNCOV
19
    result = std::make_shared<CNAMERecordContent>(DNSName(content));
×
UNCOV
20
  }
×
21
  else if (type == QType::OPT) {
40!
UNCOV
22
    result = std::make_shared<OPTRecordContent>();
×
UNCOV
23
  }
×
24
  else {
40✔
25
    result = DNSRecordContent::make(type, QClass::IN, content);
40✔
26
  }
40✔
27

28
  return result;
70✔
29
}
70✔
30

31
static inline void addRecordToList(std::vector<DNSRecord>& records, const DNSName& name, uint16_t type, const std::string& content, DNSResourceRecord::Place place=DNSResourceRecord::ANSWER, uint32_t ttl=3600)
32
{
70✔
33
  DNSRecord rec;
70✔
34
  rec.d_place = place;
70✔
35
  rec.d_name = name;
70✔
36
  rec.d_type = type;
70✔
37
  rec.d_ttl = ttl;
70✔
38

39
  rec.setContent(getRecordContent(type, content));
70✔
40

41
  records.push_back(rec);
70✔
42
}
70✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc