Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityBridgeScanner

type ActivityBridgeScanner struct {
	mock.Mock
}

ActivityBridgeScanner is an autogenerated mock type for the ActivityBridgeScanner type

func NewActivityBridgeScanner

func NewActivityBridgeScanner(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityBridgeScanner

NewActivityBridgeScanner creates a new instance of ActivityBridgeScanner. 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 (*ActivityBridgeScanner) BridgesFrom

BridgesFrom provides a mock function with given fields: ctx, fromAddress, known

func (*ActivityBridgeScanner) EXPECT

type ActivityBridgeScanner_BridgesFrom_Call

type ActivityBridgeScanner_BridgesFrom_Call struct {
	*mock.Call
}

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

func (*ActivityBridgeScanner_BridgesFrom_Call) Return

func (*ActivityBridgeScanner_BridgesFrom_Call) Run

type ActivityBridgeScanner_Expecter

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

func (*ActivityBridgeScanner_Expecter) BridgesFrom

func (_e *ActivityBridgeScanner_Expecter) BridgesFrom(ctx interface{}, fromAddress interface{}, known interface{}) *ActivityBridgeScanner_BridgesFrom_Call

BridgesFrom is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address
  • known map[string]domain.KnownBridge

type ActivityClaimChecker

type ActivityClaimChecker struct {
	mock.Mock
}

ActivityClaimChecker is an autogenerated mock type for the ActivityClaimChecker type

func NewActivityClaimChecker

func NewActivityClaimChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityClaimChecker

NewActivityClaimChecker creates a new instance of ActivityClaimChecker. 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 (*ActivityClaimChecker) ClaimInfo

ClaimInfo provides a mock function with given fields: ctx, bridge

func (*ActivityClaimChecker) EXPECT

func (*ActivityClaimChecker) IsClaimed

func (_m *ActivityClaimChecker) IsClaimed(ctx context.Context, bridge *domain.ScannedBridge) (bool, error)

IsClaimed provides a mock function with given fields: ctx, bridge

func (*ActivityClaimChecker) IsReadyToClaim

func (_m *ActivityClaimChecker) IsReadyToClaim(ctx context.Context, bridge *domain.ScannedBridge) (bool, error)

IsReadyToClaim provides a mock function with given fields: ctx, bridge

type ActivityClaimChecker_ClaimInfo_Call

type ActivityClaimChecker_ClaimInfo_Call struct {
	*mock.Call
}

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

func (*ActivityClaimChecker_ClaimInfo_Call) Return

func (*ActivityClaimChecker_ClaimInfo_Call) Run

func (*ActivityClaimChecker_ClaimInfo_Call) RunAndReturn

type ActivityClaimChecker_Expecter

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

func (*ActivityClaimChecker_Expecter) ClaimInfo

func (_e *ActivityClaimChecker_Expecter) ClaimInfo(ctx interface{}, bridge interface{}) *ActivityClaimChecker_ClaimInfo_Call

ClaimInfo is a helper method to define mock.On call

  • ctx context.Context
  • bridge *domain.ScannedBridge

func (*ActivityClaimChecker_Expecter) IsClaimed

func (_e *ActivityClaimChecker_Expecter) IsClaimed(ctx interface{}, bridge interface{}) *ActivityClaimChecker_IsClaimed_Call

IsClaimed is a helper method to define mock.On call

  • ctx context.Context
  • bridge *domain.ScannedBridge

func (*ActivityClaimChecker_Expecter) IsReadyToClaim

func (_e *ActivityClaimChecker_Expecter) IsReadyToClaim(ctx interface{}, bridge interface{}) *ActivityClaimChecker_IsReadyToClaim_Call

IsReadyToClaim is a helper method to define mock.On call

  • ctx context.Context
  • bridge *domain.ScannedBridge

type ActivityClaimChecker_IsClaimed_Call

type ActivityClaimChecker_IsClaimed_Call struct {
	*mock.Call
}

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

func (*ActivityClaimChecker_IsClaimed_Call) Return

func (*ActivityClaimChecker_IsClaimed_Call) Run

func (*ActivityClaimChecker_IsClaimed_Call) RunAndReturn

type ActivityClaimChecker_IsReadyToClaim_Call

type ActivityClaimChecker_IsReadyToClaim_Call struct {
	*mock.Call
}

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

func (*ActivityClaimChecker_IsReadyToClaim_Call) Return

func (*ActivityClaimChecker_IsReadyToClaim_Call) Run

func (*ActivityClaimChecker_IsReadyToClaim_Call) RunAndReturn

type ActivityQuerier

type ActivityQuerier struct {
	mock.Mock
}

ActivityQuerier is an autogenerated mock type for the ActivityQuerier type

func NewActivityQuerier

func NewActivityQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityQuerier

NewActivityQuerier creates a new instance of ActivityQuerier. 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 (*ActivityQuerier) EXPECT

func (*ActivityQuerier) FlushActivity

func (_m *ActivityQuerier) FlushActivity(fromAddress common.Address)

FlushActivity provides a mock function with given fields: fromAddress

func (*ActivityQuerier) GetActivity

func (_m *ActivityQuerier) GetActivity(ctx context.Context, fromAddress common.Address, includeTracking bool, filter types.ActivityFilter) ([]*domain.ActivityEntry, []domain.ActivityWarning, error)

GetActivity provides a mock function with given fields: ctx, fromAddress, includeTracking, filter

type ActivityQuerier_Expecter

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

func (*ActivityQuerier_Expecter) FlushActivity

func (_e *ActivityQuerier_Expecter) FlushActivity(fromAddress interface{}) *ActivityQuerier_FlushActivity_Call

FlushActivity is a helper method to define mock.On call

  • fromAddress common.Address

func (*ActivityQuerier_Expecter) GetActivity

func (_e *ActivityQuerier_Expecter) GetActivity(ctx interface{}, fromAddress interface{}, includeTracking interface{}, filter interface{}) *ActivityQuerier_GetActivity_Call

GetActivity is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address
  • includeTracking bool
  • filter types.ActivityFilter

type ActivityQuerier_FlushActivity_Call

type ActivityQuerier_FlushActivity_Call struct {
	*mock.Call
}

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

func (*ActivityQuerier_FlushActivity_Call) Return

func (*ActivityQuerier_FlushActivity_Call) Run

func (*ActivityQuerier_FlushActivity_Call) RunAndReturn

type ActivityQuerier_GetActivity_Call

type ActivityQuerier_GetActivity_Call struct {
	*mock.Call
}

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

func (*ActivityQuerier_GetActivity_Call) Return

func (*ActivityQuerier_GetActivity_Call) Run

func (_c *ActivityQuerier_GetActivity_Call) Run(run func(ctx context.Context, fromAddress common.Address, includeTracking bool, filter types.ActivityFilter)) *ActivityQuerier_GetActivity_Call

type ActivityRegistry

type ActivityRegistry struct {
	mock.Mock
}

ActivityRegistry is an autogenerated mock type for the ActivityRegistry type

func NewActivityRegistry

func NewActivityRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityRegistry

NewActivityRegistry creates a new instance of ActivityRegistry. 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 (*ActivityRegistry) EXPECT

func (*ActivityRegistry) FlushActivity

func (_m *ActivityRegistry) FlushActivity(fromAddress common.Address)

FlushActivity provides a mock function with given fields: fromAddress

func (*ActivityRegistry) GetActiveAddresses

func (_m *ActivityRegistry) GetActiveAddresses() ([]common.Address, error)

GetActiveAddresses provides a mock function with no fields

func (*ActivityRegistry) GetActivity

func (_m *ActivityRegistry) GetActivity(ctx context.Context, fromAddress common.Address, includeTracking bool, filter types.ActivityFilter) ([]*domain.ActivityEntry, []domain.ActivityWarning, error)

GetActivity provides a mock function with given fields: ctx, fromAddress, includeTracking, filter

func (*ActivityRegistry) PruneIdle

func (_m *ActivityRegistry) PruneIdle(olderThan time.Time) (int, error)

PruneIdle provides a mock function with given fields: olderThan

func (*ActivityRegistry) RefreshAddress

func (_m *ActivityRegistry) RefreshAddress(ctx context.Context, fromAddress common.Address) error

RefreshAddress provides a mock function with given fields: ctx, fromAddress

func (*ActivityRegistry) RegisterAndAwait

func (_m *ActivityRegistry) RegisterAndAwait(fromAddress common.Address, includeTracking bool, timeout time.Duration) (bool, error)

RegisterAndAwait provides a mock function with given fields: fromAddress, includeTracking, timeout

type ActivityRegistry_Expecter

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

func (*ActivityRegistry_Expecter) FlushActivity

func (_e *ActivityRegistry_Expecter) FlushActivity(fromAddress interface{}) *ActivityRegistry_FlushActivity_Call

FlushActivity is a helper method to define mock.On call

  • fromAddress common.Address

func (*ActivityRegistry_Expecter) GetActiveAddresses

GetActiveAddresses is a helper method to define mock.On call

func (*ActivityRegistry_Expecter) GetActivity

func (_e *ActivityRegistry_Expecter) GetActivity(ctx interface{}, fromAddress interface{}, includeTracking interface{}, filter interface{}) *ActivityRegistry_GetActivity_Call

GetActivity is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address
  • includeTracking bool
  • filter types.ActivityFilter

func (*ActivityRegistry_Expecter) PruneIdle

func (_e *ActivityRegistry_Expecter) PruneIdle(olderThan interface{}) *ActivityRegistry_PruneIdle_Call

PruneIdle is a helper method to define mock.On call

  • olderThan time.Time

func (*ActivityRegistry_Expecter) RefreshAddress

func (_e *ActivityRegistry_Expecter) RefreshAddress(ctx interface{}, fromAddress interface{}) *ActivityRegistry_RefreshAddress_Call

RefreshAddress is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address

func (*ActivityRegistry_Expecter) RegisterAndAwait

func (_e *ActivityRegistry_Expecter) RegisterAndAwait(fromAddress interface{}, includeTracking interface{}, timeout interface{}) *ActivityRegistry_RegisterAndAwait_Call

RegisterAndAwait is a helper method to define mock.On call

  • fromAddress common.Address
  • includeTracking bool
  • timeout time.Duration

type ActivityRegistry_FlushActivity_Call

type ActivityRegistry_FlushActivity_Call struct {
	*mock.Call
}

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

func (*ActivityRegistry_FlushActivity_Call) Return

func (*ActivityRegistry_FlushActivity_Call) Run

func (*ActivityRegistry_FlushActivity_Call) RunAndReturn

type ActivityRegistry_GetActiveAddresses_Call

type ActivityRegistry_GetActiveAddresses_Call struct {
	*mock.Call
}

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

func (*ActivityRegistry_GetActiveAddresses_Call) Return

func (*ActivityRegistry_GetActiveAddresses_Call) Run

func (*ActivityRegistry_GetActiveAddresses_Call) RunAndReturn

type ActivityRegistry_GetActivity_Call

type ActivityRegistry_GetActivity_Call struct {
	*mock.Call
}

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

func (*ActivityRegistry_GetActivity_Call) Return

func (*ActivityRegistry_GetActivity_Call) Run

func (_c *ActivityRegistry_GetActivity_Call) Run(run func(ctx context.Context, fromAddress common.Address, includeTracking bool, filter types.ActivityFilter)) *ActivityRegistry_GetActivity_Call

type ActivityRegistry_PruneIdle_Call

type ActivityRegistry_PruneIdle_Call struct {
	*mock.Call
}

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

func (*ActivityRegistry_PruneIdle_Call) Return

func (*ActivityRegistry_PruneIdle_Call) Run

func (*ActivityRegistry_PruneIdle_Call) RunAndReturn

type ActivityRegistry_RefreshAddress_Call

type ActivityRegistry_RefreshAddress_Call struct {
	*mock.Call
}

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

func (*ActivityRegistry_RefreshAddress_Call) Return

func (*ActivityRegistry_RefreshAddress_Call) Run

func (*ActivityRegistry_RefreshAddress_Call) RunAndReturn

type ActivityRegistry_RegisterAndAwait_Call

type ActivityRegistry_RegisterAndAwait_Call struct {
	*mock.Call
}

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

func (*ActivityRegistry_RegisterAndAwait_Call) Return

func (*ActivityRegistry_RegisterAndAwait_Call) Run

func (_c *ActivityRegistry_RegisterAndAwait_Call) Run(run func(fromAddress common.Address, includeTracking bool, timeout time.Duration)) *ActivityRegistry_RegisterAndAwait_Call

func (*ActivityRegistry_RegisterAndAwait_Call) RunAndReturn

type ActivitySupervisedStore

type ActivitySupervisedStore struct {
	mock.Mock
}

ActivitySupervisedStore is an autogenerated mock type for the ActivitySupervisedStore type

func NewActivitySupervisedStore

func NewActivitySupervisedStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivitySupervisedStore

NewActivitySupervisedStore creates a new instance of ActivitySupervisedStore. 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 (*ActivitySupervisedStore) EXPECT

func (*ActivitySupervisedStore) GetActiveAddresses

func (_m *ActivitySupervisedStore) GetActiveAddresses() ([]common.Address, error)

GetActiveAddresses provides a mock function with no fields

func (*ActivitySupervisedStore) PruneIdle

func (_m *ActivitySupervisedStore) PruneIdle(olderThan time.Time) (int, error)

PruneIdle provides a mock function with given fields: olderThan

func (*ActivitySupervisedStore) RefreshAddress

func (_m *ActivitySupervisedStore) RefreshAddress(ctx context.Context, fromAddress common.Address) error

RefreshAddress provides a mock function with given fields: ctx, fromAddress

func (*ActivitySupervisedStore) RegisterAndAwait

func (_m *ActivitySupervisedStore) RegisterAndAwait(fromAddress common.Address, includeTracking bool, timeout time.Duration) (bool, error)

RegisterAndAwait provides a mock function with given fields: fromAddress, includeTracking, timeout

type ActivitySupervisedStore_Expecter

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

func (*ActivitySupervisedStore_Expecter) GetActiveAddresses

GetActiveAddresses is a helper method to define mock.On call

func (*ActivitySupervisedStore_Expecter) PruneIdle

func (_e *ActivitySupervisedStore_Expecter) PruneIdle(olderThan interface{}) *ActivitySupervisedStore_PruneIdle_Call

PruneIdle is a helper method to define mock.On call

  • olderThan time.Time

func (*ActivitySupervisedStore_Expecter) RefreshAddress

func (_e *ActivitySupervisedStore_Expecter) RefreshAddress(ctx interface{}, fromAddress interface{}) *ActivitySupervisedStore_RefreshAddress_Call

RefreshAddress is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address

func (*ActivitySupervisedStore_Expecter) RegisterAndAwait

func (_e *ActivitySupervisedStore_Expecter) RegisterAndAwait(fromAddress interface{}, includeTracking interface{}, timeout interface{}) *ActivitySupervisedStore_RegisterAndAwait_Call

RegisterAndAwait is a helper method to define mock.On call

  • fromAddress common.Address
  • includeTracking bool
  • timeout time.Duration

type ActivitySupervisedStore_GetActiveAddresses_Call

type ActivitySupervisedStore_GetActiveAddresses_Call struct {
	*mock.Call
}

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

func (*ActivitySupervisedStore_GetActiveAddresses_Call) Return

func (*ActivitySupervisedStore_GetActiveAddresses_Call) Run

func (*ActivitySupervisedStore_GetActiveAddresses_Call) RunAndReturn

type ActivitySupervisedStore_PruneIdle_Call

type ActivitySupervisedStore_PruneIdle_Call struct {
	*mock.Call
}

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

func (*ActivitySupervisedStore_PruneIdle_Call) Return

func (*ActivitySupervisedStore_PruneIdle_Call) Run

func (*ActivitySupervisedStore_PruneIdle_Call) RunAndReturn

type ActivitySupervisedStore_RefreshAddress_Call

type ActivitySupervisedStore_RefreshAddress_Call struct {
	*mock.Call
}

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

func (*ActivitySupervisedStore_RefreshAddress_Call) Return

func (*ActivitySupervisedStore_RefreshAddress_Call) Run

func (*ActivitySupervisedStore_RefreshAddress_Call) RunAndReturn

type ActivitySupervisedStore_RegisterAndAwait_Call

type ActivitySupervisedStore_RegisterAndAwait_Call struct {
	*mock.Call
}

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

func (*ActivitySupervisedStore_RegisterAndAwait_Call) Return

func (*ActivitySupervisedStore_RegisterAndAwait_Call) Run

func (*ActivitySupervisedStore_RegisterAndAwait_Call) RunAndReturn

type ActivityTriggerable

type ActivityTriggerable struct {
	mock.Mock
}

ActivityTriggerable is an autogenerated mock type for the ActivityTriggerable type

func NewActivityTriggerable

func NewActivityTriggerable(t interface {
	mock.TestingT
	Cleanup(func())
}) *ActivityTriggerable

NewActivityTriggerable creates a new instance of ActivityTriggerable. 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 (*ActivityTriggerable) EXPECT

func (*ActivityTriggerable) Triggers

func (_m *ActivityTriggerable) Triggers() <-chan common.Address

Triggers provides a mock function with no fields

type ActivityTriggerable_Expecter

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

func (*ActivityTriggerable_Expecter) Triggers

Triggers is a helper method to define mock.On call

type ActivityTriggerable_Triggers_Call

type ActivityTriggerable_Triggers_Call struct {
	*mock.Call
}

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

func (*ActivityTriggerable_Triggers_Call) Return

func (*ActivityTriggerable_Triggers_Call) Run

func (*ActivityTriggerable_Triggers_Call) RunAndReturn

type BridgeEventSource

type BridgeEventSource struct {
	mock.Mock
}

BridgeEventSource is an autogenerated mock type for the BridgeEventSource type

func NewBridgeEventSource

func NewBridgeEventSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *BridgeEventSource

NewBridgeEventSource creates a new instance of BridgeEventSource. 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 (*BridgeEventSource) EXPECT

func (*BridgeEventSource) FindBridge

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

type BridgeEventSource_Expecter

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

func (*BridgeEventSource_Expecter) FindBridge

func (_e *BridgeEventSource_Expecter) FindBridge(ctx interface{}, id interface{}) *BridgeEventSource_FindBridge_Call

FindBridge is a helper method to define mock.On call

  • ctx context.Context
  • id domain.TrackingID

type BridgeEventSource_FindBridge_Call

type BridgeEventSource_FindBridge_Call struct {
	*mock.Call
}

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

func (*BridgeEventSource_FindBridge_Call) Return

func (*BridgeEventSource_FindBridge_Call) Run

func (*BridgeEventSource_FindBridge_Call) RunAndReturn

type CertificateSource

type CertificateSource struct {
	mock.Mock
}

CertificateSource is an autogenerated mock type for the CertificateSource type

func NewCertificateSource

func NewCertificateSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertificateSource

NewCertificateSource creates a new instance of CertificateSource. 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 (*CertificateSource) CertificateFor

CertificateFor provides a mock function with given fields: ctx, bridge

func (*CertificateSource) EXPECT

type CertificateSource_CertificateFor_Call

type CertificateSource_CertificateFor_Call struct {
	*mock.Call
}

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

func (*CertificateSource_CertificateFor_Call) Return

func (*CertificateSource_CertificateFor_Call) Run

type CertificateSource_Expecter

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

func (*CertificateSource_Expecter) CertificateFor

func (_e *CertificateSource_Expecter) CertificateFor(ctx interface{}, bridge interface{}) *CertificateSource_CertificateFor_Call

CertificateFor is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

type ClaimChecker

type ClaimChecker struct {
	mock.Mock
}

ClaimChecker is an autogenerated mock type for the ClaimChecker type

func NewClaimChecker

func NewClaimChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClaimChecker

NewClaimChecker creates a new instance of ClaimChecker. 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 (*ClaimChecker) EXPECT

func (_m *ClaimChecker) EXPECT() *ClaimChecker_Expecter

func (*ClaimChecker) IsClaimed

func (_m *ClaimChecker) IsClaimed(ctx context.Context, bridge *bridgetracker.BridgeInfo) (bool, error)

IsClaimed provides a mock function with given fields: ctx, bridge

type ClaimChecker_Expecter

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

func (*ClaimChecker_Expecter) IsClaimed

func (_e *ClaimChecker_Expecter) IsClaimed(ctx interface{}, bridge interface{}) *ClaimChecker_IsClaimed_Call

IsClaimed is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

type ClaimChecker_IsClaimed_Call

type ClaimChecker_IsClaimed_Call struct {
	*mock.Call
}

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

func (*ClaimChecker_IsClaimed_Call) Return

func (*ClaimChecker_IsClaimed_Call) Run

func (*ClaimChecker_IsClaimed_Call) RunAndReturn

type ClaimSource

type ClaimSource struct {
	mock.Mock
}

ClaimSource is an autogenerated mock type for the ClaimSource type

func NewClaimSource

func NewClaimSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClaimSource

NewClaimSource creates a new instance of ClaimSource. 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 (*ClaimSource) ClaimFor

func (_m *ClaimSource) ClaimFor(ctx context.Context, bridge *bridgetracker.BridgeInfo) (*types.ClaimResult, error)

ClaimFor provides a mock function with given fields: ctx, bridge

func (*ClaimSource) EXPECT

func (_m *ClaimSource) EXPECT() *ClaimSource_Expecter

type ClaimSource_ClaimFor_Call

type ClaimSource_ClaimFor_Call struct {
	*mock.Call
}

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

func (*ClaimSource_ClaimFor_Call) Return

func (*ClaimSource_ClaimFor_Call) Run

func (*ClaimSource_ClaimFor_Call) RunAndReturn

type ClaimSource_Expecter

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

func (*ClaimSource_Expecter) ClaimFor

func (_e *ClaimSource_Expecter) ClaimFor(ctx interface{}, bridge interface{}) *ClaimSource_ClaimFor_Call

ClaimFor is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

type GERSource

type GERSource struct {
	mock.Mock
}

GERSource is an autogenerated mock type for the GERSource type

func NewGERSource

func NewGERSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *GERSource

NewGERSource creates a new instance of GERSource. 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 (*GERSource) EXPECT

func (_m *GERSource) EXPECT() *GERSource_Expecter

func (*GERSource) InjectedGER

func (_m *GERSource) InjectedGER(ctx context.Context, bridge *bridgetracker.BridgeInfo) (*types.GERData, error)

InjectedGER provides a mock function with given fields: ctx, bridge

func (*GERSource) InjectedGERAtIndex

func (_m *GERSource) InjectedGERAtIndex(ctx context.Context, bridge *bridgetracker.BridgeInfo, leafIndex uint32) (*types.GERData, error)

InjectedGERAtIndex provides a mock function with given fields: ctx, bridge, leafIndex

func (*GERSource) L1InfoTreeIndexForBridge

func (_m *GERSource) L1InfoTreeIndexForBridge(ctx context.Context, bridge *bridgetracker.BridgeInfo) (*uint32, error)

L1InfoTreeIndexForBridge provides a mock function with given fields: ctx, bridge

func (*GERSource) L1InfoTreeIndexForGER

func (_m *GERSource) L1InfoTreeIndexForGER(ctx context.Context, bridge *bridgetracker.BridgeInfo, ger common.Hash) (*uint32, error)

L1InfoTreeIndexForGER provides a mock function with given fields: ctx, bridge, ger

func (*GERSource) OriginGER

func (_m *GERSource) OriginGER(ctx context.Context, bridge *bridgetracker.BridgeInfo) (*types.GERData, error)

OriginGER provides a mock function with given fields: ctx, bridge

type GERSource_Expecter

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

func (*GERSource_Expecter) InjectedGER

func (_e *GERSource_Expecter) InjectedGER(ctx interface{}, bridge interface{}) *GERSource_InjectedGER_Call

InjectedGER is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

func (*GERSource_Expecter) InjectedGERAtIndex

func (_e *GERSource_Expecter) InjectedGERAtIndex(ctx interface{}, bridge interface{}, leafIndex interface{}) *GERSource_InjectedGERAtIndex_Call

InjectedGERAtIndex is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo
  • leafIndex uint32

func (*GERSource_Expecter) L1InfoTreeIndexForBridge

func (_e *GERSource_Expecter) L1InfoTreeIndexForBridge(ctx interface{}, bridge interface{}) *GERSource_L1InfoTreeIndexForBridge_Call

L1InfoTreeIndexForBridge is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

func (*GERSource_Expecter) L1InfoTreeIndexForGER

func (_e *GERSource_Expecter) L1InfoTreeIndexForGER(ctx interface{}, bridge interface{}, ger interface{}) *GERSource_L1InfoTreeIndexForGER_Call

L1InfoTreeIndexForGER is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo
  • ger common.Hash

func (*GERSource_Expecter) OriginGER

func (_e *GERSource_Expecter) OriginGER(ctx interface{}, bridge interface{}) *GERSource_OriginGER_Call

OriginGER is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

type GERSource_InjectedGERAtIndex_Call

type GERSource_InjectedGERAtIndex_Call struct {
	*mock.Call
}

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

func (*GERSource_InjectedGERAtIndex_Call) Return

func (*GERSource_InjectedGERAtIndex_Call) Run

func (*GERSource_InjectedGERAtIndex_Call) RunAndReturn

type GERSource_InjectedGER_Call

type GERSource_InjectedGER_Call struct {
	*mock.Call
}

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

func (*GERSource_InjectedGER_Call) Return

func (*GERSource_InjectedGER_Call) Run

func (*GERSource_InjectedGER_Call) RunAndReturn

type GERSource_L1InfoTreeIndexForBridge_Call

type GERSource_L1InfoTreeIndexForBridge_Call struct {
	*mock.Call
}

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

func (*GERSource_L1InfoTreeIndexForBridge_Call) Return

func (*GERSource_L1InfoTreeIndexForBridge_Call) Run

func (*GERSource_L1InfoTreeIndexForBridge_Call) RunAndReturn

type GERSource_L1InfoTreeIndexForGER_Call

type GERSource_L1InfoTreeIndexForGER_Call struct {
	*mock.Call
}

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

func (*GERSource_L1InfoTreeIndexForGER_Call) Return

func (*GERSource_L1InfoTreeIndexForGER_Call) Run

func (*GERSource_L1InfoTreeIndexForGER_Call) RunAndReturn

type GERSource_OriginGER_Call

type GERSource_OriginGER_Call struct {
	*mock.Call
}

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

func (*GERSource_OriginGER_Call) Return

func (*GERSource_OriginGER_Call) Run

func (*GERSource_OriginGER_Call) RunAndReturn

type LERSource

type LERSource struct {
	mock.Mock
}

LERSource is an autogenerated mock type for the LERSource type

func NewLERSource

func NewLERSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *LERSource

NewLERSource creates a new instance of LERSource. 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 (*LERSource) EXPECT

func (_m *LERSource) EXPECT() *LERSource_Expecter

func (*LERSource) OriginLER

func (_m *LERSource) OriginLER(ctx context.Context, bridge *bridgetracker.BridgeInfo) (*types.LERUpdateResult, error)

OriginLER provides a mock function with given fields: ctx, bridge

type LERSource_Expecter

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

func (*LERSource_Expecter) OriginLER

func (_e *LERSource_Expecter) OriginLER(ctx interface{}, bridge interface{}) *LERSource_OriginLER_Call

OriginLER is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo

type LERSource_OriginLER_Call

type LERSource_OriginLER_Call struct {
	*mock.Call
}

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

func (*LERSource_OriginLER_Call) Return

func (*LERSource_OriginLER_Call) Run

func (*LERSource_OriginLER_Call) RunAndReturn

type SettlementSource

type SettlementSource struct {
	mock.Mock
}

SettlementSource is an autogenerated mock type for the SettlementSource type

func NewSettlementSource

func NewSettlementSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *SettlementSource

NewSettlementSource creates a new instance of SettlementSource. 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 (*SettlementSource) EXPECT

func (*SettlementSource) SettlementGERUpdate

func (_m *SettlementSource) SettlementGERUpdate(ctx context.Context, bridge *bridgetracker.BridgeInfo, settlementTxHash common.Hash) (*types.L1SettledGERResult, error)

SettlementGERUpdate provides a mock function with given fields: ctx, bridge, settlementTxHash

type SettlementSource_Expecter

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

func (*SettlementSource_Expecter) SettlementGERUpdate

func (_e *SettlementSource_Expecter) SettlementGERUpdate(ctx interface{}, bridge interface{}, settlementTxHash interface{}) *SettlementSource_SettlementGERUpdate_Call

SettlementGERUpdate is a helper method to define mock.On call

  • ctx context.Context
  • bridge *bridgetracker.BridgeInfo
  • settlementTxHash common.Hash

type SettlementSource_SettlementGERUpdate_Call

type SettlementSource_SettlementGERUpdate_Call struct {
	*mock.Call
}

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

func (*SettlementSource_SettlementGERUpdate_Call) Return

func (*SettlementSource_SettlementGERUpdate_Call) Run

type StatusNotifier

type StatusNotifier struct {
	mock.Mock
}

StatusNotifier is an autogenerated mock type for the StatusNotifier type

func NewStatusNotifier

func NewStatusNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusNotifier

NewStatusNotifier creates a new instance of StatusNotifier. 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 (*StatusNotifier) EXPECT

func (*StatusNotifier) Subscribe

func (_m *StatusNotifier) Subscribe(id domain.TrackingID) (<-chan *domain.TrackingData, func(), error)

Subscribe provides a mock function with given fields: id

type StatusNotifier_Expecter

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

func (*StatusNotifier_Expecter) Subscribe

func (_e *StatusNotifier_Expecter) Subscribe(id interface{}) *StatusNotifier_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id domain.TrackingID

type StatusNotifier_Subscribe_Call

type StatusNotifier_Subscribe_Call struct {
	*mock.Call
}

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

func (*StatusNotifier_Subscribe_Call) Return

func (_c *StatusNotifier_Subscribe_Call) Return(_a0 <-chan *domain.TrackingData, _a1 func(), _a2 error) *StatusNotifier_Subscribe_Call

func (*StatusNotifier_Subscribe_Call) Run

func (*StatusNotifier_Subscribe_Call) RunAndReturn

type SupervisedRegistry

type SupervisedRegistry struct {
	mock.Mock
}

SupervisedRegistry is an autogenerated mock type for the SupervisedRegistry type

func NewSupervisedRegistry

func NewSupervisedRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *SupervisedRegistry

NewSupervisedRegistry creates a new instance of SupervisedRegistry. 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 (*SupervisedRegistry) EXPECT

func (*SupervisedRegistry) Forget

func (_m *SupervisedRegistry) Forget(id domain.TrackingID)

Forget provides a mock function with given fields: id

func (*SupervisedRegistry) Get

func (_m *SupervisedRegistry) Get(id domain.TrackingID, createIfNotExists bool) (*domain.TrackingData, error)

Get provides a mock function with given fields: id, createIfNotExists

func (*SupervisedRegistry) GetAndAwait

func (_m *SupervisedRegistry) GetAndAwait(id domain.TrackingID, timeout time.Duration) (*domain.TrackingData, error)

GetAndAwait provides a mock function with given fields: id, timeout

func (*SupervisedRegistry) GetNetworks

func (_m *SupervisedRegistry) GetNetworks(status *types.TrackingStatus) ([]uint32, error)

GetNetworks provides a mock function with given fields: status

func (*SupervisedRegistry) GetNumTracker

func (_m *SupervisedRegistry) GetNumTracker() int

GetNumTracker provides a mock function with no fields

func (*SupervisedRegistry) GetTrackerActives

func (_m *SupervisedRegistry) GetTrackerActives(networkID *uint32) ([]*domain.TrackingData, error)

GetTrackerActives provides a mock function with given fields: networkID

func (*SupervisedRegistry) PruneIdle

func (_m *SupervisedRegistry) PruneIdle(olderThan time.Time) (int, error)

PruneIdle provides a mock function with given fields: olderThan

func (*SupervisedRegistry) PruneTerminal

func (_m *SupervisedRegistry) PruneTerminal(olderThan time.Time) (int, error)

PruneTerminal provides a mock function with given fields: olderThan

func (*SupervisedRegistry) Subscribe

func (_m *SupervisedRegistry) Subscribe(id domain.TrackingID) (<-chan *domain.TrackingData, func(), error)

Subscribe provides a mock function with given fields: id

func (*SupervisedRegistry) UpdateTrackingBridgeTx

func (_m *SupervisedRegistry) UpdateTrackingBridgeTx(id domain.TrackingID, tx domain.TrackingBridgeTx) error

UpdateTrackingBridgeTx provides a mock function with given fields: id, tx

func (*SupervisedRegistry) UpdateTrackingStep

func (_m *SupervisedRegistry) UpdateTrackingStep(id domain.TrackingID, stepIndex uint, step domain.BridgeStepPath) error

UpdateTrackingStep provides a mock function with given fields: id, stepIndex, step

type SupervisedRegistry_Expecter

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

func (*SupervisedRegistry_Expecter) Forget

func (_e *SupervisedRegistry_Expecter) Forget(id interface{}) *SupervisedRegistry_Forget_Call

Forget is a helper method to define mock.On call

  • id domain.TrackingID

func (*SupervisedRegistry_Expecter) Get

func (_e *SupervisedRegistry_Expecter) Get(id interface{}, createIfNotExists interface{}) *SupervisedRegistry_Get_Call

Get is a helper method to define mock.On call

  • id domain.TrackingID
  • createIfNotExists bool

func (*SupervisedRegistry_Expecter) GetAndAwait

func (_e *SupervisedRegistry_Expecter) GetAndAwait(id interface{}, timeout interface{}) *SupervisedRegistry_GetAndAwait_Call

GetAndAwait is a helper method to define mock.On call

  • id domain.TrackingID
  • timeout time.Duration

func (*SupervisedRegistry_Expecter) GetNetworks

func (_e *SupervisedRegistry_Expecter) GetNetworks(status interface{}) *SupervisedRegistry_GetNetworks_Call

GetNetworks is a helper method to define mock.On call

  • status *types.TrackingStatus

func (*SupervisedRegistry_Expecter) GetNumTracker

GetNumTracker is a helper method to define mock.On call

func (*SupervisedRegistry_Expecter) GetTrackerActives

func (_e *SupervisedRegistry_Expecter) GetTrackerActives(networkID interface{}) *SupervisedRegistry_GetTrackerActives_Call

GetTrackerActives is a helper method to define mock.On call

  • networkID *uint32

func (*SupervisedRegistry_Expecter) PruneIdle

func (_e *SupervisedRegistry_Expecter) PruneIdle(olderThan interface{}) *SupervisedRegistry_PruneIdle_Call

PruneIdle is a helper method to define mock.On call

  • olderThan time.Time

func (*SupervisedRegistry_Expecter) PruneTerminal

func (_e *SupervisedRegistry_Expecter) PruneTerminal(olderThan interface{}) *SupervisedRegistry_PruneTerminal_Call

PruneTerminal is a helper method to define mock.On call

  • olderThan time.Time

func (*SupervisedRegistry_Expecter) Subscribe

func (_e *SupervisedRegistry_Expecter) Subscribe(id interface{}) *SupervisedRegistry_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id domain.TrackingID

func (*SupervisedRegistry_Expecter) UpdateTrackingBridgeTx

func (_e *SupervisedRegistry_Expecter) UpdateTrackingBridgeTx(id interface{}, tx interface{}) *SupervisedRegistry_UpdateTrackingBridgeTx_Call

UpdateTrackingBridgeTx is a helper method to define mock.On call

  • id domain.TrackingID
  • tx domain.TrackingBridgeTx

func (*SupervisedRegistry_Expecter) UpdateTrackingStep

func (_e *SupervisedRegistry_Expecter) UpdateTrackingStep(id interface{}, stepIndex interface{}, step interface{}) *SupervisedRegistry_UpdateTrackingStep_Call

UpdateTrackingStep is a helper method to define mock.On call

  • id domain.TrackingID
  • stepIndex uint
  • step domain.BridgeStepPath

type SupervisedRegistry_Forget_Call

type SupervisedRegistry_Forget_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_Forget_Call) Return

