mocks

package
v0.0.0-...-3daaeb3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostRepository

type PostRepository struct {
	mock.Mock
}

PostRepository is an autogenerated mock type for the PostRepository type

func NewPostRepository

func NewPostRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *PostRepository

NewPostRepository creates a new instance of PostRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PostRepository) Create

func (_m *PostRepository) Create(ctx context.Context, req dto.PostCreateReq) (*dto.PostRes, error)

Create provides a mock function with given fields: ctx, req

func (*PostRepository) DeleteByID

func (_m *PostRepository) DeleteByID(ctx context.Context, postID uint64) error

DeleteByID provides a mock function with given fields: ctx, postID

func (*PostRepository) GetAll

func (_m *PostRepository) GetAll(ctx context.Context) ([]dto.PostRes, error)

GetAll provides a mock function with given fields: ctx

func (*PostRepository) GetDetail

func (_m *PostRepository) GetDetail(ctx context.Context, req dto.PostGetReq) (*dto.PostRes, error)

GetDetail provides a mock function with given fields: ctx, req

func (*PostRepository) GetDetailTag

func (_m *PostRepository) GetDetailTag(ctx context.Context, req dto.TagGetReq) (*models.Tag, error)

GetDetailTag provides a mock function with given fields: ctx, req

func (*PostRepository) UpdateByID

func (_m *PostRepository) UpdateByID(ctx context.Context, req dto.PostUpdateReq) error

UpdateByID provides a mock function with given fields: ctx, req

Jump to

Keyboard shortcuts

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