81 lines
2.6 KiB
Go
81 lines
2.6 KiB
Go
|
// 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
|
||
|
}
|
||
|
|
||
|
// 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)
|
||
|
}
|
||
|
|
||
|
// 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)
|
||
|
}
|