func (*SupervisedRegistry_Forget_Call) Run

func (*SupervisedRegistry_Forget_Call) RunAndReturn

type SupervisedRegistry_GetAndAwait_Call

type SupervisedRegistry_GetAndAwait_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_GetAndAwait_Call) Return

func (*SupervisedRegistry_GetAndAwait_Call) Run

func (*SupervisedRegistry_GetAndAwait_Call) RunAndReturn

type SupervisedRegistry_GetNetworks_Call

type SupervisedRegistry_GetNetworks_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_GetNetworks_Call) Return

func (*SupervisedRegistry_GetNetworks_Call) Run

func (*SupervisedRegistry_GetNetworks_Call) RunAndReturn

type SupervisedRegistry_GetNumTracker_Call

type SupervisedRegistry_GetNumTracker_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_GetNumTracker_Call) Return

func (*SupervisedRegistry_GetNumTracker_Call) Run

func (*SupervisedRegistry_GetNumTracker_Call) RunAndReturn

type SupervisedRegistry_GetTrackerActives_Call

type SupervisedRegistry_GetTrackerActives_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_GetTrackerActives_Call) Return

func (*SupervisedRegistry_GetTrackerActives_Call) Run

func (*SupervisedRegistry_GetTrackerActives_Call) RunAndReturn

