()
| 360 | } |
| 361 | |
| 362 | func newMockClient() *mockClient { |
| 363 | return &mockClient{ |
| 364 | err: make(map[string]error), |
| 365 | res: make(map[string][]*dns.Msg), |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | func (m *mockClient) Exchange(_ context.Context, _ *dns.Msg, server string) (*dns.Msg, time.Duration, error) { |
| 370 | if err, ok := m.err[server]; ok { |
no outgoing calls
no test coverage detected