(host string)
| 99 | } |
| 100 | |
| 101 | func 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 | |
| 115 | func requireResponse(tb testing.TB, req, reply *dns.Msg) { |
| 116 | tb.Helper() |
no outgoing calls
no test coverage detected
searching dependent graphs…