type SupervisedRegistry_Get_Call

type SupervisedRegistry_Get_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_Get_Call) Return

func (*SupervisedRegistry_Get_Call) Run

func (_c *SupervisedRegistry_Get_Call) Run(run func(id domain.TrackingID, createIfNotExists bool)) *SupervisedRegistry_Get_Call

func (*SupervisedRegistry_Get_Call) RunAndReturn

type SupervisedRegistry_PruneIdle_Call

type SupervisedRegistry_PruneIdle_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_PruneIdle_Call) Return

func (*SupervisedRegistry_PruneIdle_Call) Run

func (*SupervisedRegistry_PruneIdle_Call) RunAndReturn

type SupervisedRegistry_PruneTerminal_Call

type SupervisedRegistry_PruneTerminal_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_PruneTerminal_Call) Return

func (*SupervisedRegistry_PruneTerminal_Call) Run

func (*SupervisedRegistry_PruneTerminal_Call) RunAndReturn

type SupervisedRegistry_Subscribe_Call

type SupervisedRegistry_Subscribe_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_Subscribe_Call) Return

func (*SupervisedRegistry_Subscribe_Call) Run

func (*SupervisedRegistry_Subscribe_Call) RunAndReturn

type SupervisedRegistry_UpdateTrackingBridgeTx_Call

