Documentation
¶
Index ¶
- type MockActiveContractStore
- func (_m *MockActiveContractStore) EXPECT() *MockActiveContractStore_Expecter
- func (_mock *MockActiveContractStore) Get(address contracts.InstanceAddress) (*v2.ActiveContract, bool)
- func (_mock *MockActiveContractStore) GetByContractId(contractId types.CONTRACT_ID) (*v2.ActiveContract, bool)
- func (_mock *MockActiveContractStore) GetByTemplateId(party types.PARTY, templateId contracts.TemplateID) ([]*v2.ActiveContract, bool)
- func (_mock *MockActiveContractStore) RegisterTemplates(templates ...store.RegisteredTemplate)
- type MockActiveContractStore_Expecter
- func (_e *MockActiveContractStore_Expecter) Get(address interface{}) *MockActiveContractStore_Get_Call
- func (_e *MockActiveContractStore_Expecter) GetByContractId(contractId interface{}) *MockActiveContractStore_GetByContractId_Call
- func (_e *MockActiveContractStore_Expecter) GetByTemplateId(party interface{}, templateId interface{}) *MockActiveContractStore_GetByTemplateId_Call
- func (_e *MockActiveContractStore_Expecter) RegisterTemplates(templates ...interface{}) *MockActiveContractStore_RegisterTemplates_Call
- type MockActiveContractStore_GetByContractId_Call
- func (_c *MockActiveContractStore_GetByContractId_Call) Return(activeContract *v2.ActiveContract, b bool) *MockActiveContractStore_GetByContractId_Call
- func (_c *MockActiveContractStore_GetByContractId_Call) Run(run func(contractId types.CONTRACT_ID)) *MockActiveContractStore_GetByContractId_Call
- func (_c *MockActiveContractStore_GetByContractId_Call) RunAndReturn(run func(contractId types.CONTRACT_ID) (*v2.ActiveContract, bool)) *MockActiveContractStore_GetByContractId_Call
- type MockActiveContractStore_GetByTemplateId_Call
- func (_c *MockActiveContractStore_GetByTemplateId_Call) Return(activeContracts []*v2.ActiveContract, b bool) *MockActiveContractStore_GetByTemplateId_Call
- func (_c *MockActiveContractStore_GetByTemplateId_Call) Run(run func(party types.PARTY, templateId contracts.TemplateID)) *MockActiveContractStore_GetByTemplateId_Call
- func (_c *MockActiveContractStore_GetByTemplateId_Call) RunAndReturn(...) *MockActiveContractStore_GetByTemplateId_Call
- type MockActiveContractStore_Get_Call
- func (_c *MockActiveContractStore_Get_Call) Return(activeContract *v2.ActiveContract, b bool) *MockActiveContractStore_Get_Call
- func (_c *MockActiveContractStore_Get_Call) Run(run func(address contracts.InstanceAddress)) *MockActiveContractStore_Get_Call
- func (_c *MockActiveContractStore_Get_Call) RunAndReturn(run func(address contracts.InstanceAddress) (*v2.ActiveContract, bool)) *MockActiveContractStore_Get_Call
- type MockActiveContractStore_RegisterTemplates_Call
- func (_c *MockActiveContractStore_RegisterTemplates_Call) Return() *MockActiveContractStore_RegisterTemplates_Call
- func (_c *MockActiveContractStore_RegisterTemplates_Call) Run(run func(templates ...store.RegisteredTemplate)) *MockActiveContractStore_RegisterTemplates_Call
- func (_c *MockActiveContractStore_RegisterTemplates_Call) RunAndReturn(run func(templates ...store.RegisteredTemplate)) *MockActiveContractStore_RegisterTemplates_Call
- type MockInstanceAddressFilter
- type MockInstanceAddressFilter_Expecter
- type MockInstanceAddressFilter_FilterContracts_Call
- func (_c *MockInstanceAddressFilter_FilterContracts_Call) Return(instanceAddresss []contracts.InstanceAddress) *MockInstanceAddressFilter_FilterContracts_Call
- func (_c *MockInstanceAddressFilter_FilterContracts_Call) Run(run func(addresses []contracts.InstanceAddress)) *MockInstanceAddressFilter_FilterContracts_Call
- func (_c *MockInstanceAddressFilter_FilterContracts_Call) RunAndReturn(run func(addresses []contracts.InstanceAddress) []contracts.InstanceAddress) *MockInstanceAddressFilter_FilterContracts_Call
- type MockInstrumentHoldingStore
- func (_m *MockInstrumentHoldingStore) EXPECT() *MockInstrumentHoldingStore_Expecter
- func (_mock *MockInstrumentHoldingStore) GetHolding(party types.PARTY, instrumentId splice_api_token_holding_v1.InstrumentId) ([]*v2.ActiveContract, bool)
- func (_mock *MockInstrumentHoldingStore) ListHoldings(instrumentId splice_api_token_holding_v1.InstrumentId) ([]*v2.ActiveContract, error)
- func (_mock *MockInstrumentHoldingStore) RegisterParty(parties ...string)
- type MockInstrumentHoldingStore_Expecter
- func (_e *MockInstrumentHoldingStore_Expecter) GetHolding(party interface{}, instrumentId interface{}) *MockInstrumentHoldingStore_GetHolding_Call
- func (_e *MockInstrumentHoldingStore_Expecter) ListHoldings(instrumentId interface{}) *MockInstrumentHoldingStore_ListHoldings_Call
- func (_e *MockInstrumentHoldingStore_Expecter) RegisterParty(parties ...interface{}) *MockInstrumentHoldingStore_RegisterParty_Call
- type MockInstrumentHoldingStore_GetHolding_Call
- func (_c *MockInstrumentHoldingStore_GetHolding_Call) Return(activeContracts []*v2.ActiveContract, b bool) *MockInstrumentHoldingStore_GetHolding_Call
- func (_c *MockInstrumentHoldingStore_GetHolding_Call) Run(...) *MockInstrumentHoldingStore_GetHolding_Call
- func (_c *MockInstrumentHoldingStore_GetHolding_Call) RunAndReturn(...) *MockInstrumentHoldingStore_GetHolding_Call
- type MockInstrumentHoldingStore_ListHoldings_Call
- func (_c *MockInstrumentHoldingStore_ListHoldings_Call) Return(activeContracts []*v2.ActiveContract, err error) *MockInstrumentHoldingStore_ListHoldings_Call
- func (_c *MockInstrumentHoldingStore_ListHoldings_Call) Run(run func(instrumentId splice_api_token_holding_v1.InstrumentId)) *MockInstrumentHoldingStore_ListHoldings_Call
- func (_c *MockInstrumentHoldingStore_ListHoldings_Call) RunAndReturn(...) *MockInstrumentHoldingStore_ListHoldings_Call
- type MockInstrumentHoldingStore_RegisterParty_Call
- func (_c *MockInstrumentHoldingStore_RegisterParty_Call) Return() *MockInstrumentHoldingStore_RegisterParty_Call
- func (_c *MockInstrumentHoldingStore_RegisterParty_Call) Run(run func(parties ...string)) *MockInstrumentHoldingStore_RegisterParty_Call
- func (_c *MockInstrumentHoldingStore_RegisterParty_Call) RunAndReturn(run func(parties ...string)) *MockInstrumentHoldingStore_RegisterParty_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActiveContractStore ¶
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 (_m *MockActiveContractStore) EXPECT() *MockActiveContractStore_Expecter
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 ¶
func (_e *MockActiveContractStore_Expecter) Get(address interface{}) *MockActiveContractStore_Get_Call
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 ¶
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 (_c *MockActiveContractStore_GetByContractId_Call) Return(activeContract *v2.ActiveContract, b bool) *MockActiveContractStore_GetByContractId_Call
func (*MockActiveContractStore_GetByContractId_Call) Run ¶
func (_c *MockActiveContractStore_GetByContractId_Call) Run(run func(contractId types.CONTRACT_ID)) *MockActiveContractStore_GetByContractId_Call
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 ¶
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 (_c *MockActiveContractStore_GetByTemplateId_Call) Run(run func(party types.PARTY, templateId contracts.TemplateID)) *MockActiveContractStore_GetByTemplateId_Call
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 ¶
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 (_c *MockActiveContractStore_Get_Call) Run(run func(address contracts.InstanceAddress)) *MockActiveContractStore_Get_Call
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 ¶
MockActiveContractStore_RegisterTemplates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterTemplates'
func (*MockActiveContractStore_RegisterTemplates_Call) Run ¶
func (_c *MockActiveContractStore_RegisterTemplates_Call) Run(run func(templates ...store.RegisteredTemplate)) *MockActiveContractStore_RegisterTemplates_Call
func (*MockActiveContractStore_RegisterTemplates_Call) RunAndReturn ¶
func (_c *MockActiveContractStore_RegisterTemplates_Call) RunAndReturn(run func(templates ...store.RegisteredTemplate)) *MockActiveContractStore_RegisterTemplates_Call
type MockInstanceAddressFilter ¶
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 (_m *MockInstanceAddressFilter) EXPECT() *MockInstanceAddressFilter_Expecter
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 ¶
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 (_c *MockInstanceAddressFilter_FilterContracts_Call) Return(instanceAddresss []contracts.InstanceAddress) *MockInstanceAddressFilter_FilterContracts_Call
func (*MockInstanceAddressFilter_FilterContracts_Call) Run ¶
func (_c *MockInstanceAddressFilter_FilterContracts_Call) Run(run func(addresses []contracts.InstanceAddress)) *MockInstanceAddressFilter_FilterContracts_Call
func (*MockInstanceAddressFilter_FilterContracts_Call) RunAndReturn ¶
func (_c *MockInstanceAddressFilter_FilterContracts_Call) RunAndReturn(run func(addresses []contracts.InstanceAddress) []contracts.InstanceAddress) *MockInstanceAddressFilter_FilterContracts_Call
type MockInstrumentHoldingStore ¶
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 (_m *MockInstrumentHoldingStore) EXPECT() *MockInstrumentHoldingStore_Expecter
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 ¶
func (_e *MockInstrumentHoldingStore_Expecter) RegisterParty(parties ...interface{}) *MockInstrumentHoldingStore_RegisterParty_Call
RegisterParty is a helper method to define mock.On call
- parties ...string
type MockInstrumentHoldingStore_GetHolding_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 (_c *MockInstrumentHoldingStore_GetHolding_Call) Run(run func(party types.PARTY, instrumentId splice_api_token_holding_v1.InstrumentId)) *MockInstrumentHoldingStore_GetHolding_Call
func (*MockInstrumentHoldingStore_GetHolding_Call) RunAndReturn ¶
func (_c *MockInstrumentHoldingStore_GetHolding_Call) RunAndReturn(run func(party types.PARTY, instrumentId splice_api_token_holding_v1.InstrumentId) ([]*v2.ActiveContract, bool)) *MockInstrumentHoldingStore_GetHolding_Call
type MockInstrumentHoldingStore_ListHoldings_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 (_c *MockInstrumentHoldingStore_ListHoldings_Call) Run(run func(instrumentId splice_api_token_holding_v1.InstrumentId)) *MockInstrumentHoldingStore_ListHoldings_Call
func (*MockInstrumentHoldingStore_ListHoldings_Call) RunAndReturn ¶
func (_c *MockInstrumentHoldingStore_ListHoldings_Call) RunAndReturn(run func(instrumentId splice_api_token_holding_v1.InstrumentId) ([]*v2.ActiveContract, error)) *MockInstrumentHoldingStore_ListHoldings_Call
type MockInstrumentHoldingStore_RegisterParty_Call ¶
MockInstrumentHoldingStore_RegisterParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterParty'
func (*MockInstrumentHoldingStore_RegisterParty_Call) Run ¶
func (_c *MockInstrumentHoldingStore_RegisterParty_Call) Run(run func(parties ...string)) *MockInstrumentHoldingStore_RegisterParty_Call
func (*MockInstrumentHoldingStore_RegisterParty_Call) RunAndReturn ¶
func (_c *MockInstrumentHoldingStore_RegisterParty_Call) RunAndReturn(run func(parties ...string)) *MockInstrumentHoldingStore_RegisterParty_Call