mlsvalidate

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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 MockMLSValidationService

type MockMLSValidationService struct {
	mock.Mock
}

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 (*MockMLSValidationService) GetAssociationState

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

type MockMLSValidationService_GetAssociationStateFromEnvelopes_Call struct {
	*mock.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

type MockMLSValidationService_GetAssociationState_Call

type MockMLSValidationService_GetAssociationState_Call struct {
	*mock.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 (*MockMLSValidationService_GetAssociationState_Call) Run

type MockMLSValidationService_ValidateGroupMessages_Call

type MockMLSValidationService_ValidateGroupMessages_Call struct {
	*mock.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

type MockMLSValidationService_ValidateKeyPackages_Call

type MockMLSValidationService_ValidateKeyPackages_Call struct {
	*mock.Call
}

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

func (*MockMLSValidationService_ValidateKeyPackages_Call) Run

func (*MockMLSValidationService_ValidateKeyPackages_Call) RunAndReturn

Jump to

Keyboard shortcuts

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