mocks

package
v2.0.103 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ../trainer_grpc.pb.go

Generated by this command:

mockgen -destination trainer_mock.go -source ../trainer_grpc.pb.go -package mocks

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 MockTrainerClient

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

MockTrainerClient is a mock of TrainerClient interface.

func NewMockTrainerClient

func NewMockTrainerClient(ctrl *gomock.Controller) *MockTrainerClient

NewMockTrainerClient creates a new mock instance.

func (*MockTrainerClient) EXPECT

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

func (*MockTrainerClient) Train

Train mocks base method.

type MockTrainerClientMockRecorder

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

MockTrainerClientMockRecorder is the mock recorder for MockTrainerClient.

func (*MockTrainerClientMockRecorder) Train

func (mr *MockTrainerClientMockRecorder) Train(ctx any, opts ...any) *gomock.Call

Train indicates an expected call of Train.

type MockTrainerServer

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

MockTrainerServer is a mock of TrainerServer interface.

func NewMockTrainerServer

func NewMockTrainerServer(ctrl *gomock.Controller) *MockTrainerServer

NewMockTrainerServer creates a new mock instance.

func (*MockTrainerServer) EXPECT

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

func (*MockTrainerServer) Train

Train mocks base method.

type MockTrainerServerMockRecorder

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

MockTrainerServerMockRecorder is the mock recorder for MockTrainerServer.

func (*MockTrainerServerMockRecorder) Train

func (mr *MockTrainerServerMockRecorder) Train(arg0 any) *gomock.Call

Train indicates an expected call of Train.

type MockTrainer_TrainClient

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

MockTrainer_TrainClient is a mock of Trainer_TrainClient interface.

func NewMockTrainer_TrainClient

func NewMockTrainer_TrainClient(ctrl *gomock.Controller) *MockTrainer_TrainClient

NewMockTrainer_TrainClient creates a new mock instance.

func (*MockTrainer_TrainClient) CloseAndRecv

func (m *MockTrainer_TrainClient) CloseAndRecv() (*emptypb.Empty, error)

CloseAndRecv mocks base method.

func (*MockTrainer_TrainClient) CloseSend

func (m *MockTrainer_TrainClient) CloseSend() error

CloseSend mocks base method.

func (*MockTrainer_TrainClient) Context

Context mocks base method.

func (*MockTrainer_TrainClient) EXPECT

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

func (*MockTrainer_TrainClient) Header

func (m *MockTrainer_TrainClient) Header() (metadata.MD, error)

Header mocks base method.

func (*MockTrainer_TrainClient) RecvMsg

func (m_2 *MockTrainer_TrainClient) RecvMsg(m any) error

RecvMsg mocks base method.

func (*MockTrainer_TrainClient) Send

Send mocks base method.

func (*MockTrainer_TrainClient) SendMsg

func (m_2 *MockTrainer_TrainClient) SendMsg(m any) error

SendMsg mocks base method.

func (*MockTrainer_TrainClient) Trailer

func (m *MockTrainer_TrainClient) Trailer() metadata.MD

Trailer mocks base method.

type MockTrainer_TrainClientMockRecorder

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

MockTrainer_TrainClientMockRecorder is the mock recorder for MockTrainer_TrainClient.

func (*MockTrainer_TrainClientMockRecorder) CloseAndRecv

func (mr *MockTrainer_TrainClientMockRecorder) CloseAndRecv() *gomock.Call

CloseAndRecv indicates an expected call of CloseAndRecv.

func (*MockTrainer_TrainClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockTrainer_TrainClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockTrainer_TrainClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockTrainer_TrainClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockTrainer_TrainClientMockRecorder) Send

Send indicates an expected call of Send.

func (*MockTrainer_TrainClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockTrainer_TrainClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockTrainer_TrainServer

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

MockTrainer_TrainServer is a mock of Trainer_TrainServer interface.

func NewMockTrainer_TrainServer

func NewMockTrainer_TrainServer(ctrl *gomock.Controller) *MockTrainer_TrainServer

NewMockTrainer_TrainServer creates a new mock instance.

func (*MockTrainer_TrainServer) Context

Context mocks base method.

func (*MockTrainer_TrainServer) EXPECT

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

func (*MockTrainer_TrainServer) Recv

Recv mocks base method.

func (*MockTrainer_TrainServer) RecvMsg

func (m_2 *MockTrainer_TrainServer) RecvMsg(m any) error

RecvMsg mocks base method.

func (*MockTrainer_TrainServer) SendAndClose

func (m *MockTrainer_TrainServer) SendAndClose(arg0 *emptypb.Empty) error

SendAndClose mocks base method.

func (*MockTrainer_TrainServer) SendHeader

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

SendHeader mocks base method.

func (*MockTrainer_TrainServer) SendMsg

func (m_2 *MockTrainer_TrainServer) SendMsg(m any) error

SendMsg mocks base method.

func (*MockTrainer_TrainServer) SetHeader

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

SetHeader mocks base method.

func (*MockTrainer_TrainServer) SetTrailer

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

SetTrailer mocks base method.

type MockTrainer_TrainServerMockRecorder

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

MockTrainer_TrainServerMockRecorder is the mock recorder for MockTrainer_TrainServer.

func (*MockTrainer_TrainServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockTrainer_TrainServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockTrainer_TrainServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockTrainer_TrainServerMockRecorder) SendAndClose

func (mr *MockTrainer_TrainServerMockRecorder) SendAndClose(arg0 any) *gomock.Call

SendAndClose indicates an expected call of SendAndClose.

func (*MockTrainer_TrainServerMockRecorder) SendHeader

func (mr *MockTrainer_TrainServerMockRecorder) SendHeader(arg0 any) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockTrainer_TrainServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockTrainer_TrainServerMockRecorder) SetHeader

func (mr *MockTrainer_TrainServerMockRecorder) SetHeader(arg0 any) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockTrainer_TrainServerMockRecorder) SetTrailer

func (mr *MockTrainer_TrainServerMockRecorder) SetTrailer(arg0 any) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeTrainerServer

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

MockUnsafeTrainerServer is a mock of UnsafeTrainerServer interface.

func NewMockUnsafeTrainerServer

func NewMockUnsafeTrainerServer(ctrl *gomock.Controller) *MockUnsafeTrainerServer

NewMockUnsafeTrainerServer creates a new mock instance.

func (*MockUnsafeTrainerServer) EXPECT

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

type MockUnsafeTrainerServerMockRecorder

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

MockUnsafeTrainerServerMockRecorder is the mock recorder for MockUnsafeTrainerServer.

Jump to

Keyboard shortcuts

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