mocks

package
v0.0.0-...-bf66428 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Servicer

type Servicer struct {
	mock.Mock
}

Servicer is an autogenerated mock type for the Servicer type

func NewServicer

func NewServicer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Servicer

NewServicer creates a new instance of Servicer. 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 (*Servicer) CreatePost

func (_m *Servicer) CreatePost(pst *post.Post) (*post.Post, error)

CreatePost provides a mock function with given fields: pst

func (*Servicer) DeletePost

func (_m *Servicer) DeletePost(id int64) error

DeletePost provides a mock function with given fields: id

func (*Servicer) GetPost

func (_m *Servicer) GetPost(id int64) (*post.Post, error)

GetPost provides a mock function with given fields: id

func (*Servicer) ListPosts

func (_m *Servicer) ListPosts() []post.Post

ListPosts provides a mock function with given fields:

func (*Servicer) UpdatePost

func (_m *Servicer) UpdatePost(id int64, pst *post.Post) (*post.Post, error)

UpdatePost provides a mock function with given fields: id, pst

Jump to

Keyboard shortcuts

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