mocks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAllowList added in v1.0.1

type MockAllowList struct {
	mock.Mock
}

MockAllowList is an autogenerated mock type for the AllowList type

func NewMockAllowList added in v1.0.1

func NewMockAllowList(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAllowList

NewMockAllowList creates a new instance of MockAllowList. 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 (*MockAllowList) EXPECT added in v1.0.1

func (_m *MockAllowList) EXPECT() *MockAllowList_Expecter

func (*MockAllowList) GetPermission added in v1.0.1

func (_m *MockAllowList) GetPermission(ipAddress string) authz.Permission

GetPermission provides a mock function with given fields: ipAddress

type MockAllowList_Expecter added in v1.0.1

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

func (*MockAllowList_Expecter) GetPermission added in v1.0.1

func (_e *MockAllowList_Expecter) GetPermission(ipAddress interface{}) *MockAllowList_GetPermission_Call

GetPermission is a helper method to define mock.On call

  • ipAddress string

type MockAllowList_GetPermission_Call added in v1.0.1

type MockAllowList_GetPermission_Call struct {
	*mock.Call
}

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

func (*MockAllowList_GetPermission_Call) Return added in v1.0.1

func (*MockAllowList_GetPermission_Call) Run added in v1.0.1

func (*MockAllowList_GetPermission_Call) RunAndReturn added in v1.0.1

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) ValidateGroupMessagePayloads added in v1.1.0

func (_m *MockMLSValidationService) ValidateGroupMessagePayloads(ctx context.Context, groupMessagePayloads [][]byte) ([]mlsvalidate.GroupMessageValidationResult, error)

ValidateGroupMessagePayloads provides a mock function with given fields: ctx, groupMessagePayloads

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) ValidateInboxIdKeyPackages

func (_m *MockMLSValidationService) ValidateInboxIdKeyPackages(ctx context.Context, keyPackages [][]byte) ([]mlsvalidate.InboxIdValidationResult, error)

ValidateInboxIdKeyPackages provides a mock function with given fields: ctx, keyPackages

func (*MockMLSValidationService) VerifySmartContractWalletSignatures

VerifySmartContractWalletSignatures provides a mock function with given fields: ctx, req

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) ValidateGroupMessagePayloads added in v1.1.0

func (_e *MockMLSValidationService_Expecter) ValidateGroupMessagePayloads(ctx interface{}, groupMessagePayloads interface{}) *MockMLSValidationService_ValidateGroupMessagePayloads_Call

ValidateGroupMessagePayloads is a helper method to define mock.On call

  • ctx context.Context
  • groupMessagePayloads [][]byte

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) ValidateInboxIdKeyPackages

func (_e *MockMLSValidationService_Expecter) ValidateInboxIdKeyPackages(ctx interface{}, keyPackages interface{}) *MockMLSValidationService_ValidateInboxIdKeyPackages_Call

ValidateInboxIdKeyPackages is a helper method to define mock.On call

  • ctx context.Context
  • keyPackages [][]byte

func (*MockMLSValidationService_Expecter) VerifySmartContractWalletSignatures

func (_e *MockMLSValidationService_Expecter) VerifySmartContractWalletSignatures(ctx interface{}, req interface{}) *MockMLSValidationService_VerifySmartContractWalletSignatures_Call

VerifySmartContractWalletSignatures is a helper method to define mock.On call

  • ctx context.Context
  • req *v1.VerifySmartContractWalletSignaturesRequest

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_ValidateGroupMessagePayloads_Call added in v1.1.0

type MockMLSValidationService_ValidateGroupMessagePayloads_Call struct {
	*mock.Call
}

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

func (*MockMLSValidationService_ValidateGroupMessagePayloads_Call) Return added in v1.1.0

func (*MockMLSValidationService_ValidateGroupMessagePayloads_Call) Run added in v1.1.0

func (*MockMLSValidationService_ValidateGroupMessagePayloads_Call) RunAndReturn added in v1.1.0

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_ValidateInboxIdKeyPackages_Call

type MockMLSValidationService_ValidateInboxIdKeyPackages_Call struct {
	*mock.Call
}

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

func (*MockMLSValidationService_ValidateInboxIdKeyPackages_Call) Run

func (*MockMLSValidationService_ValidateInboxIdKeyPackages_Call) RunAndReturn

type MockMLSValidationService_VerifySmartContractWalletSignatures_Call

type MockMLSValidationService_VerifySmartContractWalletSignatures_Call struct {
	*mock.Call
}

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

type MockMlsApi_SubscribeGroupMessagesServer

type MockMlsApi_SubscribeGroupMessagesServer struct {
	mock.Mock
}

MockMlsApi_SubscribeGroupMessagesServer is an autogenerated mock type for the MlsApi_SubscribeGroupMessagesServer type

func NewMockMlsApi_SubscribeGroupMessagesServer

func NewMockMlsApi_SubscribeGroupMessagesServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMlsApi_SubscribeGroupMessagesServer

NewMockMlsApi_SubscribeGroupMessagesServer creates a new instance of MockMlsApi_SubscribeGroupMessagesServer. 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 (*MockMlsApi_SubscribeGroupMessagesServer) Context

Context provides a mock function with no fields

func (*MockMlsApi_SubscribeGroupMessagesServer) EXPECT

func (*MockMlsApi_SubscribeGroupMessagesServer) RecvMsg

func (_m *MockMlsApi_SubscribeGroupMessagesServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*MockMlsApi_SubscribeGroupMessagesServer) Send

Send provides a mock function with given fields: _a0

func (*MockMlsApi_SubscribeGroupMessagesServer) SendHeader

SendHeader provides a mock function with given fields: _a0

