mocks

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) BulkUpsertBridgeResponse added in v2.13.1

func (_m *ORM) BulkUpsertBridgeResponse(ctx context.Context, responses []bridges.BridgeResponse) error

BulkUpsertBridgeResponse provides a mock function with given fields: ctx, responses

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) GetCachedResponseWithFinished added in v2.13.1

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

GetCachedResponseWithFinished 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