mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFinder

type EventFinder struct {
	mock.Mock
}

EventFinder is an autogenerated mock type for the EventFinder type

func NewEventFinder

func NewEventFinder(t NewEventFinderT) *EventFinder

NewEventFinder creates a new instance of EventFinder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EventFinder) LatestByName

func (_m *EventFinder) LatestByName(ctx context.Context, taskName string) (app.Event, error)

LatestByName provides a mock function with given fields: ctx, taskName

type EventStore

type EventStore struct {
	mock.Mock
}

EventStore is an autogenerated mock type for the EventStore type

func NewEventStore

func NewEventStore(t NewEventStoreT) *EventStore

NewEventStore creates a new instance of EventStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EventStore) Store

func (_m *EventStore) Store(ctx context.Context, event app.Event) error

Store provides a mock function with given fields: ctx, event

type NewEventFinderT

type NewEventFinderT interface {
	mock.TestingT
	Cleanup(func())
}

type NewEventStoreT

type NewEventStoreT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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