type SupervisedRegistry_UpdateTrackingBridgeTx_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_UpdateTrackingBridgeTx_Call) Return

func (*SupervisedRegistry_UpdateTrackingBridgeTx_Call) Run

func (*SupervisedRegistry_UpdateTrackingBridgeTx_Call) RunAndReturn

type SupervisedRegistry_UpdateTrackingStep_Call

type SupervisedRegistry_UpdateTrackingStep_Call struct {
	*mock.Call
}

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

func (*SupervisedRegistry_UpdateTrackingStep_Call) Return

func (*SupervisedRegistry_UpdateTrackingStep_Call) Run

func (*SupervisedRegistry_UpdateTrackingStep_Call) RunAndReturn

type SupervisedStore

type SupervisedStore struct {
	mock.Mock
}

SupervisedStore is an autogenerated mock type for the SupervisedStore type

func NewSupervisedStore

func NewSupervisedStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *SupervisedStore

NewSupervisedStore creates a new instance of SupervisedStore. 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 (*SupervisedStore) EXPECT

func (*SupervisedStore) Forget

func (_m *SupervisedStore) Forget(id domain.TrackingID)

Forget provides a mock function with given fields: id

func (*SupervisedStore) Get

func (_m *SupervisedStore) Get(id domain.TrackingID, createIfNotExists bool) (*domain.TrackingData, error)

