mocks

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSServiceClient

type DNSServiceClient struct {
	mock.Mock
}

DNSServiceClient is an autogenerated mock type for the DNSServiceClient type

func NewDNSServiceClient

func NewDNSServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DNSServiceClient

NewDNSServiceClient creates a new instance of DNSServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DNSServiceClient) EXPECT

func (*DNSServiceClient) Query

Query provides a mock function with given fields: ctx, in, opts

type DNSServiceClient_Expecter

type DNSServiceClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*DNSServiceClient_Expecter) Query

func (_e *DNSServiceClient_Expecter) Query(ctx interface{}, in interface{}, opts ...interface{}) *DNSServiceClient_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • in *pbdns.QueryRequest
  • opts ...grpc.CallOption

type DNSServiceClient_Query_Call

type DNSServiceClient_Query_Call struct {
	*mock.Call
}

DNSServiceClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*DNSServiceClient_Query_Call) Return

func (*DNSServiceClient_Query_Call) Run

func (*DNSServiceClient_Query_Call) RunAndReturn

type DNSServiceServer

type DNSServiceServer struct {
	mock.Mock
}

DNSServiceServer is an autogenerated mock type for the DNSServiceServer type

func NewDNSServiceServer

func NewDNSServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *DNSServiceServer

NewDNSServiceServer creates a new instance of DNSServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DNSServiceServer) EXPECT

func (*DNSServiceServer) Query

Query provides a mock function with given fields: _a0, _a1

type DNSServiceServer_Expecter

type DNSServiceServer_Expecter struct {
	// contains filtered or unexported fields
}

func (*DNSServiceServer_Expecter) Query

func (_e *DNSServiceServer_Expecter) Query(_a0 interface{}, _a1 interface{}) *DNSServiceServer_Query_Call

Query is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *pbdns.QueryRequest

type DNSServiceServer_Query_Call

type DNSServiceServer_Query_Call struct {
	*mock.Call
}

DNSServiceServer_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*DNSServiceServer_Query_Call) Return

func (*DNSServiceServer_Query_Call) Run

func (*DNSServiceServer_Query_Call) RunAndReturn

type UnsafeDNSServiceServer

type UnsafeDNSServiceServer struct {
	mock.Mock
}

UnsafeDNSServiceServer is an autogenerated mock type for the UnsafeDNSServiceServer type

func NewUnsafeDNSServiceServer

func NewUnsafeDNSServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnsafeDNSServiceServer

NewUnsafeDNSServiceServer creates a new instance of UnsafeDNSServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UnsafeDNSServiceServer) EXPECT

type UnsafeDNSServiceServer_Expecter

type UnsafeDNSServiceServer_Expecter struct {
	// contains filtered or unexported fields
}

type UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call

type UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call struct {
	*mock.Call
}

UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedDNSServiceServer'

func (*UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) Return

func (*UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) Run

func (*UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL