mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 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 MockActiveContractStore

type MockActiveContractStore struct {
	mock.Mock
}

MockActiveContractStore is an autogenerated mock type for the ActiveContractStoreInterface type

func NewMockActiveContractStore

func NewMockActiveContractStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockActiveContractStore

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

func (*MockActiveContractStore) Get

func (_mock *MockActiveContractStore) Get(address contracts.InstanceAddress) (*v2.ActiveContract, bool)

Get provides a mock function for the type MockActiveContractStore

func (*MockActiveContractStore) GetByContractId

func (_mock *MockActiveContractStore) GetByContractId(contractId types.CONTRACT_ID) (*v2.ActiveContract, bool)

GetByContractId provides a mock function for the type MockActiveContractStore

func (*MockActiveContractStore) GetByTemplateId

func (_mock *MockActiveContractStore) GetByTemplateId(party types.PARTY, templateId contracts.TemplateID) ([]*v2.ActiveContract, bool)

GetByTemplateId provides a mock function for the type MockActiveContractStore

func (*MockActiveContractStore) RegisterTemplates

func (_mock *MockActiveContractStore) RegisterTemplates(templates ...store.RegisteredTemplate)

RegisterTemplates provides a mock function for the type MockActiveContractStore

type MockActiveContractStore_Expecter

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

func (*MockActiveContractStore_Expecter) Get

Get is a helper method to define mock.On call

  • address contracts.InstanceAddress

func (*MockActiveContractStore_Expecter) GetByContractId

func (_e *MockActiveContractStore_Expecter) GetByContractId(contractId interface{}) *MockActiveContractStore_GetByContractId_Call

GetByContractId is a helper method to define mock.On call

  • contractId types.CONTRACT_ID

func (*MockActiveContractStore_Expecter) GetByTemplateId

func (_e *MockActiveContractStore_Expecter) GetByTemplateId(party interface{}, templateId interface{}) *MockActiveContractStore_GetByTemplateId_Call

GetByTemplateId is a helper method to define mock.On call

  • party types.PARTY
  • templateId contracts.TemplateID

func (*MockActiveContractStore_Expecter) RegisterTemplates

func (_e *MockActiveContractStore_Expecter) RegisterTemplates(templates ...interface{}) *MockActiveContractStore_RegisterTemplates_Call

RegisterTemplates is a helper method to define mock.On call

  • templates ...store.RegisteredTemplate

type MockActiveContractStore_GetByContractId_Call

type MockActiveContractStore_GetByContractId_Call struct {
	*mock.Call
}

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

func (*MockActiveContractStore_GetByContractId_Call) Return

func (*MockActiveContractStore_GetByContractId_Call) Run

func (*MockActiveContractStore_GetByContractId_Call) RunAndReturn

func (_c *MockActiveContractStore_GetByContractId_Call) RunAndReturn(run func(contractId types.CONTRACT_ID) (*v2.ActiveContract, bool)) *MockActiveContractStore_GetByContractId_Call

type MockActiveContractStore_GetByTemplateId_Call

type MockActiveContractStore_GetByTemplateId_Call struct {
	*mock.Call
}

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

func (*MockActiveContractStore_GetByTemplateId_Call) Return

func (_c *MockActiveContractStore_GetByTemplateId_Call) Return(activeContracts []*v2.ActiveContract, b bool) *MockActiveContractStore_GetByTemplateId_Call

func (*MockActiveContractStore_GetByTemplateId_Call) Run

func (*MockActiveContractStore_GetByTemplateId_Call) RunAndReturn

func (_c *MockActiveContractStore_GetByTemplateId_Call) RunAndReturn(run func(party types.PARTY, templateId contracts.TemplateID) ([]*v2.ActiveContract, bool)) *MockActiveContractStore_GetByTemplateId_Call

type MockActiveContractStore_Get_Call

type MockActiveContractStore_Get_Call struct {
	*mock.Call
}

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

func (*MockActiveContractStore_Get_Call) Return

func (_c *MockActiveContractStore_Get_Call) Return(activeContract *v2.ActiveContract, b bool) *MockActiveContractStore_Get_Call

func (*MockActiveContractStore_Get_Call) Run

func (*MockActiveContractStore_Get_Call) RunAndReturn

func (_c *MockActiveContractStore_Get_Call) RunAndReturn(run func(address contracts.InstanceAddress) (*v2.ActiveContract, bool)) *MockActiveContractStore_Get_Call

type MockActiveContractStore_RegisterTemplates_Call

type MockActiveContractStore_RegisterTemplates_Call struct {
	*mock.Call
}

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

func (*MockActiveContractStore_RegisterTemplates_Call) Return

func (*MockActiveContractStore_RegisterTemplates_Call) Run

func (*MockActiveContractStore_RegisterTemplates_Call) RunAndReturn

type MockInstanceAddressFilter

type MockInstanceAddressFilter struct {
	mock.Mock
}