Get provides a mock function with given fields: id, createIfNotExists

func (*SupervisedStore) GetAndAwait

func (_m *SupervisedStore) GetAndAwait(id domain.TrackingID, timeout time.Duration) (*domain.TrackingData, error)

GetAndAwait provides a mock function with given fields: id, timeout

func (*SupervisedStore) GetNetworks

func (_m *SupervisedStore) GetNetworks(status *types.TrackingStatus) ([]uint32, error)

GetNetworks provides a mock function with given fields: status

func (*SupervisedStore) GetNumTracker

func (_m *SupervisedStore) GetNumTracker() int

GetNumTracker provides a mock function with no fields

func (*SupervisedStore) GetTrackerActives

func (_m *SupervisedStore) GetTrackerActives(networkID *uint32) ([]*domain.TrackingData, error)

GetTrackerActives provides a mock function with given fields: networkID

func (*SupervisedStore) PruneIdle

func (_m *SupervisedStore) PruneIdle(olderThan time.Time) (int, error)

PruneIdle provides a mock function with given fields: olderThan

func (*SupervisedStore) PruneTerminal

func (_m *SupervisedStore) PruneTerminal(olderThan time.Time) (int, error)

PruneTerminal provides a mock function with given fields: olderThan

func (*SupervisedStore) UpdateTrackingBridgeTx

