mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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) EXPECT added in v2.13.1

func (_m *ORM) EXPECT() *ORM_Expecter

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

type ORM_BridgeTypes_Call added in v2.13.1

type ORM_BridgeTypes_Call struct {
	*mock.Call
}

ORM_BridgeTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BridgeTypes'

func (*ORM_BridgeTypes_Call) Return added in v2.13.1

func (*ORM_BridgeTypes_Call) Run added in v2.13.1

func (_c *ORM_BridgeTypes_Call) Run(run func(ctx context.Context, offset int, limit int)) *ORM_BridgeTypes_Call

func (*ORM_BridgeTypes_Call) RunAndReturn added in v2.13.1

type ORM_BulkUpsertBridgeResponse_Call added in v2.13.1

type ORM_BulkUpsertBridgeResponse_Call struct {
	*mock.Call
}

ORM_BulkUpsertBridgeResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpsertBridgeResponse'

func (*ORM_BulkUpsertBridgeResponse_Call) Return added in v2.13.1

func (*ORM_BulkUpsertBridgeResponse_Call) Run added in v2.13.1

func (*ORM_BulkUpsertBridgeResponse_Call) RunAndReturn added in v2.13.1

type ORM_CreateBridgeType_Call added in v2.13.1

type ORM_CreateBridgeType_Call struct {
	*mock.Call
}

ORM_CreateBridgeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBridgeType'

func (*ORM_CreateBridgeType_Call) Return added in v2.13.1

func (*ORM_CreateBridgeType_Call) Run added in v2.13.1

func (*ORM_CreateBridgeType_Call) RunAndReturn added in v2.13.1

type ORM_CreateExternalInitiator_Call added in v2.13.1

type ORM_CreateExternalInitiator_Call struct {
	*mock.Call
}

ORM_CreateExternalInitiator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateExternalInitiator'

func (*ORM_CreateExternalInitiator_Call) Return added in v2.13.1

func (*ORM_CreateExternalInitiator_Call) Run added in v2.13.1

func (*ORM_CreateExternalInitiator_Call) RunAndReturn added in v2.13.1

type ORM_DeleteBridgeType_Call added in v2.13.1

type ORM_DeleteBridgeType_Call struct {
	*mock.Call
}

ORM_DeleteBridgeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBridgeType'

func (*ORM_DeleteBridgeType_Call) Return added in v2.13.1

func (*ORM_DeleteBridgeType_Call) Run added in v2.13.1

func (*ORM_DeleteBridgeType_Call) RunAndReturn added in v2.13.1

type ORM_DeleteExternalInitiator_Call added in v2.13.1

type ORM_DeleteExternalInitiator_Call struct {
	*mock.Call
}

ORM_DeleteExternalInitiator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteExternalInitiator'

func (*ORM_DeleteExternalInitiator_Call) Return added in v2.13.1

func (*ORM_DeleteExternalInitiator_Call) Run added in v2.13.1

func (*ORM_DeleteExternalInitiator_Call) RunAndReturn added in v2.13.1

type ORM_Expecter added in v2.13.1

type ORM_Expecter struct {
	// contains filtered or unexported fields
}

func (*ORM_Expecter) BridgeTypes added in v2.13.1

func (_e *ORM_Expecter) BridgeTypes(ctx interface{}, offset interface{}, limit interface{}) *ORM_BridgeTypes_Call

BridgeTypes is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int

func (*ORM_Expecter) BulkUpsertBridgeResponse added in v2.13.1

func (_e *ORM_Expecter) BulkUpsertBridgeResponse(ctx interface{}, responses interface{}) *ORM_BulkUpsertBridgeResponse_Call

BulkUpsertBridgeResponse is a helper method to define mock.On call

  • ctx context.Context
  • responses []bridges.BridgeResponse

func (*ORM_Expecter) CreateBridgeType added in v2.13.1

func (_e *ORM_Expecter) CreateBridgeType(ctx interface{}, bt interface{}) *ORM_CreateBridgeType_Call

CreateBridgeType is a helper method to define mock.On call

  • ctx context.Context
  • bt *bridges.BridgeType

func (*ORM_Expecter) CreateExternalInitiator added in v2.13.1

func (_e *ORM_Expecter) CreateExternalInitiator(ctx interface{}, externalInitiator interface{}) *ORM_CreateExternalInitiator_Call

CreateExternalInitiator is a helper method to define mock.On call

  • ctx context.Context
  • externalInitiator *bridges.ExternalInitiator

