mocks

package
v2.12.0-beta2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM

func NewORM(t interface {
	mock.TestingT
	Cleanup(func())
}) *ORM

NewORM creates a new instance of ORM. 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 (*ORM) BridgeTypes

func (_m *ORM) BridgeTypes(ctx context.Context, offset int, limit int) ([]bridges.BridgeType, int, error)

BridgeTypes provides a mock function with given fields: ctx, offset, limit

func (*ORM) CreateBridgeType

func (_m *ORM) CreateBridgeType(ctx context.Context, bt *bridges.BridgeType) error

CreateBridgeType provides a mock function with given fields: ctx, bt

func (*ORM) CreateExternalInitiator

func (_m *ORM) CreateExternalInitiator(ctx context.Context, externalInitiator *bridges.ExternalInitiator) error

CreateExternalInitiator provides a mock function with given fields: ctx, externalInitiator

func (*ORM) DeleteBridgeType

func (_m *ORM) DeleteBridgeType(ctx context.Context, bt *bridges.BridgeType) error

DeleteBridgeType provides a mock function with given fields: ctx, bt

func (*ORM) DeleteExternalInitiator

func (_m *ORM) DeleteExternalInitiator(ctx context.Context, name string) error

DeleteExternalInitiator provides a mock function with given fields: ctx, name

func (*ORM) ExternalInitiators

func (_m *ORM) ExternalInitiators(ctx context.Context, offset int, limit int) ([]bridges.ExternalInitiator, int, error)

ExternalInitiators provides a mock function with given fields: ctx, offset, limit

func (*ORM) FindBridge

func (_m *ORM) FindBridge(ctx context.Context, name bridges.BridgeName) (bridges.BridgeType, error)

FindBridge provides a mock function with given fields: ctx, name

func (*ORM) FindBridges

func (_m *ORM) FindBridges(ctx context.Context, name []bridges.BridgeName) ([]bridges.BridgeType, error)

FindBridges provides a mock function with given fields: ctx, name

func (*ORM) FindExternalInitiator

func (_m *ORM) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)

FindExternalInitiator provides a mock function with given fields: ctx, eia

func (*ORM) FindExternalInitiatorByName

func (_m *ORM) FindExternalInitiatorByName(ctx context.Context, iname string) (bridges.ExternalInitiator, error)

FindExternalInitiatorByName provides a mock function with given fields: ctx, iname

func (*ORM) GetCachedResponse

func (_m *ORM) GetCachedResponse(ctx context.Context, dotId string, specId int32, maxElapsed time.Duration) ([]byte, error)

GetCachedResponse provides a mock function with given fields: ctx, dotId, specId, maxElapsed

func (*ORM) UpdateBridgeType

func (_m *ORM) UpdateBridgeType(ctx context.Context, bt *bridges.BridgeType, btr *bridges.BridgeTypeRequest) error

UpdateBridgeType provides a mock function with given fields: ctx, bt, btr

func (*ORM) UpsertBridgeResponse

func (_m *ORM) UpsertBridgeResponse(ctx context.Context, dotId string, specId int32, response []byte) error

UpsertBridgeResponse provides a mock function with given fields: ctx, dotId, specId, response

func (*ORM) WithDataSource added in v2.12.0

func (_m *ORM) WithDataSource(_a0 sqlutil.DataSource) bridges.ORM

WithDataSource provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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