mocks

package
v0.0.0-...-6d99c5e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 EventRepo

type EventRepo struct {
	mock.Mock
}

EventRepo is an autogenerated mock type for the EventRepo type

func NewEventRepo

func NewEventRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventRepo

NewEventRepo creates a new instance of EventRepo. 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 (*EventRepo) Add

func (_m *EventRepo) Add(event []model.PackageEvent) error

Add provides a mock function with given fields: event

func (*EventRepo) EXPECT

func (_m *EventRepo) EXPECT() *EventRepo_Expecter

func (*EventRepo) Lock

func (_m *EventRepo) Lock(n uint64) ([]model.PackageEvent, error)

Lock provides a mock function with given fields: n

func (*EventRepo) Remove

func (_m *EventRepo) Remove(eventIDs []uint64) error

Remove provides a mock function with given fields: eventIDs

func (*EventRepo) Unlock

func (_m *EventRepo) Unlock(eventID []uint64) error

Unlock provides a mock function with given fields: eventID

type EventRepo_Add_Call

type EventRepo_Add_Call struct {
	*mock.Call
}

EventRepo_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*EventRepo_Add_Call) Return

func (_c *EventRepo_Add_Call) Return(_a0 error) *EventRepo_Add_Call

func (*EventRepo_Add_Call) Run

func (_c *EventRepo_Add_Call) Run(run func(event []model.PackageEvent)) *EventRepo_Add_Call

func (*EventRepo_Add_Call) RunAndReturn

func (_c *EventRepo_Add_Call) RunAndReturn(run func([]model.PackageEvent) error) *EventRepo_Add_Call

type EventRepo_Expecter

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

func (*EventRepo_Expecter) Add

func (_e *EventRepo_Expecter) Add(event interface{}) *EventRepo_Add_Call

Add is a helper method to define mock.On call

  • event []model.PackageEvent

func (*EventRepo_Expecter) Lock

func (_e *EventRepo_Expecter) Lock(n interface{}) *EventRepo_Lock_Call

Lock is a helper method to define mock.On call

  • n uint64

func (*EventRepo_Expecter) Remove

func (_e *EventRepo_Expecter) Remove(eventIDs interface{}) *EventRepo_Remove_Call

Remove is a helper method to define mock.On call

  • eventIDs []uint64

func (*EventRepo_Expecter) Unlock

func (_e *EventRepo_Expecter) Unlock(eventID interface{}) *EventRepo_Unlock_Call

Unlock is a helper method to define mock.On call

  • eventID []uint64

type EventRepo_Lock_Call

type EventRepo_Lock_Call struct {
	*mock.Call
}

EventRepo_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'

func (*EventRepo_Lock_Call) Return

func (*EventRepo_Lock_Call) Run

func (_c *EventRepo_Lock_Call) Run(run func(n uint64)) *EventRepo_Lock_Call

func (*EventRepo_Lock_Call) RunAndReturn

func (_c *EventRepo_Lock_Call) RunAndReturn(run func(uint64) ([]model.PackageEvent, error)) *EventRepo_Lock_Call

type EventRepo_Remove_Call

type EventRepo_Remove_Call struct {
	*mock.Call
}

EventRepo_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*EventRepo_Remove_Call) Return

func (*EventRepo_Remove_Call) Run

func (_c *EventRepo_Remove_Call) Run(run func(eventIDs []uint64)) *EventRepo_Remove_Call

func (*EventRepo_Remove_Call) RunAndReturn

func (_c *EventRepo_Remove_Call) RunAndReturn(run func([]uint64) error) *EventRepo_Remove_Call

type EventRepo_Unlock_Call

type EventRepo_Unlock_Call struct {
	*mock.Call
}

EventRepo_Unlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unlock'

func (*EventRepo_Unlock_Call) Return

func (*EventRepo_Unlock_Call) Run

func (_c *EventRepo_Unlock_Call) Run(run func(eventID []uint64)) *EventRepo_Unlock_Call

func (*EventRepo_Unlock_Call) RunAndReturn

func (_c *EventRepo_Unlock_Call) RunAndReturn(run func([]uint64) error) *EventRepo_Unlock_Call

type EventSender

type EventSender struct {
	mock.Mock
}

EventSender is an autogenerated mock type for the EventSender type

func NewEventSender

func NewEventSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventSender

NewEventSender creates a new instance of EventSender. 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 (*EventSender) EXPECT

func (_m *EventSender) EXPECT() *EventSender_Expecter

func (*EventSender) Send

func (_m *EventSender) Send(pkg *model.PackageEvent) error

Send provides a mock function with given fields: pkg

type EventSender_Expecter

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

func (*EventSender_Expecter) Send

func (_e *EventSender_Expecter) Send(pkg interface{}) *EventSender_Send_Call

Send is a helper method to define mock.On call

  • pkg *model.PackageEvent

type EventSender_Send_Call

type EventSender_Send_Call struct {
	*mock.Call
}

EventSender_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'

func (*EventSender_Send_Call) Return

func (*EventSender_Send_Call) Run

func (*EventSender_Send_Call) RunAndReturn

func (_c *EventSender_Send_Call) RunAndReturn(run func(*model.PackageEvent) error) *EventSender_Send_Call

Jump to

Keyboard shortcuts

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