mock_db

package
v0.0.0-...-17b05d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_db is a generated GoMock package.

Index

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) AddPostLikesCount

func (m *MockStore) AddPostLikesCount(arg0 context.Context, arg1 db.AddPostLikesCountParams) error

AddPostLikesCount mocks base method.

func (*MockStore) AddUserLikesCount

func (m *MockStore) AddUserLikesCount(arg0 context.Context, arg1 db.AddUserLikesCountParams) error

AddUserLikesCount mocks base method.

func (*MockStore) CreatePost

func (m *MockStore) CreatePost(arg0 context.Context, arg1 db.CreatePostParams) (sql.Result, error)

CreatePost mocks base method.

func (*MockStore) CreateUser

func (m *MockStore) CreateUser(arg0 context.Context, arg1 db.CreateUserParams) (sql.Result, error)

CreateUser mocks base method.

func (*MockStore) DeletePost

func (m *MockStore) DeletePost(arg0 context.Context, arg1 int64) error

DeletePost mocks base method.

func (*MockStore) DeleteUser

func (m *MockStore) DeleteUser(arg0 context.Context, arg1 int64) error

DeleteUser 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) GetPost

func (m *MockStore) GetPost(arg0 context.Context, arg1 int64) (db.Post, error)

GetPost mocks base method.

func (*MockStore) GetUser

func (m *MockStore) GetUser(arg0 context.Context, arg1 int64) (db.User, error)

GetUser mocks base method.

func (*MockStore) GetUserPosts

func (m *MockStore) GetUserPosts(arg0 context.Context, arg1 int64) ([]db.Post, error)

GetUserPosts mocks base method.

func (*MockStore) LikeTx

func (m *MockStore) LikeTx(arg0 context.Context, arg1 db.LikeTxParams) error

LikeTx mocks base method.

func (*MockStore) ListUsers

func (m *MockStore) ListUsers(arg0 context.Context) ([]db.User, error)

ListUsers mocks base method.

type MockStoreMockRecorder

type MockStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AddPostLikesCount

func (mr *MockStoreMockRecorder) AddPostLikesCount(arg0, arg1 interface{}) *gomock.Call

AddPostLikesCount indicates an expected call of AddPostLikesCount.

func (*MockStoreMockRecorder) AddUserLikesCount

func (mr *MockStoreMockRecorder) AddUserLikesCount(arg0, arg1 interface{}) *gomock.Call

AddUserLikesCount indicates an expected call of AddUserLikesCount.

func (*MockStoreMockRecorder) CreatePost

func (mr *MockStoreMockRecorder) CreatePost(arg0, arg1 interface{}) *gomock.Call

CreatePost indicates an expected call of CreatePost.

func (*MockStoreMockRecorder) CreateUser

func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockStoreMockRecorder) DeletePost

func (mr *MockStoreMockRecorder) DeletePost(arg0, arg1 interface{}) *gomock.Call

DeletePost indicates an expected call of DeletePost.

func (*MockStoreMockRecorder) DeleteUser

func (mr *MockStoreMockRecorder) DeleteUser(arg0, arg1 interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockStoreMockRecorder) GetPost

func (mr *MockStoreMockRecorder) GetPost(arg0, arg1 interface{}) *gomock.Call

GetPost indicates an expected call of GetPost.

func (*MockStoreMockRecorder) GetUser

func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockStoreMockRecorder) GetUserPosts

func (mr *MockStoreMockRecorder) GetUserPosts(arg0, arg1 interface{}) *gomock.Call

GetUserPosts indicates an expected call of GetUserPosts.

func (*MockStoreMockRecorder) LikeTx

func (mr *MockStoreMockRecorder) LikeTx(arg0, arg1 interface{}) *gomock.Call

LikeTx indicates an expected call of LikeTx.

func (*MockStoreMockRecorder) ListUsers

func (mr *MockStoreMockRecorder) ListUsers(arg0 interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL