2023-09-12 17:08:17 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: git.nochill.in/nochill/hiling_go/db/sqlc (interfaces: Store)
|
|
|
|
|
|
|
|
// Package mockdb is a generated GoMock package.
|
|
|
|
package mockdb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
db "git.nochill.in/nochill/hiling_go/db/sqlc"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockStore is a mock of Store interface.
|
|
|
|
type MockStore struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockStoreMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockStoreMockRecorder is the mock recorder for MockStore.
|
|
|
|
type MockStoreMockRecorder struct {
|
|
|
|
mock *MockStore
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockStore creates a new mock instance.
|
|
|
|
func NewMockStore(ctrl *gomock.Controller) *MockStore {
|
|
|
|
mock := &MockStore{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockStoreMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-09-13 21:42:04 +07:00
|
|
|
// CreateLocation mocks base method.
|
|
|
|
func (m *MockStore) CreateLocation(arg0 context.Context, arg1 db.CreateLocationParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateLocation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateLocation indicates an expected call of CreateLocation.
|
|
|
|
func (mr *MockStoreMockRecorder) CreateLocation(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateLocation", reflect.TypeOf((*MockStore)(nil).CreateLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-12 17:08:17 +07:00
|
|
|
// CreateUser mocks base method.
|
|
|
|
func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (db.User, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CreateUser", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateUser indicates an expected call of CreateUser.
|
|
|
|
func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockStore)(nil).CreateUser), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-13 21:42:04 +07:00
|
|
|
// GetListLocations mocks base method.
|
2023-09-14 13:49:03 +07:00
|
|
|
func (m *MockStore) GetListLocations(arg0 context.Context) ([]db.Location, error) {
|
2023-09-13 21:42:04 +07:00
|
|
|
m.ctrl.T.Helper()
|
2023-09-14 13:49:03 +07:00
|
|
|
ret := m.ctrl.Call(m, "GetListLocations", arg0)
|
2023-09-13 21:42:04 +07:00
|
|
|
ret0, _ := ret[0].([]db.Location)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListLocations indicates an expected call of GetListLocations.
|
2023-09-14 13:49:03 +07:00
|
|
|
func (mr *MockStoreMockRecorder) GetListLocations(arg0 interface{}) *gomock.Call {
|
2023-09-13 21:42:04 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-09-14 13:49:03 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListLocations", reflect.TypeOf((*MockStore)(nil).GetListLocations), arg0)
|
2023-09-13 21:42:04 +07:00
|
|
|
}
|
|
|
|
|
2023-09-14 22:51:01 +07:00
|
|
|
// GetListRecentLocationsWithRatings mocks base method.
|
|
|
|
func (m *MockStore) GetListRecentLocationsWithRatings(arg0 context.Context, arg1 int32) ([]db.GetListRecentLocationsWithRatingsRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetListRecentLocationsWithRatings", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.GetListRecentLocationsWithRatingsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetListRecentLocationsWithRatings indicates an expected call of GetListRecentLocationsWithRatings.
|
|
|
|
func (mr *MockStoreMockRecorder) GetListRecentLocationsWithRatings(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetListRecentLocationsWithRatings", reflect.TypeOf((*MockStore)(nil).GetListRecentLocationsWithRatings), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-13 21:42:04 +07:00
|
|
|
// GetLocation mocks base method.
|
|
|
|
func (m *MockStore) GetLocation(arg0 context.Context, arg1 int32) (db.Location, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetLocation", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.Location)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetLocation indicates an expected call of GetLocation.
|
|
|
|
func (mr *MockStoreMockRecorder) GetLocation(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLocation", reflect.TypeOf((*MockStore)(nil).GetLocation), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-17 16:32:48 +07:00
|
|
|
// GetTopListLocations mocks base method.
|
|
|
|
func (m *MockStore) GetTopListLocations(arg0 context.Context, arg1 db.GetTopListLocationsParams) ([]db.GetTopListLocationsRow, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetTopListLocations", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]db.GetTopListLocationsRow)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetTopListLocations indicates an expected call of GetTopListLocations.
|
|
|
|
func (mr *MockStoreMockRecorder) GetTopListLocations(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTopListLocations", reflect.TypeOf((*MockStore)(nil).GetTopListLocations), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2023-09-12 17:08:17 +07:00
|
|
|
// UpdatePassword mocks base method.
|
|
|
|
func (m *MockStore) UpdatePassword(arg0 context.Context, arg1 db.UpdatePasswordParams) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdatePassword", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdatePassword indicates an expected call of UpdatePassword.
|
|
|
|
func (mr *MockStoreMockRecorder) UpdatePassword(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePassword", reflect.TypeOf((*MockStore)(nil).UpdatePassword), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateUser mocks base method.
|
|
|
|
func (m *MockStore) UpdateUser(arg0 context.Context, arg1 db.UpdateUserParams) (db.User, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateUser", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(db.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateUser indicates an expected call of UpdateUser.
|
|
|
|
func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockStore)(nil).UpdateUser), arg0, arg1)
|
|
|
|
}
|