func (*ORM_Expecter) DeleteBridgeType added in v2.13.1

func (_e *ORM_Expecter) DeleteBridgeType(ctx interface{}, bt interface{}) *ORM_DeleteBridgeType_Call

DeleteBridgeType is a helper method to define mock.On call

  • ctx context.Context
  • bt *bridges.BridgeType

func (*ORM_Expecter) DeleteExternalInitiator added in v2.13.1

func (_e *ORM_Expecter) DeleteExternalInitiator(ctx interface{}, name interface{}) *ORM_DeleteExternalInitiator_Call

DeleteExternalInitiator is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*ORM_Expecter) ExternalInitiators added in v2.13.1

func (_e *ORM_Expecter) ExternalInitiators(ctx interface{}, offset interface{}, limit interface{}) *ORM_ExternalInitiators_Call

ExternalInitiators is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int

func (*ORM_Expecter) FindBridge added in v2.13.1

func (_e *ORM_Expecter) FindBridge(ctx interface{}, name interface{}) *ORM_FindBridge_Call

FindBridge is a helper method to define mock.On call

  • ctx context.Context
  • name bridges.BridgeName

func (*ORM_Expecter) FindBridges added in v2.13.1

func (_e *ORM_Expecter) FindBridges(ctx interface{}, name interface{}) *ORM_FindBridges_Call

FindBridges is a helper method to define mock.On call

  • ctx context.Context
  • name []bridges.BridgeName

func (*ORM_Expecter) FindExternalInitiator added in v2.13.1

func (_e *ORM_Expecter) FindExternalInitiator(ctx interface{}, eia interface{}) *ORM_FindExternalInitiator_Call

FindExternalInitiator is a helper method to define mock.On call

  • ctx context.Context
  • eia *auth.Token

func (*ORM_Expecter) FindExternalInitiatorByName added in v2.13.1

func (_e *ORM_Expecter) FindExternalInitiatorByName(ctx interface{}, iname interface{}) *ORM_FindExternalInitiatorByName_Call

FindExternalInitiatorByName is a helper method to define mock.On call

  • ctx context.Context
  • iname string

func (*ORM_Expecter) GetCachedResponse added in v2.13.1

func (_e *ORM_Expecter) GetCachedResponse(ctx interface{}, dotId interface{}, specId interface{}, maxElapsed interface{}) *ORM_GetCachedResponse_Call

GetCachedResponse is a helper method to define mock.On call

  • ctx context.Context
  • dotId string
  • specId int32
  • maxElapsed time.Duration

func (*ORM_Expecter) GetCachedResponseWithFinished added in v2.13.1

func (_e *ORM_Expecter) GetCachedResponseWithFinished(ctx interface{}, dotId interface{}, specId interface{}, maxElapsed interface{}) *ORM_GetCachedResponseWithFinished_Call

GetCachedResponseWithFinished is a helper method to define mock.On call

  • ctx context.Context
  • dotId string
  • specId int32
  • maxElapsed time.Duration

func (*ORM_Expecter) UpdateBridgeType added in v2.13.1

func (_e *ORM_Expecter) UpdateBridgeType(ctx interface{}, bt interface{}, btr interface{}) *ORM_UpdateBridgeType_Call

UpdateBridgeType is a helper method to define mock.On call

  • ctx context.Context
  • bt *bridges.BridgeType
  • btr *bridges.BridgeTypeRequest

func (*ORM_Expecter) UpsertBridgeResponse added in v2.13.1

func (_e *ORM_Expecter) UpsertBridgeResponse(ctx interface{}, dotId interface{}, specId interface{}, response interface{}) *ORM_UpsertBridgeResponse_Call

UpsertBridgeResponse is a helper method to define mock.On call

  • ctx context.Context
  • dotId string
  • specId int32
  • response []byte

func (*ORM_Expecter) WithDataSource added in v2.13.1

func (_e *ORM_Expecter) WithDataSource(_a0 interface{}) *ORM_WithDataSource_Call

WithDataSource is a helper method to define mock.On call

  • _a0 sqlutil.DataSource

type ORM_ExternalInitiators_Call added in v2.13.1

type ORM_ExternalInitiators_Call struct {
	*mock.Call
}

ORM_ExternalInitiators_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExternalInitiators'

func (*ORM_ExternalInitiators_Call) Return added in v2.13.1

func (*ORM_ExternalInitiators_Call) Run added in v2.13.1

func (_c *ORM_ExternalInitiators_Call) Run(run func(ctx context.Context, offset int, limit int)) *ORM_ExternalInitiators_Call