func (_m *SupervisedStore) UpdateTrackingBridgeTx(id domain.TrackingID, tx domain.TrackingBridgeTx) error

UpdateTrackingBridgeTx provides a mock function with given fields: id, tx

func (*SupervisedStore) UpdateTrackingStep

func (_m *SupervisedStore) UpdateTrackingStep(id domain.TrackingID, stepIndex uint, step domain.BridgeStepPath) error

UpdateTrackingStep provides a mock function with given fields: id, stepIndex, step

type SupervisedStore_Expecter

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

func (*SupervisedStore_Expecter) Forget

func (_e *SupervisedStore_Expecter) Forget(id interface{}) *SupervisedStore_Forget_Call

Forget is a helper method to define mock.On call

  • id domain.TrackingID

func (*SupervisedStore_Expecter) Get

func (_e *SupervisedStore_Expecter) Get(id interface{}, createIfNotExists interface{}) *SupervisedStore_Get_Call

Get is a helper method to define mock.On call

  • id domain.TrackingID
  • createIfNotExists bool

func (*SupervisedStore_Expecter) GetAndAwait

func (_e *SupervisedStore_Expecter) GetAndAwait(id interface{}, timeout interface{}) *SupervisedStore_GetAndAwait_Call

GetAndAwait is a helper method to define mock.On call

  • id domain.TrackingID
  • timeout time.Duration

