MCPcopy
hub / github.com/AdguardTeam/dnsproxy / newHostTestMessage

Function newHostTestMessage

proxy/proxy_internal_test.go:101–113  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

99}
100
101func newHostTestMessage(host string) (req *dns.Msg) {
102 return &dns.Msg{
103 MsgHdr: dns.MsgHdr{
104 Id: dns.Id(),
105 RecursionDesired: true,
106 },
107 Question: []dns.Question{{
108 Name: host + ".",
109 Qtype: dns.TypeA,
110 Qclass: dns.ClassINET,
111 }},
112 }
113}
114
115func requireResponse(tb testing.TB, req, reply *dns.Msg) {
116 tb.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…