Documentation ¶
Index ¶
- type MockMLSValidationService
- func (_m *MockMLSValidationService) EXPECT() *MockMLSValidationService_Expecter
- func (_m *MockMLSValidationService) GetAssociationState(ctx context.Context, oldUpdates []*associations.IdentityUpdate, ...) (*mlsvalidate.AssociationStateResult, error)
- func (_m *MockMLSValidationService) GetAssociationStateFromEnvelopes(ctx context.Context, oldUpdates []queries.GatewayEnvelope, ...) (*mlsvalidate.AssociationStateResult, error)
- func (_m *MockMLSValidationService) ValidateGroupMessages(ctx context.Context, groupMessages []*apiv1.GroupMessageInput) ([]mlsvalidate.GroupMessageValidationResult, error)
- func (_m *MockMLSValidationService) ValidateKeyPackages(ctx context.Context, keyPackages [][]byte) ([]mlsvalidate.KeyPackageValidationResult, error)
- type MockMLSValidationService_Expecter
- func (_e *MockMLSValidationService_Expecter) GetAssociationState(ctx interface{}, oldUpdates interface{}, newUpdates interface{}) *MockMLSValidationService_GetAssociationState_Call
- func (_e *MockMLSValidationService_Expecter) GetAssociationStateFromEnvelopes(ctx interface{}, oldUpdates interface{}, newIdentityUpdate interface{}) *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
- func (_e *MockMLSValidationService_Expecter) ValidateGroupMessages(ctx interface{}, groupMessages interface{}) *MockMLSValidationService_ValidateGroupMessages_Call
- func (_e *MockMLSValidationService_Expecter) ValidateKeyPackages(ctx interface{}, keyPackages interface{}) *MockMLSValidationService_ValidateKeyPackages_Call
- type MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
- func (_c *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call) Return(_a0 *mlsvalidate.AssociationStateResult, _a1 error) *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
- func (_c *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call) Run(run func(ctx context.Context, oldUpdates []queries.GatewayEnvelope, ...)) *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
- func (_c *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call) RunAndReturn(...) *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
- type MockMLSValidationService_GetAssociationState_Call
- func (_c *MockMLSValidationService_GetAssociationState_Call) Return(_a0 *mlsvalidate.AssociationStateResult, _a1 error) *MockMLSValidationService_GetAssociationState_Call
- func (_c *MockMLSValidationService_GetAssociationState_Call) Run(run func(ctx context.Context, oldUpdates []*associations.IdentityUpdate, ...)) *MockMLSValidationService_GetAssociationState_Call
- func (_c *MockMLSValidationService_GetAssociationState_Call) RunAndReturn(...) *MockMLSValidationService_GetAssociationState_Call
- type MockMLSValidationService_ValidateGroupMessages_Call
- func (_c *MockMLSValidationService_ValidateGroupMessages_Call) Return(_a0 []mlsvalidate.GroupMessageValidationResult, _a1 error) *MockMLSValidationService_ValidateGroupMessages_Call
- func (_c *MockMLSValidationService_ValidateGroupMessages_Call) Run(run func(ctx context.Context, groupMessages []*apiv1.GroupMessageInput)) *MockMLSValidationService_ValidateGroupMessages_Call
- func (_c *MockMLSValidationService_ValidateGroupMessages_Call) RunAndReturn(...) *MockMLSValidationService_ValidateGroupMessages_Call
- type MockMLSValidationService_ValidateKeyPackages_Call
- func (_c *MockMLSValidationService_ValidateKeyPackages_Call) Return(_a0 []mlsvalidate.KeyPackageValidationResult, _a1 error) *MockMLSValidationService_ValidateKeyPackages_Call
- func (_c *MockMLSValidationService_ValidateKeyPackages_Call) Run(run func(ctx context.Context, keyPackages [][]byte)) *MockMLSValidationService_ValidateKeyPackages_Call
- func (_c *MockMLSValidationService_ValidateKeyPackages_Call) RunAndReturn(...) *MockMLSValidationService_ValidateKeyPackages_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMLSValidationService ¶
MockMLSValidationService is an autogenerated mock type for the MLSValidationService type
func NewMockMLSValidationService ¶
func NewMockMLSValidationService(t interface { mock.TestingT Cleanup(func()) }) *MockMLSValidationService
NewMockMLSValidationService creates a new instance of MockMLSValidationService. 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 (*MockMLSValidationService) EXPECT ¶
func (_m *MockMLSValidationService) EXPECT() *MockMLSValidationService_Expecter
func (*MockMLSValidationService) GetAssociationState ¶
func (_m *MockMLSValidationService) GetAssociationState(ctx context.Context, oldUpdates []*associations.IdentityUpdate, newUpdates []*associations.IdentityUpdate) (*mlsvalidate.AssociationStateResult, error)
GetAssociationState provides a mock function with given fields: ctx, oldUpdates, newUpdates
func (*MockMLSValidationService) GetAssociationStateFromEnvelopes ¶
func (_m *MockMLSValidationService) GetAssociationStateFromEnvelopes(ctx context.Context, oldUpdates []queries.GatewayEnvelope, newIdentityUpdate *associations.IdentityUpdate) (*mlsvalidate.AssociationStateResult, error)
GetAssociationStateFromEnvelopes provides a mock function with given fields: ctx, oldUpdates, newIdentityUpdate
func (*MockMLSValidationService) ValidateGroupMessages ¶
func (_m *MockMLSValidationService) ValidateGroupMessages(ctx context.Context, groupMessages []*apiv1.GroupMessageInput) ([]mlsvalidate.GroupMessageValidationResult, error)
ValidateGroupMessages provides a mock function with given fields: ctx, groupMessages
func (*MockMLSValidationService) ValidateKeyPackages ¶
func (_m *MockMLSValidationService) ValidateKeyPackages(ctx context.Context, keyPackages [][]byte) ([]mlsvalidate.KeyPackageValidationResult, error)
ValidateKeyPackages provides a mock function with given fields: ctx, keyPackages
type MockMLSValidationService_Expecter ¶
type MockMLSValidationService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMLSValidationService_Expecter) GetAssociationState ¶
func (_e *MockMLSValidationService_Expecter) GetAssociationState(ctx interface{}, oldUpdates interface{}, newUpdates interface{}) *MockMLSValidationService_GetAssociationState_Call
GetAssociationState is a helper method to define mock.On call
- ctx context.Context
- oldUpdates []*associations.IdentityUpdate
- newUpdates []*associations.IdentityUpdate
func (*MockMLSValidationService_Expecter) GetAssociationStateFromEnvelopes ¶
func (_e *MockMLSValidationService_Expecter) GetAssociationStateFromEnvelopes(ctx interface{}, oldUpdates interface{}, newIdentityUpdate interface{}) *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
GetAssociationStateFromEnvelopes is a helper method to define mock.On call
- ctx context.Context
- oldUpdates []queries.GatewayEnvelope
- newIdentityUpdate *associations.IdentityUpdate
func (*MockMLSValidationService_Expecter) ValidateGroupMessages ¶
func (_e *MockMLSValidationService_Expecter) ValidateGroupMessages(ctx interface{}, groupMessages interface{}) *MockMLSValidationService_ValidateGroupMessages_Call
ValidateGroupMessages is a helper method to define mock.On call
- ctx context.Context
- groupMessages []*apiv1.GroupMessageInput
func (*MockMLSValidationService_Expecter) ValidateKeyPackages ¶
func (_e *MockMLSValidationService_Expecter) ValidateKeyPackages(ctx interface{}, keyPackages interface{}) *MockMLSValidationService_ValidateKeyPackages_Call
ValidateKeyPackages is a helper method to define mock.On call
- ctx context.Context
- keyPackages [][]byte
type MockMLSValidationService_GetAssociationStateFromEnvelopes_Call ¶
MockMLSValidationService_GetAssociationStateFromEnvelopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssociationStateFromEnvelopes'
func (*MockMLSValidationService_GetAssociationStateFromEnvelopes_Call) Run ¶
func (_c *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call) Run(run func(ctx context.Context, oldUpdates []queries.GatewayEnvelope, newIdentityUpdate *associations.IdentityUpdate)) *MockMLSValidationService_GetAssociationStateFromEnvelopes_Call
func (*MockMLSValidationService_GetAssociationStateFromEnvelopes_Call) RunAndReturn ¶
type MockMLSValidationService_GetAssociationState_Call ¶
MockMLSValidationService_GetAssociationState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssociationState'
func (*MockMLSValidationService_GetAssociationState_Call) Return ¶
func (_c *MockMLSValidationService_GetAssociationState_Call) Return(_a0 *mlsvalidate.AssociationStateResult, _a1 error) *MockMLSValidationService_GetAssociationState_Call
func (*MockMLSValidationService_GetAssociationState_Call) Run ¶
func (_c *MockMLSValidationService_GetAssociationState_Call) Run(run func(ctx context.Context, oldUpdates []*associations.IdentityUpdate, newUpdates []*associations.IdentityUpdate)) *MockMLSValidationService_GetAssociationState_Call
func (*MockMLSValidationService_GetAssociationState_Call) RunAndReturn ¶
func (_c *MockMLSValidationService_GetAssociationState_Call) RunAndReturn(run func(context.Context, []*associations.IdentityUpdate, []*associations.IdentityUpdate) (*mlsvalidate.AssociationStateResult, error)) *MockMLSValidationService_GetAssociationState_Call
type MockMLSValidationService_ValidateGroupMessages_Call ¶
MockMLSValidationService_ValidateGroupMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateGroupMessages'
func (*MockMLSValidationService_ValidateGroupMessages_Call) Run ¶
func (_c *MockMLSValidationService_ValidateGroupMessages_Call) Run(run func(ctx context.Context, groupMessages []*apiv1.GroupMessageInput)) *MockMLSValidationService_ValidateGroupMessages_Call
func (*MockMLSValidationService_ValidateGroupMessages_Call) RunAndReturn ¶
func (_c *MockMLSValidationService_ValidateGroupMessages_Call) RunAndReturn(run func(context.Context, []*apiv1.GroupMessageInput) ([]mlsvalidate.GroupMessageValidationResult, error)) *MockMLSValidationService_ValidateGroupMessages_Call
type MockMLSValidationService_ValidateKeyPackages_Call ¶
MockMLSValidationService_ValidateKeyPackages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateKeyPackages'
func (*MockMLSValidationService_ValidateKeyPackages_Call) Return ¶
func (_c *MockMLSValidationService_ValidateKeyPackages_Call) Return(_a0 []mlsvalidate.KeyPackageValidationResult, _a1 error) *MockMLSValidationService_ValidateKeyPackages_Call
func (*MockMLSValidationService_ValidateKeyPackages_Call) Run ¶
func (_c *MockMLSValidationService_ValidateKeyPackages_Call) Run(run func(ctx context.Context, keyPackages [][]byte)) *MockMLSValidationService_ValidateKeyPackages_Call
func (*MockMLSValidationService_ValidateKeyPackages_Call) RunAndReturn ¶
func (_c *MockMLSValidationService_ValidateKeyPackages_Call) RunAndReturn(run func(context.Context, [][]byte) ([]mlsvalidate.KeyPackageValidationResult, error)) *MockMLSValidationService_ValidateKeyPackages_Call