MockInstanceAddressFilter is an autogenerated mock type for the InstanceAddressFilter type

func NewMockInstanceAddressFilter

func NewMockInstanceAddressFilter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInstanceAddressFilter

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

func (*MockInstanceAddressFilter) FilterContracts

func (_mock *MockInstanceAddressFilter) FilterContracts(addresses []contracts.InstanceAddress) []contracts.InstanceAddress

FilterContracts provides a mock function for the type MockInstanceAddressFilter

type MockInstanceAddressFilter_Expecter

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

func (*MockInstanceAddressFilter_Expecter) FilterContracts

func (_e *MockInstanceAddressFilter_Expecter) FilterContracts(addresses interface{}) *MockInstanceAddressFilter_FilterContracts_Call

FilterContracts is a helper method to define mock.On call

  • addresses []contracts.InstanceAddress

type MockInstanceAddressFilter_FilterContracts_Call

type MockInstanceAddressFilter_FilterContracts_Call struct {
	*mock.Call
}

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

func (*MockInstanceAddressFilter_FilterContracts_Call) Return

func (*MockInstanceAddressFilter_FilterContracts_Call) Run

func (*MockInstanceAddressFilter_FilterContracts_Call) RunAndReturn

type MockInstrumentHoldingStore

type MockInstrumentHoldingStore struct {
	mock.Mock
}

MockInstrumentHoldingStore is an autogenerated mock type for the InstrumentHoldingStoreInterface type

func NewMockInstrumentHoldingStore

func NewMockInstrumentHoldingStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInstrumentHoldingStore

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

func (*MockInstrumentHoldingStore) GetHolding

func (_mock *MockInstrumentHoldingStore) GetHolding(party types.PARTY, instrumentId splice_api_token_holding_v1.InstrumentId) ([]*v2.ActiveContract, bool)

GetHolding provides a mock function for the type MockInstrumentHoldingStore

func (*MockInstrumentHoldingStore) ListHoldings

func (_mock *MockInstrumentHoldingStore) ListHoldings(instrumentId splice_api_token_holding_v1.InstrumentId) ([]*v2.ActiveContract, error)

ListHoldings provides a mock function for the type MockInstrumentHoldingStore

func (*MockInstrumentHoldingStore) RegisterParty

func (_mock *MockInstrumentHoldingStore) RegisterParty(parties ...string)

RegisterParty provides a mock function for the type MockInstrumentHoldingStore

type MockInstrumentHoldingStore_Expecter

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

func (*MockInstrumentHoldingStore_Expecter) GetHolding

func (_e *MockInstrumentHoldingStore_Expecter) GetHolding(party interface{}, instrumentId interface{}) *MockInstrumentHoldingStore_GetHolding_Call

GetHolding is a helper method to define mock.On call

  • party types.PARTY
  • instrumentId splice_api_token_holding_v1.InstrumentId

func (*MockInstrumentHoldingStore_Expecter) ListHoldings

func (_e *MockInstrumentHoldingStore_Expecter) ListHoldings(instrumentId interface{}) *MockInstrumentHoldingStore_ListHoldings_Call

ListHoldings is a helper method to define mock.On call

  • instrumentId splice_api_token_holding_v1.InstrumentId

func (*MockInstrumentHoldingStore_Expecter) RegisterParty

RegisterParty is a helper method to define mock.On call

  • parties ...string

type MockInstrumentHoldingStore_GetHolding_Call

type MockInstrumentHoldingStore_GetHolding_Call struct {
	*mock.Call
}

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

func (*MockInstrumentHoldingStore_GetHolding_Call) Return

func (_c *MockInstrumentHoldingStore_GetHolding_Call) Return(activeContracts []*v2.ActiveContract, b bool) *MockInstrumentHoldingStore_GetHolding_Call

func (*MockInstrumentHoldingStore_GetHolding_Call) Run

func (*MockInstrumentHoldingStore_GetHolding_Call) RunAndReturn

type MockInstrumentHoldingStore_ListHoldings_Call

type MockInstrumentHoldingStore_ListHoldings_Call struct {
	*mock.Call
}

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

func (*MockInstrumentHoldingStore_ListHoldings_Call) Return

func (_c *MockInstrumentHoldingStore_ListHoldings_Call) Return(activeContracts []*v2.ActiveContract, err error) *MockInstrumentHoldingStore_ListHoldings_Call

func (*MockInstrumentHoldingStore_ListHoldings_Call) Run

func (*MockInstrumentHoldingStore_ListHoldings_Call) RunAndReturn

type MockInstrumentHoldingStore_RegisterParty_Call

type MockInstrumentHoldingStore_RegisterParty_Call struct {
	*mock.Call
}

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

func (*MockInstrumentHoldingStore_RegisterParty_Call) Return

func (*MockInstrumentHoldingStore_RegisterParty_Call) Run

func (*MockInstrumentHoldingStore_RegisterParty_Call) RunAndReturn

Jump to

Keyboard shortcuts

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