func (*ORM_ExternalInitiators_Call) RunAndReturn added in v2.13.1

type ORM_FindBridge_Call added in v2.13.1

type ORM_FindBridge_Call struct {
	*mock.Call
}

ORM_FindBridge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBridge'

func (*ORM_FindBridge_Call) Return added in v2.13.1

func (*ORM_FindBridge_Call) Run added in v2.13.1

func (*ORM_FindBridge_Call) RunAndReturn added in v2.13.1

type ORM_FindBridges_Call added in v2.13.1

type ORM_FindBridges_Call struct {
	*mock.Call
}

ORM_FindBridges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBridges'

func (*ORM_FindBridges_Call) Return added in v2.13.1

func (*ORM_FindBridges_Call) Run added in v2.13.1

func (*ORM_FindBridges_Call) RunAndReturn added in v2.13.1

type ORM_FindExternalInitiatorByName_Call added in v2.13.1

type ORM_FindExternalInitiatorByName_Call struct {
	*mock.Call
}

ORM_FindExternalInitiatorByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindExternalInitiatorByName'

func (*ORM_FindExternalInitiatorByName_Call) Return added in v2.13.1

func (*ORM_FindExternalInitiatorByName_Call) Run added in v2.13.1

func (*ORM_FindExternalInitiatorByName_Call) RunAndReturn added in v2.13.1

type ORM_FindExternalInitiator_Call added in v2.13.1

type ORM_FindExternalInitiator_Call struct {
	*mock.Call
}

ORM_FindExternalInitiator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindExternalInitiator'

func (*ORM_FindExternalInitiator_Call) Return added in v2.13.1

func (*ORM_FindExternalInitiator_Call) Run added in v2.13.1

func (*ORM_FindExternalInitiator_Call) RunAndReturn added in v2.13.1

type ORM_GetCachedResponseWithFinished_Call added in v2.13.1

type ORM_GetCachedResponseWithFinished_Call struct {
	*mock.Call
}

ORM_GetCachedResponseWithFinished_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedResponseWithFinished'

func (*ORM_GetCachedResponseWithFinished_Call) Return added in v2.13.1

func (*ORM_GetCachedResponseWithFinished_Call) Run added in v2.13.1

func (*ORM_GetCachedResponseWithFinished_Call) RunAndReturn added in v2.13.1

type ORM_GetCachedResponse_Call added in v2.13.1

type ORM_GetCachedResponse_Call struct {
	*mock.Call
}

ORM_GetCachedResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedResponse'

func (*ORM_GetCachedResponse_Call) Return added in v2.13.1

func (*ORM_GetCachedResponse_Call) Run added in v2.13.1

func (_c *ORM_GetCachedResponse_Call) Run(run func(ctx context.Context, dotId string, specId int32, maxElapsed time.Duration)) *ORM_GetCachedResponse_Call

func (*ORM_GetCachedResponse_Call) RunAndReturn added in v2.13.1

type ORM_UpdateBridgeType_Call added in v2.13.1

type ORM_UpdateBridgeType_Call struct {
	*mock.Call
}

ORM_UpdateBridgeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateBridgeType'

func (*ORM_UpdateBridgeType_Call) Return added in v2.13.1

func (*ORM_UpdateBridgeType_Call) Run added in v2.13.1

func (*ORM_UpdateBridgeType_Call) RunAndReturn added in v2.13.1

type ORM_UpsertBridgeResponse_Call added in v2.13.1

type ORM_UpsertBridgeResponse_Call struct {
	*mock.Call
}

ORM_UpsertBridgeResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertBridgeResponse'

func (*ORM_UpsertBridgeResponse_Call) Return added in v2.13.1

func (*ORM_UpsertBridgeResponse_Call) Run added in v2.13.1

func (_c *ORM_UpsertBridgeResponse_Call) Run(run func(ctx context.Context, dotId string, specId int32, response []byte)) *ORM_UpsertBridgeResponse_Call

func (*ORM_UpsertBridgeResponse_Call) RunAndReturn added in v2.13.1

type ORM_WithDataSource_Call added in v2.13.1

type ORM_WithDataSource_Call struct {
	*mock.Call
}

ORM_WithDataSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithDataSource'

func (*ORM_WithDataSource_Call) Return added in v2.13.1

func (*ORM_WithDataSource_Call) Run added in v2.13.1

func (*ORM_WithDataSource_Call) RunAndReturn added in v2.13.1

Jump to

Keyboard shortcuts

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