283 lines
11 KiB
Go
283 lines
11 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./proto/ss/grpc_pb/service_user_grpc.pb.go
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
grpc_pb "git.hlsq.asia/mmorpg/service-common/proto/ss/grpc_pb"
|
|
gomock "github.com/golang/mock/gomock"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// MockUserClient is a mock of UserClient interface.
|
|
type MockUserClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUserClientMockRecorder
|
|
}
|
|
|
|
// MockUserClientMockRecorder is the mock recorder for MockUserClient.
|
|
type MockUserClientMockRecorder struct {
|
|
mock *MockUserClient
|
|
}
|
|
|
|
// NewMockUserClient creates a new mock instance.
|
|
func NewMockUserClient(ctrl *gomock.Controller) *MockUserClient {
|
|
mock := &MockUserClient{ctrl: ctrl}
|
|
mock.recorder = &MockUserClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUserClient) EXPECT() *MockUserClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AnswerQuestion mocks base method.
|
|
func (m *MockUserClient) AnswerQuestion(ctx context.Context, in *grpc_pb.AnswerQuestionReq, opts ...grpc.CallOption) (*grpc_pb.AnswerQuestionResp, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, in}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "AnswerQuestion", varargs...)
|
|
ret0, _ := ret[0].(*grpc_pb.AnswerQuestionResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AnswerQuestion indicates an expected call of AnswerQuestion.
|
|
func (mr *MockUserClientMockRecorder) AnswerQuestion(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, in}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnswerQuestion", reflect.TypeOf((*MockUserClient)(nil).AnswerQuestion), varargs...)
|
|
}
|
|
|
|
// GenerateQuestion mocks base method.
|
|
func (m *MockUserClient) GenerateQuestion(ctx context.Context, in *grpc_pb.GenerateQuestionReq, opts ...grpc.CallOption) (*grpc_pb.GenerateQuestionResp, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, in}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "GenerateQuestion", varargs...)
|
|
ret0, _ := ret[0].(*grpc_pb.GenerateQuestionResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateQuestion indicates an expected call of GenerateQuestion.
|
|
func (mr *MockUserClientMockRecorder) GenerateQuestion(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, in}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateQuestion", reflect.TypeOf((*MockUserClient)(nil).GenerateQuestion), varargs...)
|
|
}
|
|
|
|
// GetQuestion mocks base method.
|
|
func (m *MockUserClient) GetQuestion(ctx context.Context, in *grpc_pb.GetQuestionReq, opts ...grpc.CallOption) (*grpc_pb.GetQuestionResp, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, in}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "GetQuestion", varargs...)
|
|
ret0, _ := ret[0].(*grpc_pb.GetQuestionResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetQuestion indicates an expected call of GetQuestion.
|
|
func (mr *MockUserClientMockRecorder) GetQuestion(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, in}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuestion", reflect.TypeOf((*MockUserClient)(nil).GetQuestion), varargs...)
|
|
}
|
|
|
|
// GetUserInfo mocks base method.
|
|
func (m *MockUserClient) GetUserInfo(ctx context.Context, in *grpc_pb.GetUserInfoReq, opts ...grpc.CallOption) (*grpc_pb.GetUserInfoResp, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, in}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "GetUserInfo", varargs...)
|
|
ret0, _ := ret[0].(*grpc_pb.GetUserInfoResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetUserInfo indicates an expected call of GetUserInfo.
|
|
func (mr *MockUserClientMockRecorder) GetUserInfo(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, in}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserInfo", reflect.TypeOf((*MockUserClient)(nil).GetUserInfo), varargs...)
|
|
}
|
|
|
|
// Login mocks base method.
|
|
func (m *MockUserClient) Login(ctx context.Context, in *grpc_pb.LoginReq, opts ...grpc.CallOption) (*grpc_pb.LoginResp, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{ctx, in}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "Login", varargs...)
|
|
ret0, _ := ret[0].(*grpc_pb.LoginResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Login indicates an expected call of Login.
|
|
func (mr *MockUserClientMockRecorder) Login(ctx, in interface{}, opts ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{ctx, in}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockUserClient)(nil).Login), varargs...)
|
|
}
|
|
|
|
// MockUserServer is a mock of UserServer interface.
|
|
type MockUserServer struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUserServerMockRecorder
|
|
}
|
|
|
|
// MockUserServerMockRecorder is the mock recorder for MockUserServer.
|
|
type MockUserServerMockRecorder struct {
|
|
mock *MockUserServer
|
|
}
|
|
|
|
// NewMockUserServer creates a new mock instance.
|
|
func NewMockUserServer(ctrl *gomock.Controller) *MockUserServer {
|
|
mock := &MockUserServer{ctrl: ctrl}
|
|
mock.recorder = &MockUserServerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUserServer) EXPECT() *MockUserServerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AnswerQuestion mocks base method.
|
|
func (m *MockUserServer) AnswerQuestion(arg0 context.Context, arg1 *grpc_pb.AnswerQuestionReq) (*grpc_pb.AnswerQuestionResp, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AnswerQuestion", arg0, arg1)
|
|
ret0, _ := ret[0].(*grpc_pb.AnswerQuestionResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AnswerQuestion indicates an expected call of AnswerQuestion.
|
|
func (mr *MockUserServerMockRecorder) AnswerQuestion(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnswerQuestion", reflect.TypeOf((*MockUserServer)(nil).AnswerQuestion), arg0, arg1)
|
|
}
|
|
|
|
// GenerateQuestion mocks base method.
|
|
func (m *MockUserServer) GenerateQuestion(arg0 context.Context, arg1 *grpc_pb.GenerateQuestionReq) (*grpc_pb.GenerateQuestionResp, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GenerateQuestion", arg0, arg1)
|
|
ret0, _ := ret[0].(*grpc_pb.GenerateQuestionResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateQuestion indicates an expected call of GenerateQuestion.
|
|
func (mr *MockUserServerMockRecorder) GenerateQuestion(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateQuestion", reflect.TypeOf((*MockUserServer)(nil).GenerateQuestion), arg0, arg1)
|
|
}
|
|
|
|
// GetQuestion mocks base method.
|
|
func (m *MockUserServer) GetQuestion(arg0 context.Context, arg1 *grpc_pb.GetQuestionReq) (*grpc_pb.GetQuestionResp, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetQuestion", arg0, arg1)
|
|
ret0, _ := ret[0].(*grpc_pb.GetQuestionResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetQuestion indicates an expected call of GetQuestion.
|
|
func (mr *MockUserServerMockRecorder) GetQuestion(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQuestion", reflect.TypeOf((*MockUserServer)(nil).GetQuestion), arg0, arg1)
|
|
}
|
|
|
|
// GetUserInfo mocks base method.
|
|
func (m *MockUserServer) GetUserInfo(arg0 context.Context, arg1 *grpc_pb.GetUserInfoReq) (*grpc_pb.GetUserInfoResp, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetUserInfo", arg0, arg1)
|
|
ret0, _ := ret[0].(*grpc_pb.GetUserInfoResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetUserInfo indicates an expected call of GetUserInfo.
|
|
func (mr *MockUserServerMockRecorder) GetUserInfo(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserInfo", reflect.TypeOf((*MockUserServer)(nil).GetUserInfo), arg0, arg1)
|
|
}
|
|
|
|
// Login mocks base method.
|
|
func (m *MockUserServer) Login(arg0 context.Context, arg1 *grpc_pb.LoginReq) (*grpc_pb.LoginResp, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Login", arg0, arg1)
|
|
ret0, _ := ret[0].(*grpc_pb.LoginResp)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Login indicates an expected call of Login.
|
|
func (mr *MockUserServerMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockUserServer)(nil).Login), arg0, arg1)
|
|
}
|
|
|
|
// mustEmbedUnimplementedUserServer mocks base method.
|
|
func (m *MockUserServer) mustEmbedUnimplementedUserServer() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "mustEmbedUnimplementedUserServer")
|
|
}
|
|
|
|
// mustEmbedUnimplementedUserServer indicates an expected call of mustEmbedUnimplementedUserServer.
|
|
func (mr *MockUserServerMockRecorder) mustEmbedUnimplementedUserServer() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedUserServer", reflect.TypeOf((*MockUserServer)(nil).mustEmbedUnimplementedUserServer))
|
|
}
|
|
|
|
// MockUnsafeUserServer is a mock of UnsafeUserServer interface.
|
|
type MockUnsafeUserServer struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUnsafeUserServerMockRecorder
|
|
}
|
|
|
|
// MockUnsafeUserServerMockRecorder is the mock recorder for MockUnsafeUserServer.
|
|
type MockUnsafeUserServerMockRecorder struct {
|
|
mock *MockUnsafeUserServer
|
|
}
|
|
|
|
// NewMockUnsafeUserServer creates a new mock instance.
|
|
func NewMockUnsafeUserServer(ctrl *gomock.Controller) *MockUnsafeUserServer {
|
|
mock := &MockUnsafeUserServer{ctrl: ctrl}
|
|
mock.recorder = &MockUnsafeUserServerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUnsafeUserServer) EXPECT() *MockUnsafeUserServerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// mustEmbedUnimplementedUserServer mocks base method.
|
|
func (m *MockUnsafeUserServer) mustEmbedUnimplementedUserServer() {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "mustEmbedUnimplementedUserServer")
|
|
}
|
|
|
|
// mustEmbedUnimplementedUserServer indicates an expected call of mustEmbedUnimplementedUserServer.
|
|
func (mr *MockUnsafeUserServerMockRecorder) mustEmbedUnimplementedUserServer() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedUserServer", reflect.TypeOf((*MockUnsafeUserServer)(nil).mustEmbedUnimplementedUserServer))
|
|
}
|