mocks

package
v0.0.0-...-89ae45c Latest Latest
Warning

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

Go to latest
Published: Jan 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 IListNodeRepository

type IListNodeRepository struct {
	mock.Mock
}

IListNodeRepository is an autogenerated mock type for the IListNodeRepository type

func NewIListNodeRepository

func NewIListNodeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IListNodeRepository

NewIListNodeRepository creates a new instance of IListNodeRepository. 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 (*IListNodeRepository) InsertLists

func (_m *IListNodeRepository) InsertLists(lists []*models.ListNode) (int64, error)

InsertLists provides a mock function with given fields: lists

func (*IListNodeRepository) SelectLists

func (_m *IListNodeRepository) SelectLists(id int64) ([]*models.ListNode, error)

SelectLists provides a mock function with given fields: id

func (*IListNodeRepository) UpdateMergedList

func (_m *IListNodeRepository) UpdateMergedList(mergedList models.ListNode, id int64) error

UpdateMergedList provides a mock function with given fields: mergedList, id

type IListNodeService

type IListNodeService struct {
	mock.Mock
}

IListNodeService is an autogenerated mock type for the IListNodeService type

func NewIListNodeService

func NewIListNodeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IListNodeService

NewIListNodeService creates a new instance of IListNodeService. 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 (*IListNodeService) GetMergedListNode

func (_m *IListNodeService) GetMergedListNode(id int64) (*models.ListNode, error)

GetMergedListNode provides a mock function with given fields: id

func (*IListNodeService) SaveListsNode

func (_m *IListNodeService) SaveListsNode(list1 *models.ListNode, list2 *models.ListNode) (int64, error)

SaveListsNode provides a mock function with given fields: list1, list2

Jump to

Keyboard shortcuts

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