func (*SupervisedStore_Expecter) GetNetworks

func (_e *SupervisedStore_Expecter) GetNetworks(status interface{}) *SupervisedStore_GetNetworks_Call

GetNetworks is a helper method to define mock.On call

  • status *types.TrackingStatus

func (*SupervisedStore_Expecter) GetNumTracker

GetNumTracker is a helper method to define mock.On call

func (*SupervisedStore_Expecter) GetTrackerActives

func (_e *SupervisedStore_Expecter) GetTrackerActives(networkID interface{}) *SupervisedStore_GetTrackerActives_Call

GetTrackerActives is a helper method to define mock.On call

  • networkID *uint32

func (*SupervisedStore_Expecter) PruneIdle

func (_e *SupervisedStore_Expecter) PruneIdle(olderThan interface{}) *SupervisedStore_PruneIdle_Call

PruneIdle is a helper method to define mock.On call

  • olderThan time.Time

func (*SupervisedStore_Expecter) PruneTerminal

func (_e *SupervisedStore_Expecter) PruneTerminal(olderThan interface{}) *SupervisedStore_PruneTerminal_Call

PruneTerminal is a helper method to define mock.On call

  • olderThan time.Time

func (*SupervisedStore_Expecter) UpdateTrackingBridgeTx

func (_e *SupervisedStore_Expecter) UpdateTrackingBridgeTx(id interface{}, tx interface{}) *SupervisedStore_UpdateTrackingBridgeTx_Call

