eventtest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 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 EventHandler

type EventHandler struct {
	Events       []*models.SearchDataImportModel
	Error        error
	EventUpdated chan bool
}

EventHandler provides a mock implementation that captures events to check.

func NewEventHandler

func NewEventHandler() *EventHandler

NewEventHandler returns a new mock event handler to capture event

func (*EventHandler) Handle

func (handler *EventHandler) Handle(ctx context.Context, url string, events []*models.SearchDataImportModel) error

Handle captures the given event and stores it for later assertions

Jump to

Keyboard shortcuts

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