2024-01-29 08:09:30 +03:00

66 lines
1.9 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: controller.go
// Package mock_controller is a generated GoMock package.
package mock_controller
import (
reflect "reflect"
structs "userservice/src/structs"
gocql "github.com/gocql/gocql"
gomock "github.com/golang/mock/gomock"
)
// MockIController is a mock of IController interface.
type MockIController struct {
ctrl *gomock.Controller
recorder *MockIControllerMockRecorder
}
// MockIControllerMockRecorder is the mock recorder for MockIController.
type MockIControllerMockRecorder struct {
mock *MockIController
}
// NewMockIController creates a new mock instance.
func NewMockIController(ctrl *gomock.Controller) *MockIController {
mock := &MockIController{ctrl: ctrl}
mock.recorder = &MockIControllerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIController) EXPECT() *MockIControllerMockRecorder {
return m.recorder
}
// CreateUser mocks base method.
func (m *MockIController) CreateUser(user *structs.USER) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateUser", user)
ret0, _ := ret[0].(error)
return ret0
}
// CreateUser indicates an expected call of CreateUser.
func (mr *MockIControllerMockRecorder) CreateUser(user interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockIController)(nil).CreateUser), user)
}
// GetUser mocks base method.
func (m *MockIController) GetUser(id gocql.UUID) (*structs.USER, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetUser", id)
ret0, _ := ret[0].(*structs.USER)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetUser indicates an expected call of GetUser.
func (mr *MockIControllerMockRecorder) GetUser(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockIController)(nil).GetUser), id)
}