UpdateTrackingBridgeTx is a helper method to define mock.On call

  • id domain.TrackingID
  • tx domain.TrackingBridgeTx

func (*SupervisedStore_Expecter) UpdateTrackingStep

func (_e *SupervisedStore_Expecter) UpdateTrackingStep(id interface{}, stepIndex interface{}, step interface{}) *SupervisedStore_UpdateTrackingStep_Call

UpdateTrackingStep is a helper method to define mock.On call

  • id domain.TrackingID
  • stepIndex uint
  • step domain.BridgeStepPath

type SupervisedStore_Forget_Call

type SupervisedStore_Forget_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_Forget_Call) Return

func (*SupervisedStore_Forget_Call) Run

func (*SupervisedStore_Forget_Call) RunAndReturn

type SupervisedStore_GetAndAwait_Call

type SupervisedStore_GetAndAwait_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_GetAndAwait_Call) Return

func (*SupervisedStore_GetAndAwait_Call) Run

func (*SupervisedStore_GetAndAwait_Call) RunAndReturn

type SupervisedStore_GetNetworks_Call

type SupervisedStore_GetNetworks_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_GetNetworks_Call) Return

func (*SupervisedStore_GetNetworks_Call) Run

func (*SupervisedStore_GetNetworks_Call) RunAndReturn

type SupervisedStore_GetNumTracker_Call

type SupervisedStore_GetNumTracker_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_GetNumTracker_Call) Return

func (*SupervisedStore_GetNumTracker_Call) Run

func (*SupervisedStore_GetNumTracker_Call) RunAndReturn

type SupervisedStore_GetTrackerActives_Call

type SupervisedStore_GetTrackerActives_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_GetTrackerActives_Call) Return

func (*SupervisedStore_GetTrackerActives_Call) Run

func (*SupervisedStore_GetTrackerActives_Call) RunAndReturn

type SupervisedStore_Get_Call

type SupervisedStore_Get_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_Get_Call) Return

func (*SupervisedStore_Get_Call) Run

func (_c *SupervisedStore_Get_Call) Run(run func(id domain.TrackingID, createIfNotExists bool)) *SupervisedStore_Get_Call

func (*SupervisedStore_Get_Call) RunAndReturn

type SupervisedStore_PruneIdle_Call

type SupervisedStore_PruneIdle_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_PruneIdle_Call) Return

func (*SupervisedStore_PruneIdle_Call) Run

func (*SupervisedStore_PruneIdle_Call) RunAndReturn

type SupervisedStore_PruneTerminal_Call

type SupervisedStore_PruneTerminal_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_PruneTerminal_Call) Return

func (*SupervisedStore_PruneTerminal_Call) Run

func (*SupervisedStore_PruneTerminal_Call) RunAndReturn

type SupervisedStore_UpdateTrackingBridgeTx_Call

type SupervisedStore_UpdateTrackingBridgeTx_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_UpdateTrackingBridgeTx_Call) Return

func (*SupervisedStore_UpdateTrackingBridgeTx_Call) Run

func (*SupervisedStore_UpdateTrackingBridgeTx_Call) RunAndReturn

type SupervisedStore_UpdateTrackingStep_Call

type SupervisedStore_UpdateTrackingStep_Call struct {
	*mock.Call
}

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

func (*SupervisedStore_UpdateTrackingStep_Call) Return

func (*SupervisedStore_UpdateTrackingStep_Call) Run

func (*SupervisedStore_UpdateTrackingStep_Call) RunAndReturn

Jump to

Keyboard shortcuts

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