mock_postgres

package
v0.0.0-...-7f86f56 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_postgres is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPost

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

MockPost is a mock of Post interface.

func NewMockPost

func NewMockPost(ctrl *gomock.Controller) *MockPost

NewMockPost creates a new mock instance.

func (*MockPost) Create

func (m *MockPost) Create(ctx context.Context, post domain.Post) error

Create mocks base method.

func (*MockPost) Delete

func (m *MockPost) Delete(ctx context.Context, id, authorId ksuid.KSUID) error

Delete mocks base method.

func (*MockPost) EXPECT

func (m *MockPost) EXPECT() *MockPostMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPost) Get

func (m *MockPost) Get(ctx context.Context, id ksuid.KSUID) (domain.Post, error)

Get mocks base method.

func (*MockPost) GetPosts

func (m *MockPost) GetPosts(ctx context.Context, authorId ksuid.KSUID, sort domain.SortOptions) ([]domain.Post, error)

GetPosts mocks base method.

func (*MockPost) GetTotalCount

func (m *MockPost) GetTotalCount(ctx context.Context, authorId ksuid.KSUID) (int32, error)

GetTotalCount mocks base method.

func (*MockPost) Update

func (m *MockPost) Update(ctx context.Context, post domain.Post) error

Update mocks base method.

type MockPostMockRecorder

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

MockPostMockRecorder is the mock recorder for MockPost.

func (*MockPostMockRecorder) Create

func (mr *MockPostMockRecorder) Create(ctx, post interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockPostMockRecorder) Delete

func (mr *MockPostMockRecorder) Delete(ctx, id, authorId interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPostMockRecorder) Get

func (mr *MockPostMockRecorder) Get(ctx, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPostMockRecorder) GetPosts

func (mr *MockPostMockRecorder) GetPosts(ctx, authorId, sort interface{}) *gomock.Call

GetPosts indicates an expected call of GetPosts.

func (*MockPostMockRecorder) GetTotalCount

func (mr *MockPostMockRecorder) GetTotalCount(ctx, authorId interface{}) *gomock.Call

GetTotalCount indicates an expected call of GetTotalCount.

func (*MockPostMockRecorder) Update

func (mr *MockPostMockRecorder) Update(ctx, post interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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