blob: 363ae8bb22e1a3d39c207c14ba328f580f1dc536 [file] [edit]
package bdns
import (
"context"
"errors"
"github.com/miekg/dns"
)
// MockClient is a mock
type MockClient struct{}
// LookupTXT is a mock
func (mock *MockClient) LookupTXT(_ context.Context, hostname string) (*Result[*dns.TXT], string, error) {
return nil, "MockClient", errors.New("unexpected LookupTXT call on test fake")
}
// LookupA is a fake
func (mock *MockClient) LookupA(_ context.Context, hostname string) (*Result[*dns.A], string, error) {
return nil, "MockClient", errors.New("unexpected LookupA call on test fake")
}
// LookupAAAA is a fake
func (mock *MockClient) LookupAAAA(_ context.Context, hostname string) (*Result[*dns.AAAA], string, error) {
return nil, "MockClient", errors.New("unexpected LookupAAAA call on test fake")
}
// LookupCAA is a fake
func (mock *MockClient) LookupCAA(_ context.Context, domain string) (*Result[*dns.CAA], string, error) {
return nil, "MockClient", errors.New("unexpected LookupCAA call on test fake")
}
// LookupHTTPS is a fake
func (mock *MockClient) LookupHTTPS(_ context.Context, hostname string) (*Result[*dns.HTTPS], string, error) {
return nil, "MockClient", errors.New("unexpected LookupHTTPS call on test fake")
}