mocks

package
v0.0.0-...-34cbb95 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. 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 (*DB) GetFlowExecution

func (_m *DB) GetFlowExecution(ctx context.Context, id string) (*louhi.FlowExecution, error)

GetFlowExecution provides a mock function with given fields: ctx, id

func (*DB) GetLatestFlowExecutions

func (_m *DB) GetLatestFlowExecutions(ctx context.Context) (map[string]*louhi.FlowExecution, error)

GetLatestFlowExecutions provides a mock function with given fields: ctx

func (*DB) PutFlowExecution

func (_m *DB) PutFlowExecution(ctx context.Context, fe *louhi.FlowExecution) error

PutFlowExecution provides a mock function with given fields: ctx, fe

Jump to

Keyboard shortcuts

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