Lines Matching refs:answer
92 answer: []dnsRR{},
121 if g, e := len(msg.answer), 5; g != e {
122 t.Errorf("len(msg.answer) = %d; want %d", g, e)
124 for idx, rr := range msg.answer {
129 t.Errorf("answer[%d] = %T; want *dnsRR_SRV", idx, rr)
137 _, addrs, err := answer(name, "foo:53", msg, uint16(dnsTypeSRV))
169 if g, e := len(msg.answer), 5; g != e {
170 t.Errorf("len(msg.answer) = %d; want %d", g, e)
172 for idx, rr := range msg.answer {
178 t.Errorf("answer[%d] = %T; want *dnsRR_Header", idx, rr)
182 t.Errorf("answer[%d] = %T; want *dnsRR_SRV", idx, rr)
186 _, addrs, err := answer("_xmpp-server._tcp.google.com.", "foo:53", msg, uint16(dnsTypeSRV))
188 t.Fatalf("answer: %v", err)
219 if len(msg.answer) != 1 {
220 t.Errorf("test %d: len(rr.answer) = %d; want 1", i, len(msg.answer))
224 rr := msg.answer[0]
227 t.Errorf("test %d: answer[0] = %T; want *dnsRR_TXT", i, rr)
271 if len(msg.answer) != 1 {
272 t.Errorf("test %d: len(rr.answer) = %d; want 1", i, len(msg.answer))
276 rr := msg.answer[0]