mocks

package
v2.10.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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 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(offset int, limit int) ([]bridges.BridgeType, int, error)

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

func (*ORM) CreateBridgeType

func (_m *ORM) CreateBridgeType(bt *bridges.BridgeType) error

CreateBridgeType provides a mock function with given fields: bt

func (*ORM) CreateExternalInitiator

func (_m *ORM) CreateExternalInitiator(externalInitiator *bridges.ExternalInitiator) error

CreateExternalInitiator provides a mock function with given fields: externalInitiator

func (*ORM) DeleteBridgeType

func (_m *ORM) DeleteBridgeType(bt *bridges.BridgeType) error

DeleteBridgeType provides a mock function with given fields: bt

func (*ORM) DeleteExternalInitiator

func (_m *ORM) DeleteExternalInitiator(name string) error

DeleteExternalInitiator provides a mock function with given fields: name

func (*ORM) ExternalInitiators

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

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

func (*ORM) FindBridge

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

FindBridge provides a mock function with given fields: name

func (*ORM) FindBridges

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

FindBridges provides a mock function with given fields: name

func (*ORM) FindExternalInitiator

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

FindExternalInitiator provides a mock function with given fields: eia

func (*ORM) FindExternalInitiatorByName

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

FindExternalInitiatorByName provides a mock function with given fields: iname

func (*ORM) GetCachedResponse

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

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

func (*ORM) UpdateBridgeType

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

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

func (*ORM) UpsertBridgeResponse

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

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

Jump to

Keyboard shortcuts

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