mocks

package
v2.0.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSeederClient

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

MockSeederClient is a mock of SeederClient interface.

func NewMockSeederClient

func NewMockSeederClient(ctrl *gomock.Controller) *MockSeederClient

NewMockSeederClient creates a new mock instance.

func (*MockSeederClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSeederClient) GetPieceTasks

func (m *MockSeederClient) GetPieceTasks(ctx context.Context, in *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockSeederClient) ObtainSeeds

ObtainSeeds mocks base method.

type MockSeederClientMockRecorder

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

MockSeederClientMockRecorder is the mock recorder for MockSeederClient.

func (*MockSeederClientMockRecorder) GetPieceTasks

func (mr *MockSeederClientMockRecorder) GetPieceTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockSeederClientMockRecorder) ObtainSeeds

func (mr *MockSeederClientMockRecorder) ObtainSeeds(ctx, in interface{}, opts ...interface{}) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

type MockSeederServer

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

MockSeederServer is a mock of SeederServer interface.

func NewMockSeederServer

func NewMockSeederServer(ctrl *gomock.Controller) *MockSeederServer

NewMockSeederServer creates a new mock instance.

func (*MockSeederServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSeederServer) GetPieceTasks

func (m *MockSeederServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockSeederServer) ObtainSeeds

ObtainSeeds mocks base method.

type MockSeederServerMockRecorder

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

MockSeederServerMockRecorder is the mock recorder for MockSeederServer.

func (*MockSeederServerMockRecorder) GetPieceTasks

func (mr *MockSeederServerMockRecorder) GetPieceTasks(arg0, arg1 interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockSeederServerMockRecorder) ObtainSeeds

func (mr *MockSeederServerMockRecorder) ObtainSeeds(arg0, arg1 interface{}) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

type MockSeeder_ObtainSeedsClient

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

MockSeeder_ObtainSeedsClient is a mock of Seeder_ObtainSeedsClient interface.

func NewMockSeeder_ObtainSeedsClient

func NewMockSeeder_ObtainSeedsClient(ctrl *gomock.Controller) *MockSeeder_ObtainSeedsClient

NewMockSeeder_ObtainSeedsClient creates a new mock instance.

func (*MockSeeder_ObtainSeedsClient) CloseSend

func (m *MockSeeder_ObtainSeedsClient) CloseSend() error

CloseSend mocks base method.

func (*MockSeeder_ObtainSeedsClient) Context

Context mocks base method.

func (*MockSeeder_ObtainSeedsClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSeeder_ObtainSeedsClient) Header

Header mocks base method.

func (*MockSeeder_ObtainSeedsClient) Recv

Recv mocks base method.

func (*MockSeeder_ObtainSeedsClient) RecvMsg

func (m_2 *MockSeeder_ObtainSeedsClient) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockSeeder_ObtainSeedsClient) SendMsg

func (m_2 *MockSeeder_ObtainSeedsClient) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockSeeder_ObtainSeedsClient) Trailer

Trailer mocks base method.

type MockSeeder_ObtainSeedsClientMockRecorder

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

MockSeeder_ObtainSeedsClientMockRecorder is the mock recorder for MockSeeder_ObtainSeedsClient.

func (*MockSeeder_ObtainSeedsClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockSeeder_ObtainSeedsClientMockRecorder) RecvMsg

func (mr *MockSeeder_ObtainSeedsClientMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_ObtainSeedsClientMockRecorder) SendMsg

func (mr *MockSeeder_ObtainSeedsClientMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_ObtainSeedsClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockSeeder_ObtainSeedsServer

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

MockSeeder_ObtainSeedsServer is a mock of Seeder_ObtainSeedsServer interface.

func NewMockSeeder_ObtainSeedsServer

func NewMockSeeder_ObtainSeedsServer(ctrl *gomock.Controller) *MockSeeder_ObtainSeedsServer

NewMockSeeder_ObtainSeedsServer creates a new mock instance.

func (*MockSeeder_ObtainSeedsServer) Context

Context mocks base method.

func (*MockSeeder_ObtainSeedsServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSeeder_ObtainSeedsServer) RecvMsg

func (m_2 *MockSeeder_ObtainSeedsServer) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockSeeder_ObtainSeedsServer) Send

Send mocks base method.

func (*MockSeeder_ObtainSeedsServer) SendHeader

func (m *MockSeeder_ObtainSeedsServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockSeeder_ObtainSeedsServer) SendMsg

func (m_2 *MockSeeder_ObtainSeedsServer) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockSeeder_ObtainSeedsServer) SetHeader

func (m *MockSeeder_ObtainSeedsServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method.

func (*MockSeeder_ObtainSeedsServer) SetTrailer

func (m *MockSeeder_ObtainSeedsServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockSeeder_ObtainSeedsServerMockRecorder

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

MockSeeder_ObtainSeedsServerMockRecorder is the mock recorder for MockSeeder_ObtainSeedsServer.

func (*MockSeeder_ObtainSeedsServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockSeeder_ObtainSeedsServerMockRecorder) RecvMsg

func (mr *MockSeeder_ObtainSeedsServerMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockSeeder_ObtainSeedsServerMockRecorder) Send

func (mr *MockSeeder_ObtainSeedsServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SendHeader

func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SendMsg

func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SetHeader

func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockSeeder_ObtainSeedsServerMockRecorder) SetTrailer

func (mr *MockSeeder_ObtainSeedsServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeSeederServer

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

MockUnsafeSeederServer is a mock of UnsafeSeederServer interface.

func NewMockUnsafeSeederServer

func NewMockUnsafeSeederServer(ctrl *gomock.Controller) *MockUnsafeSeederServer

NewMockUnsafeSeederServer creates a new mock instance.

func (*MockUnsafeSeederServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockUnsafeSeederServerMockRecorder

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

MockUnsafeSeederServerMockRecorder is the mock recorder for MockUnsafeSeederServer.

Jump to

Keyboard shortcuts

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