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.

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 MockAuthorRepository

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

MockAuthorRepository is a mock of AuthorRepository interface.

func NewMockAuthorRepository

func NewMockAuthorRepository(ctrl *gomock.Controller) *MockAuthorRepository

NewMockAuthorRepository creates a new mock instance.

func (*MockAuthorRepository) EXPECT

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

func (*MockAuthorRepository) FetchAuthorByID

func (m *MockAuthorRepository) FetchAuthorByID(ctx context.Context, id int64) (*model.Author, error)

FetchAuthorByID mocks base method.

type MockAuthorRepositoryMockRecorder

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

MockAuthorRepositoryMockRecorder is the mock recorder for MockAuthorRepository.

func (*MockAuthorRepositoryMockRecorder) FetchAuthorByID

func (mr *MockAuthorRepositoryMockRecorder) FetchAuthorByID(ctx, id interface{}) *gomock.Call

FetchAuthorByID indicates an expected call of FetchAuthorByID.

type MockPostRepository

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

MockPostRepository is a mock of PostRepository interface.

func NewMockPostRepository

func NewMockPostRepository(ctrl *gomock.Controller) *MockPostRepository

NewMockPostRepository creates a new mock instance.

func (*MockPostRepository) CreatePost

func (m *MockPostRepository) CreatePost(ctx context.Context, post *model.Post) (*model.Post, error)

CreatePost mocks base method.

func (*MockPostRepository) DeletePost

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

DeletePost mocks base method.

func (*MockPostRepository) EXPECT

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

func (*MockPostRepository) FetchPost

func (m *MockPostRepository) FetchPost(ctx context.Context, id int64) (*model.Post, error)

FetchPost mocks base method.

func (*MockPostRepository) FetchPosts

func (m *MockPostRepository) FetchPosts(ctx context.Context) ([]*model.Post, error)

FetchPosts mocks base method.

func (*MockPostRepository) UpdatePost

func (m *MockPostRepository) UpdatePost(ctx context.Context, post *model.Post) error

UpdatePost mocks base method.

type MockPostRepositoryMockRecorder

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

MockPostRepositoryMockRecorder is the mock recorder for MockPostRepository.

func (*MockPostRepositoryMockRecorder) CreatePost

func (mr *MockPostRepositoryMockRecorder) CreatePost(ctx, post interface{}) *gomock.Call

CreatePost indicates an expected call of CreatePost.

func (*MockPostRepositoryMockRecorder) DeletePost

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

DeletePost indicates an expected call of DeletePost.

func (*MockPostRepositoryMockRecorder) FetchPost

func (mr *MockPostRepositoryMockRecorder) FetchPost(ctx, id interface{}) *gomock.Call

FetchPost indicates an expected call of FetchPost.

func (*MockPostRepositoryMockRecorder) FetchPosts

func (mr *MockPostRepositoryMockRecorder) FetchPosts(ctx interface{}) *gomock.Call

FetchPosts indicates an expected call of FetchPosts.

func (*MockPostRepositoryMockRecorder) UpdatePost

func (mr *MockPostRepositoryMockRecorder) UpdatePost(ctx, post 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