Documentation ¶
Overview ¶
Package mocks contains generated mocks for use in tests. These mocks are generated using the mock framework Testify.
The command to generate each of the mocks is defined as "go generate" directives in the file where the corresponding interface is defined.
To execute the commands in all the go generate directives of the project, run "go generate -x ./..." command from the project root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjudicatorSubscription ¶
AdjudicatorSubscription is an autogenerated mock type for the AdjudicatorSubscription type
func NewAdjudicatorSubscription ¶
func NewAdjudicatorSubscription(t testing.TB) *AdjudicatorSubscription
NewAdjudicatorSubscription creates a new instance of AdjudicatorSubscription. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*AdjudicatorSubscription) Close ¶
func (_m *AdjudicatorSubscription) Close() error
Close provides a mock function with given fields:
func (*AdjudicatorSubscription) Err ¶
func (_m *AdjudicatorSubscription) Err() error
Err provides a mock function with given fields:
func (*AdjudicatorSubscription) Next ¶
func (_m *AdjudicatorSubscription) Next() channel.AdjudicatorEvent
Next provides a mock function with given fields:
type RegisterSubscriber ¶
RegisterSubscriber is an autogenerated mock type for the RegisterSubscriber type
func NewRegisterSubscriber ¶
func NewRegisterSubscriber(t testing.TB) *RegisterSubscriber
NewRegisterSubscriber creates a new instance of RegisterSubscriber. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*RegisterSubscriber) Register ¶
func (_m *RegisterSubscriber) Register(_a0 context.Context, _a1 channel.AdjudicatorReq, _a2 []channel.SignedState) error
Register provides a mock function with given fields: _a0, _a1, _a2
func (*RegisterSubscriber) Subscribe ¶
func (_m *RegisterSubscriber) Subscribe(_a0 context.Context, _a1 [32]byte) (channel.AdjudicatorSubscription, error)
Subscribe provides a mock function with given fields: _a0, _a1