func (*MockMlsApi_SubscribeGroupMessagesServer) SendMsg

func (_m *MockMlsApi_SubscribeGroupMessagesServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*MockMlsApi_SubscribeGroupMessagesServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*MockMlsApi_SubscribeGroupMessagesServer) SetTrailer

SetTrailer provides a mock function with given fields: _a0

type MockMlsApi_SubscribeGroupMessagesServer_Context_Call

type MockMlsApi_SubscribeGroupMessagesServer_Context_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_Context_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_Context_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_Context_Call) RunAndReturn

type MockMlsApi_SubscribeGroupMessagesServer_Expecter

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

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) Context

Context is a helper method to define mock.On call

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) Send

Send is a helper method to define mock.On call

  • _a0 *apiv1.GroupMessage

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) SendHeader

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) SetHeader

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockMlsApi_SubscribeGroupMessagesServer_Expecter) SetTrailer

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockMlsApi_SubscribeGroupMessagesServer_RecvMsg_Call

type MockMlsApi_SubscribeGroupMessagesServer_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_RecvMsg_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_RecvMsg_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_RecvMsg_Call) RunAndReturn

type MockMlsApi_SubscribeGroupMessagesServer_SendHeader_Call

type MockMlsApi_SubscribeGroupMessagesServer_SendHeader_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_SendHeader_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_SendHeader_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_SendHeader_Call) RunAndReturn

type MockMlsApi_SubscribeGroupMessagesServer_SendMsg_Call

type MockMlsApi_SubscribeGroupMessagesServer_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_SendMsg_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_SendMsg_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_SendMsg_Call) RunAndReturn

type MockMlsApi_SubscribeGroupMessagesServer_Send_Call

type MockMlsApi_SubscribeGroupMessagesServer_Send_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_Send_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_Send_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_Send_Call) RunAndReturn

type MockMlsApi_SubscribeGroupMessagesServer_SetHeader_Call

type MockMlsApi_SubscribeGroupMessagesServer_SetHeader_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_SetHeader_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_SetHeader_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_SetHeader_Call) RunAndReturn

type MockMlsApi_SubscribeGroupMessagesServer_SetTrailer_Call

type MockMlsApi_SubscribeGroupMessagesServer_SetTrailer_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeGroupMessagesServer_SetTrailer_Call) Return

func (*MockMlsApi_SubscribeGroupMessagesServer_SetTrailer_Call) Run

func (*MockMlsApi_SubscribeGroupMessagesServer_SetTrailer_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer

type MockMlsApi_SubscribeWelcomeMessagesServer struct {
	mock.Mock
}

MockMlsApi_SubscribeWelcomeMessagesServer is an autogenerated mock type for the MlsApi_SubscribeWelcomeMessagesServer type

func NewMockMlsApi_SubscribeWelcomeMessagesServer

func NewMockMlsApi_SubscribeWelcomeMessagesServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMlsApi_SubscribeWelcomeMessagesServer

NewMockMlsApi_SubscribeWelcomeMessagesServer creates a new instance of MockMlsApi_SubscribeWelcomeMessagesServer. 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 (*MockMlsApi_SubscribeWelcomeMessagesServer) Context

Context provides a mock function with no fields

func (*MockMlsApi_SubscribeWelcomeMessagesServer) EXPECT

func (*MockMlsApi_SubscribeWelcomeMessagesServer) RecvMsg

func (_m *MockMlsApi_SubscribeWelcomeMessagesServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*MockMlsApi_SubscribeWelcomeMessagesServer) Send

Send provides a mock function with given fields: _a0

func (*MockMlsApi_SubscribeWelcomeMessagesServer) SendHeader

SendHeader provides a mock function with given fields: _a0

func (*MockMlsApi_SubscribeWelcomeMessagesServer) SendMsg

func (_m *MockMlsApi_SubscribeWelcomeMessagesServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*MockMlsApi_SubscribeWelcomeMessagesServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*MockMlsApi_SubscribeWelcomeMessagesServer) SetTrailer

SetTrailer provides a mock function with given fields: _a0

type MockMlsApi_SubscribeWelcomeMessagesServer_Context_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_Context_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Context_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Context_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Context_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer_Expecter

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) Context

Context is a helper method to define mock.On call

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) RecvMsg

RecvMsg is a helper method to define mock.On call

  • m interface{}

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) Send

Send is a helper method to define mock.On call

  • _a0 *apiv1.WelcomeMessage

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) SendHeader

SendHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) SendMsg

SendMsg is a helper method to define mock.On call

  • m interface{}

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) SetHeader

SetHeader is a helper method to define mock.On call

  • _a0 metadata.MD

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Expecter) SetTrailer

SetTrailer is a helper method to define mock.On call

  • _a0 metadata.MD

type MockMlsApi_SubscribeWelcomeMessagesServer_RecvMsg_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_RecvMsg_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_RecvMsg_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_RecvMsg_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_RecvMsg_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer_SendHeader_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_SendHeader_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SendHeader_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SendHeader_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SendHeader_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer_SendMsg_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_SendMsg_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SendMsg_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SendMsg_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SendMsg_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer_Send_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_Send_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Send_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Send_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_Send_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer_SetHeader_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_SetHeader_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SetHeader_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SetHeader_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SetHeader_Call) RunAndReturn

type MockMlsApi_SubscribeWelcomeMessagesServer_SetTrailer_Call

type MockMlsApi_SubscribeWelcomeMessagesServer_SetTrailer_Call struct {
	*mock.Call
}

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

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SetTrailer_Call) Return

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SetTrailer_Call) Run

func (*MockMlsApi_SubscribeWelcomeMessagesServer_SetTrailer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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