mock

package
v0.0.0-...-9dfdedf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPostInteractor

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

MockPostInteractor is a mock of PostInteractor interface.

func NewMockPostInteractor

func NewMockPostInteractor(ctrl *gomock.Controller) *MockPostInteractor

NewMockPostInteractor creates a new mock instance.

func (*MockPostInteractor) CreatePost

func (m *MockPostInteractor) CreatePost(ctx context.Context, title, content string, authorID int64) (*service.Post, error)

CreatePost mocks base method.

func (*MockPostInteractor) DeletePost

func (m *MockPostInteractor) DeletePost(ctx context.Context, id int64) error

DeletePost mocks base method.

func (*MockPostInteractor) EXPECT

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

func (*MockPostInteractor) GetPost

func (m *MockPostInteractor) GetPost(ctx context.Context, id int64) (*service.Post, error)

GetPost mocks base method.

func (*MockPostInteractor) GetPosts

func (m *MockPostInteractor) GetPosts(ctx context.Context) ([]*service.Post, error)

GetPosts mocks base method.

func (*MockPostInteractor) UpdatePost

func (m *MockPostInteractor) UpdatePost(ctx context.Context, id int64, title, content string) (*service.Post, error)

UpdatePost mocks base method.

type MockPostInteractorMockRecorder

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

MockPostInteractorMockRecorder is the mock recorder for MockPostInteractor.

func (*MockPostInteractorMockRecorder) CreatePost

func (mr *MockPostInteractorMockRecorder) CreatePost(ctx, title, content, authorID interface{}) *gomock.Call

CreatePost indicates an expected call of CreatePost.

func (*MockPostInteractorMockRecorder) DeletePost

func (mr *MockPostInteractorMockRecorder) DeletePost(ctx, id interface{}) *gomock.Call

DeletePost indicates an expected call of DeletePost.

func (*MockPostInteractorMockRecorder) GetPost

func (mr *MockPostInteractorMockRecorder) GetPost(ctx, id interface{}) *gomock.Call

GetPost indicates an expected call of GetPost.

func (*MockPostInteractorMockRecorder) GetPosts

func (mr *MockPostInteractorMockRecorder) GetPosts(ctx interface{}) *gomock.Call

GetPosts indicates an expected call of GetPosts.

func (*MockPostInteractorMockRecorder) UpdatePost

func (mr *MockPostInteractorMockRecorder) UpdatePost(ctx, id, title, content interface{}) *gomock.Call

UpdatePost indicates an expected call of UpdatePost.

Jump to

Keyboard shortcuts

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