Documentation
¶
Overview ¶
Package mockdb is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) CreateAccount(arg0 context.Context, arg1 db.CreateAccountParams) (db.Account, error)
- func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)
- func (m *MockStore) CreateSnippet(arg0 context.Context, arg1 db.CreateSnippetParams) (db.Snippet, error)
- func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (db.User, error)
- func (m *MockStore) CreateUserTx(arg0 context.Context, arg1 db.CreateUserTxParams) (db.CreateUserTxResult, error)
- func (m *MockStore) DeleteAccount(arg0 context.Context, arg1 int32) error
- func (m *MockStore) DeleteSnippet(arg0 context.Context, arg1 int32) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetAccount(arg0 context.Context, arg1 int32) (db.Account, error)
- func (m *MockStore) GetSession(arg0 context.Context, arg1 uuid.UUID) (db.Session, error)
- func (m *MockStore) GetSnippet(arg0 context.Context, arg1 int32) (db.Snippet, error)
- func (m *MockStore) GetUser(arg0 context.Context, arg1 string) (db.User, error)
- func (m *MockStore) ListSnippets(arg0 context.Context, arg1 db.ListSnippetsParams) ([]db.Snippet, error)
- func (m *MockStore) UpdateAccount(arg0 context.Context, arg1 db.UpdateAccountParams) (db.Account, error)
- func (m *MockStore) UpdateUser(arg0 context.Context, arg1 db.UpdateUserParams) (db.User, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateSnippet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUserTx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteSnippet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetSnippet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) ListSnippets(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) CreateAccount ¶
func (m *MockStore) CreateAccount(arg0 context.Context, arg1 db.CreateAccountParams) (db.Account, error)
CreateAccount mocks base method.
func (*MockStore) CreateSession ¶
func (m *MockStore) CreateSession(arg0 context.Context, arg1 db.CreateSessionParams) (db.Session, error)
CreateSession mocks base method.
func (*MockStore) CreateSnippet ¶
func (m *MockStore) CreateSnippet(arg0 context.Context, arg1 db.CreateSnippetParams) (db.Snippet, error)
CreateSnippet mocks base method.
func (*MockStore) CreateUser ¶
CreateUser mocks base method.
func (*MockStore) CreateUserTx ¶
func (m *MockStore) CreateUserTx(arg0 context.Context, arg1 db.CreateUserTxParams) (db.CreateUserTxResult, error)
CreateUserTx mocks base method.
func (*MockStore) DeleteAccount ¶
DeleteAccount mocks base method.
func (*MockStore) DeleteSnippet ¶
DeleteSnippet mocks base method.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) GetAccount ¶
GetAccount mocks base method.
func (*MockStore) GetSession ¶
GetSession mocks base method.
func (*MockStore) GetSnippet ¶
GetSnippet mocks base method.
func (*MockStore) ListSnippets ¶
func (m *MockStore) ListSnippets(arg0 context.Context, arg1 db.ListSnippetsParams) ([]db.Snippet, error)
ListSnippets mocks base method.
func (*MockStore) UpdateAccount ¶
func (m *MockStore) UpdateAccount(arg0 context.Context, arg1 db.UpdateAccountParams) (db.Account, error)
UpdateAccount mocks base method.
func (*MockStore) UpdateUser ¶
UpdateUser mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) CreateAccount ¶
func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount.
func (*MockStoreMockRecorder) CreateSession ¶
func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 interface{}) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockStoreMockRecorder) CreateSnippet ¶
func (mr *MockStoreMockRecorder) CreateSnippet(arg0, arg1 interface{}) *gomock.Call
CreateSnippet indicates an expected call of CreateSnippet.
func (*MockStoreMockRecorder) CreateUser ¶
func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockStoreMockRecorder) CreateUserTx ¶
func (mr *MockStoreMockRecorder) CreateUserTx(arg0, arg1 interface{}) *gomock.Call
CreateUserTx indicates an expected call of CreateUserTx.
func (*MockStoreMockRecorder) DeleteAccount ¶
func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 interface{}) *gomock.Call
DeleteAccount indicates an expected call of DeleteAccount.
func (*MockStoreMockRecorder) DeleteSnippet ¶
func (mr *MockStoreMockRecorder) DeleteSnippet(arg0, arg1 interface{}) *gomock.Call
DeleteSnippet indicates an expected call of DeleteSnippet.
func (*MockStoreMockRecorder) GetAccount ¶
func (mr *MockStoreMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockStoreMockRecorder) GetSession ¶
func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 interface{}) *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockStoreMockRecorder) GetSnippet ¶
func (mr *MockStoreMockRecorder) GetSnippet(arg0, arg1 interface{}) *gomock.Call
GetSnippet indicates an expected call of GetSnippet.
func (*MockStoreMockRecorder) GetUser ¶
func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockStoreMockRecorder) ListSnippets ¶
func (mr *MockStoreMockRecorder) ListSnippets(arg0, arg1 interface{}) *gomock.Call
ListSnippets indicates an expected call of ListSnippets.
func (*MockStoreMockRecorder) UpdateAccount ¶
func (mr *MockStoreMockRecorder) UpdateAccount(arg0, arg1 interface{}) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.
func (*MockStoreMockRecorder) UpdateUser ¶
func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.