mock

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NexusMock

type NexusMock struct {
	// GetChainFunc mocks the GetChain method.
	GetChainFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool)

	// GetChainsFunc mocks the GetChains method.
	GetChainsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) []github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain
	// contains filtered or unexported fields
}

NexusMock is a mock implementation of types.Nexus.

func TestSomethingThatUsesNexus(t *testing.T) {

	// make and configure a mocked types.Nexus
	mockedNexus := &NexusMock{
		GetChainFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.ChainName) (github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, bool) {
			panic("mock out the GetChain method")
		},
		GetChainsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) []github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain {
			panic("mock out the GetChains method")
		},
	}

	// use mockedNexus in code that requires types.Nexus
	// and then make assertions.

}

func (*NexusMock) GetChainCalls

GetChainCalls gets all the calls that were made to GetChain. Check the length with:

len(mockedNexus.GetChainCalls())

func (*NexusMock) GetChains

GetChains calls GetChainsFunc.

func (*NexusMock) GetChainsCalls

func (mock *NexusMock) GetChainsCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetChainsCalls gets all the calls that were made to GetChains. Check the length with:

len(mockedNexus.GetChainsCalls())

type RewarderMock

type RewarderMock struct {
	// GetPoolFunc mocks the GetPool method.
	GetPoolFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, name string) reward.RewardPool
	// contains filtered or unexported fields
}

RewarderMock is a mock implementation of types.Rewarder.

func TestSomethingThatUsesRewarder(t *testing.T) {

	// make and configure a mocked types.Rewarder
	mockedRewarder := &RewarderMock{
		GetPoolFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, name string) reward.RewardPool {
			panic("mock out the GetPool method")
		},
	}

	// use mockedRewarder in code that requires types.Rewarder
	// and then make assertions.

}

func (*RewarderMock) GetPool

GetPool calls GetPoolFunc.

func (*RewarderMock) GetPoolCalls

func (mock *RewarderMock) GetPoolCalls() []struct {
	Ctx  github_com_cosmos_cosmos_sdk_types.Context
	Name string
}

GetPoolCalls gets all the calls that were made to GetPool. Check the length with:

len(mockedRewarder.GetPoolCalls())

type SnapshotterMock

type SnapshotterMock struct {
	// GetLatestSnapshotFunc mocks the GetLatestSnapshot method.
	GetLatestSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool)

	// GetOperatorFunc mocks the GetOperator method.
	GetOperatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, proxy github_com_cosmos_cosmos_sdk_types.AccAddress) github_com_cosmos_cosmos_sdk_types.ValAddress

	// GetProxyFunc mocks the GetProxy method.
	GetProxyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, principal github_com_cosmos_cosmos_sdk_types.ValAddress) (github_com_cosmos_cosmos_sdk_types.AccAddress, bool)

	// GetSnapshotFunc mocks the GetSnapshot method.
	GetSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, seqNo int64) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool)

	// GetValidatorIllegibilityFunc mocks the GetValidatorIllegibility method.
	GetValidatorIllegibilityFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_axelarnetwork_axelar_core_x_snapshot_exported.SDKValidator) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.ValidatorIllegibility, error)

	// TakeSnapshotFunc mocks the TakeSnapshot method.
	TakeSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRequirement github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, error)
	// contains filtered or unexported fields
}

SnapshotterMock is a mock implementation of types.Snapshotter.

func TestSomethingThatUsesSnapshotter(t *testing.T) {

	// make and configure a mocked types.Snapshotter
	mockedSnapshotter := &SnapshotterMock{
		GetLatestSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool) {
			panic("mock out the GetLatestSnapshot method")
		},
		GetOperatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, proxy github_com_cosmos_cosmos_sdk_types.AccAddress) github_com_cosmos_cosmos_sdk_types.ValAddress {
			panic("mock out the GetOperator method")
		},
		GetProxyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, principal github_com_cosmos_cosmos_sdk_types.ValAddress) (github_com_cosmos_cosmos_sdk_types.AccAddress, bool) {
			panic("mock out the GetProxy method")
		},
		GetSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, seqNo int64) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, bool) {
			panic("mock out the GetSnapshot method")
		},
		GetValidatorIllegibilityFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_axelarnetwork_axelar_core_x_snapshot_exported.SDKValidator) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.ValidatorIllegibility, error) {
			panic("mock out the GetValidatorIllegibility method")
		},
		TakeSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRequirement github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement) (github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot, error) {
			panic("mock out the TakeSnapshot method")
		},
	}

	// use mockedSnapshotter in code that requires types.Snapshotter
	// and then make assertions.

}

func (*SnapshotterMock) GetLatestSnapshot

GetLatestSnapshot calls GetLatestSnapshotFunc.

func (*SnapshotterMock) GetLatestSnapshotCalls

func (mock *SnapshotterMock) GetLatestSnapshotCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetLatestSnapshotCalls gets all the calls that were made to GetLatestSnapshot. Check the length with:

len(mockedSnapshotter.GetLatestSnapshotCalls())

func (*SnapshotterMock) GetOperator

GetOperator calls GetOperatorFunc.

func (*SnapshotterMock) GetOperatorCalls

GetOperatorCalls gets all the calls that were made to GetOperator. Check the length with:

len(mockedSnapshotter.GetOperatorCalls())

func (*SnapshotterMock) GetProxyCalls

GetProxyCalls gets all the calls that were made to GetProxy. Check the length with:

len(mockedSnapshotter.GetProxyCalls())

func (*SnapshotterMock) GetSnapshot

GetSnapshot calls GetSnapshotFunc.

func (*SnapshotterMock) GetSnapshotCalls

func (mock *SnapshotterMock) GetSnapshotCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SeqNo int64
}

GetSnapshotCalls gets all the calls that were made to GetSnapshot. Check the length with:

len(mockedSnapshotter.GetSnapshotCalls())

func (*SnapshotterMock) GetValidatorIllegibilityCalls

GetValidatorIllegibilityCalls gets all the calls that were made to GetValidatorIllegibility. Check the length with:

len(mockedSnapshotter.GetValidatorIllegibilityCalls())

func (*SnapshotterMock) TakeSnapshotCalls

TakeSnapshotCalls gets all the calls that were made to TakeSnapshot. Check the length with:

len(mockedSnapshotter.TakeSnapshotCalls())

type StakingKeeperMock

type StakingKeeperMock struct {
	// GetLastTotalPowerFunc mocks the GetLastTotalPower method.
	GetLastTotalPowerFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) github_com_cosmos_cosmos_sdk_types.Int

	// IterateBondedValidatorsByPowerFunc mocks the IterateBondedValidatorsByPower method.
	IterateBondedValidatorsByPowerFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool))

	// ValidatorFunc mocks the Validator method.
	ValidatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, addr github_com_cosmos_cosmos_sdk_types.ValAddress) stakingtypes.ValidatorI
	// contains filtered or unexported fields
}

StakingKeeperMock is a mock implementation of types.StakingKeeper.

func TestSomethingThatUsesStakingKeeper(t *testing.T) {

	// make and configure a mocked types.StakingKeeper
	mockedStakingKeeper := &StakingKeeperMock{
		GetLastTotalPowerFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) github_com_cosmos_cosmos_sdk_types.Int {
			panic("mock out the GetLastTotalPower method")
		},
		IterateBondedValidatorsByPowerFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool))  {
			panic("mock out the IterateBondedValidatorsByPower method")
		},
		ValidatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, addr github_com_cosmos_cosmos_sdk_types.ValAddress) stakingtypes.ValidatorI {
			panic("mock out the Validator method")
		},
	}

	// use mockedStakingKeeper in code that requires types.StakingKeeper
	// and then make assertions.

}

func (*StakingKeeperMock) GetLastTotalPower

GetLastTotalPower calls GetLastTotalPowerFunc.

func (*StakingKeeperMock) GetLastTotalPowerCalls

func (mock *StakingKeeperMock) GetLastTotalPowerCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetLastTotalPowerCalls gets all the calls that were made to GetLastTotalPower. Check the length with:

len(mockedStakingKeeper.GetLastTotalPowerCalls())

func (*StakingKeeperMock) IterateBondedValidatorsByPower

func (mock *StakingKeeperMock) IterateBondedValidatorsByPower(ctx github_com_cosmos_cosmos_sdk_types.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool))

IterateBondedValidatorsByPower calls IterateBondedValidatorsByPowerFunc.

func (*StakingKeeperMock) IterateBondedValidatorsByPowerCalls

func (mock *StakingKeeperMock) IterateBondedValidatorsByPowerCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
	Fn  func(index int64, validator stakingtypes.ValidatorI) (stop bool)
}

IterateBondedValidatorsByPowerCalls gets all the calls that were made to IterateBondedValidatorsByPower. Check the length with:

len(mockedStakingKeeper.IterateBondedValidatorsByPowerCalls())

func (*StakingKeeperMock) Validator

Validator calls ValidatorFunc.

func (*StakingKeeperMock) ValidatorCalls

ValidatorCalls gets all the calls that were made to Validator. Check the length with:

len(mockedStakingKeeper.ValidatorCalls())

type TSSKeeperMock

type TSSKeeperMock struct {
	// AssertMatchesRequirementsFunc mocks the AssertMatchesRequirements method.
	AssertMatchesRequirementsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error

	// AssignNextKeyFunc mocks the AssignNextKey method.
	AssignNextKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) error

	// DeleteInfoForSigFunc mocks the DeleteInfoForSig method.
	DeleteInfoForSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string)

	// DeleteKeyRecoveryInfoFunc mocks the DeleteKeyRecoveryInfo method.
	DeleteKeyRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)

	// DeleteKeygenStartFunc mocks the DeleteKeygenStart method.
	DeleteKeygenStartFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)

	// DeleteMultisigKeygenFunc mocks the DeleteMultisigKeygen method.
	DeleteMultisigKeygenFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)

	// DeleteMultisigSignFunc mocks the DeleteMultisigSign method.
	DeleteMultisigSignFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string)

	// DeleteSnapshotCounterForKeyIDFunc mocks the DeleteSnapshotCounterForKeyID method.
	DeleteSnapshotCounterForKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)

	// DoesValidatorParticipateInSignFunc mocks the DoesValidatorParticipateInSign method.
	DoesValidatorParticipateInSignFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress) bool

	// GetAvailableOperatorsFunc mocks the GetAvailableOperators method.
	GetAvailableOperatorsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []github_com_cosmos_cosmos_sdk_types.ValAddress

	// GetCurrentKeyFunc mocks the GetCurrentKey method.
	GetCurrentKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)

	// GetCurrentKeyIDFunc mocks the GetCurrentKeyID method.
	GetCurrentKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)

	// GetExternalKeyIDsFunc mocks the GetExternalKeyIDs method.
	GetExternalKeyIDsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)

	// GetExternalMultisigThresholdFunc mocks the GetExternalMultisigThreshold method.
	GetExternalMultisigThresholdFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold

	// GetGroupRecoveryInfoFunc mocks the GetGroupRecoveryInfo method.
	GetGroupRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte

	// GetHeartbeatPeriodInBlocksFunc mocks the GetHeartbeatPeriodInBlocks method.
	GetHeartbeatPeriodInBlocksFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64

	// GetInfoForSigFunc mocks the GetInfoForSig method.
	GetInfoForSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, bool)

	// GetKeyFunc mocks the GetKey method.
	GetKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)

	// GetKeyRequirementFunc mocks the GetKeyRequirement method.
	GetKeyRequirementFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement, bool)

	// GetKeyTypeFunc mocks the GetKeyType method.
	GetKeyTypeFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType

	// GetMaxSimultaneousSignSharesFunc mocks the GetMaxSimultaneousSignShares method.
	GetMaxSimultaneousSignSharesFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64

	// GetMultisigKeygenInfoFunc mocks the GetMultisigKeygenInfo method.
	GetMultisigKeygenInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (types.MultisigKeygenInfo, bool)

	// GetMultisigPubKeysByValidatorFunc mocks the GetMultisigPubKeysByValidator method.
	GetMultisigPubKeysByValidatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, val github_com_cosmos_cosmos_sdk_types.ValAddress) ([]ecdsa.PublicKey, bool)

	// GetMultisigSignInfoFunc mocks the GetMultisigSignInfo method.
	GetMultisigSignInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (types.MultisigSignInfo, bool)

	// GetNextKeyFunc mocks the GetNextKey method.
	GetNextKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool)

	// GetNextKeyIDFunc mocks the GetNextKeyID method.
	GetNextKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool)

	// GetOldActiveKeysFunc mocks the GetOldActiveKeys method.
	GetOldActiveKeysFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.Key, error)

	// GetParamsFunc mocks the GetParams method.
	GetParamsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) types.Params

	// GetPrivateRecoveryInfoFunc mocks the GetPrivateRecoveryInfo method.
	GetPrivateRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte

	// GetRouterFunc mocks the GetRouter method.
	GetRouterFunc func() types.Router

	// GetSigFunc mocks the GetSig method.
	GetSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.Signature, github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus)

	// GetSignParticipantsFunc mocks the GetSignParticipants method.
	GetSignParticipantsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string

	// GetSignParticipantsAsJSONFunc mocks the GetSignParticipantsAsJSON method.
	GetSignParticipantsAsJSONFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte

	// GetSignParticipantsSharesAsJSONFunc mocks the GetSignParticipantsSharesAsJSON method.
	GetSignParticipantsSharesAsJSONFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte

	// GetSnapshotCounterForKeyIDFunc mocks the GetSnapshotCounterForKeyID method.
	GetSnapshotCounterForKeyIDFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (int64, bool)

	// GetSuspendedUntilFunc mocks the GetSuspendedUntil method.
	GetSuspendedUntilFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress) int64

	// HasKeygenStartedFunc mocks the HasKeygenStarted method.
	HasKeygenStartedFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool

	// HasPrivateRecoveryInfoFunc mocks the HasPrivateRecoveryInfo method.
	HasPrivateRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool

	// IsMultisigKeygenCompletedFunc mocks the IsMultisigKeygenCompleted method.
	IsMultisigKeygenCompletedFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool

	// LoggerFunc mocks the Logger method.
	LoggerFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context) log.Logger

	// PenalizeCriminalFunc mocks the PenalizeCriminal method.
	PenalizeCriminalFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, criminal github_com_cosmos_cosmos_sdk_types.ValAddress, crimeType tofnd.MessageOut_CriminalList_Criminal_CrimeType)

	// RotateKeyFunc mocks the RotateKey method.
	RotateKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error

	// SetAvailableOperatorFunc mocks the SetAvailableOperator method.
	SetAvailableOperatorFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)

	// SetExternalKeyIDsFunc mocks the SetExternalKeyIDs method.
	SetExternalKeyIDsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)

	// SetGroupRecoveryInfoFunc mocks the SetGroupRecoveryInfo method.
	SetGroupRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte)

	// SetInfoForSigFunc mocks the SetInfoForSig method.
	SetInfoForSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo)

	// SetKeyFunc mocks the SetKey method.
	SetKeyFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, key github_com_axelarnetwork_axelar_core_x_tss_exported.Key)

	// SetParamsFunc mocks the SetParams method.
	SetParamsFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, p types.Params)

	// SetPrivateRecoveryInfoFunc mocks the SetPrivateRecoveryInfo method.
	SetPrivateRecoveryInfoFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte)

	// SetSigFunc mocks the SetSig method.
	SetSigFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, signature github_com_axelarnetwork_axelar_core_x_tss_exported.Signature)

	// SetSigStatusFunc mocks the SetSigStatus method.
	SetSigStatusFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, status github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus)

	// StartKeygenFunc mocks the StartKeygen method.
	StartKeygenFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, voter types.Voter, keyInfo types.KeyInfo, snapshot github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot) error

	// StartSignFunc mocks the StartSign method.
	StartSignFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, voter interface {
		InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error
	}) error

	// SubmitPubKeysFunc mocks the SubmitPubKeys method.
	SubmitPubKeysFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, validator github_com_cosmos_cosmos_sdk_types.ValAddress, pubKeys ...[]byte) bool

	// SubmitSignaturesFunc mocks the SubmitSignatures method.
	SubmitSignaturesFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress, sigs ...[]byte) bool
	// contains filtered or unexported fields
}

TSSKeeperMock is a mock implementation of types.TSSKeeper.

func TestSomethingThatUsesTSSKeeper(t *testing.T) {

	// make and configure a mocked types.TSSKeeper
	mockedTSSKeeper := &TSSKeeperMock{
		AssertMatchesRequirementsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error {
			panic("mock out the AssertMatchesRequirements method")
		},
		AssignNextKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) error {
			panic("mock out the AssignNextKey method")
		},
		DeleteInfoForSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string)  {
			panic("mock out the DeleteInfoForSig method")
		},
		DeleteKeyRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)  {
			panic("mock out the DeleteKeyRecoveryInfo method")
		},
		DeleteKeygenStartFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)  {
			panic("mock out the DeleteKeygenStart method")
		},
		DeleteMultisigKeygenFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)  {
			panic("mock out the DeleteMultisigKeygen method")
		},
		DeleteMultisigSignFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string)  {
			panic("mock out the DeleteMultisigSign method")
		},
		DeleteSnapshotCounterForKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)  {
			panic("mock out the DeleteSnapshotCounterForKeyID method")
		},
		DoesValidatorParticipateInSignFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress) bool {
			panic("mock out the DoesValidatorParticipateInSign method")
		},
		GetAvailableOperatorsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []github_com_cosmos_cosmos_sdk_types.ValAddress {
			panic("mock out the GetAvailableOperators method")
		},
		GetCurrentKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) {
			panic("mock out the GetCurrentKey method")
		},
		GetCurrentKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) {
			panic("mock out the GetCurrentKeyID method")
		},
		GetExternalKeyIDsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) {
			panic("mock out the GetExternalKeyIDs method")
		},
		GetExternalMultisigThresholdFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold {
			panic("mock out the GetExternalMultisigThreshold method")
		},
		GetGroupRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte {
			panic("mock out the GetGroupRecoveryInfo method")
		},
		GetHeartbeatPeriodInBlocksFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64 {
			panic("mock out the GetHeartbeatPeriodInBlocks method")
		},
		GetInfoForSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, bool) {
			panic("mock out the GetInfoForSig method")
		},
		GetKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) {
			panic("mock out the GetKey method")
		},
		GetKeyRequirementFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole, keyType github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRequirement, bool) {
			panic("mock out the GetKeyRequirement method")
		},
		GetKeyTypeFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) github_com_axelarnetwork_axelar_core_x_tss_exported.KeyType {
			panic("mock out the GetKeyType method")
		},
		GetMaxSimultaneousSignSharesFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) int64 {
			panic("mock out the GetMaxSimultaneousSignShares method")
		},
		GetMultisigKeygenInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (types.MultisigKeygenInfo, bool) {
			panic("mock out the GetMultisigKeygenInfo method")
		},
		GetMultisigPubKeysByValidatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, val github_com_cosmos_cosmos_sdk_types.ValAddress) ([]ecdsa.PublicKey, bool) {
			panic("mock out the GetMultisigPubKeysByValidator method")
		},
		GetMultisigSignInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (types.MultisigSignInfo, bool) {
			panic("mock out the GetMultisigSignInfo method")
		},
		GetNextKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.Key, bool) {
			panic("mock out the GetNextKey method")
		},
		GetNextKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) (github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, bool) {
			panic("mock out the GetNextKeyID method")
		},
		GetOldActiveKeysFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) ([]github_com_axelarnetwork_axelar_core_x_tss_exported.Key, error) {
			panic("mock out the GetOldActiveKeys method")
		},
		GetParamsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) types.Params {
			panic("mock out the GetParams method")
		},
		GetPrivateRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) []byte {
			panic("mock out the GetPrivateRecoveryInfo method")
		},
		GetRouterFunc: func() types.Router {
			panic("mock out the GetRouter method")
		},
		GetSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) (github_com_axelarnetwork_axelar_core_x_tss_exported.Signature, github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus) {
			panic("mock out the GetSig method")
		},
		GetSignParticipantsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string {
			panic("mock out the GetSignParticipants method")
		},
		GetSignParticipantsAsJSONFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte {
			panic("mock out the GetSignParticipantsAsJSON method")
		},
		GetSignParticipantsSharesAsJSONFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte {
			panic("mock out the GetSignParticipantsSharesAsJSON method")
		},
		GetSnapshotCounterForKeyIDFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) (int64, bool) {
			panic("mock out the GetSnapshotCounterForKeyID method")
		},
		GetSuspendedUntilFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress) int64 {
			panic("mock out the GetSuspendedUntil method")
		},
		HasKeygenStartedFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool {
			panic("mock out the HasKeygenStarted method")
		},
		HasPrivateRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool {
			panic("mock out the HasPrivateRecoveryInfo method")
		},
		IsMultisigKeygenCompletedFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID) bool {
			panic("mock out the IsMultisigKeygenCompleted method")
		},
		LoggerFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context) log.Logger {
			panic("mock out the Logger method")
		},
		PenalizeCriminalFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, criminal github_com_cosmos_cosmos_sdk_types.ValAddress, crimeType tofnd.MessageOut_CriminalList_Criminal_CrimeType)  {
			panic("mock out the PenalizeCriminal method")
		},
		RotateKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyRole github_com_axelarnetwork_axelar_core_x_tss_exported.KeyRole) error {
			panic("mock out the RotateKey method")
		},
		SetAvailableOperatorFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, validator github_com_cosmos_cosmos_sdk_types.ValAddress, keyIDs ...github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)  {
			panic("mock out the SetAvailableOperator method")
		},
		SetExternalKeyIDsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, chain github_com_axelarnetwork_axelar_core_x_nexus_exported.Chain, keyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID)  {
			panic("mock out the SetExternalKeyIDs method")
		},
		SetGroupRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte)  {
			panic("mock out the SetGroupRecoveryInfo method")
		},
		SetInfoForSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo)  {
			panic("mock out the SetInfoForSig method")
		},
		SetKeyFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, key github_com_axelarnetwork_axelar_core_x_tss_exported.Key)  {
			panic("mock out the SetKey method")
		},
		SetParamsFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, p types.Params)  {
			panic("mock out the SetParams method")
		},
		SetPrivateRecoveryInfoFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sender github_com_cosmos_cosmos_sdk_types.ValAddress, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, recoveryInfo []byte)  {
			panic("mock out the SetPrivateRecoveryInfo method")
		},
		SetSigFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, signature github_com_axelarnetwork_axelar_core_x_tss_exported.Signature)  {
			panic("mock out the SetSig method")
		},
		SetSigStatusFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, status github_com_axelarnetwork_axelar_core_x_tss_exported.SigStatus)  {
			panic("mock out the SetSigStatus method")
		},
		StartKeygenFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, voter types.Voter, keyInfo types.KeyInfo, snapshot github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshot) error {
			panic("mock out the StartKeygen method")
		},
		StartSignFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, info github_com_axelarnetwork_axelar_core_x_tss_exported.SignInfo, snapshotter github_com_axelarnetwork_axelar_core_x_snapshot_exported.Snapshotter, voter interface{InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error}) error {
			panic("mock out the StartSign method")
		},
		SubmitPubKeysFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, keyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID, validator github_com_cosmos_cosmos_sdk_types.ValAddress, pubKeys ...[]byte) bool {
			panic("mock out the SubmitPubKeys method")
		},
		SubmitSignaturesFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress, sigs ...[]byte) bool {
			panic("mock out the SubmitSignatures method")
		},
	}

	// use mockedTSSKeeper in code that requires types.TSSKeeper
	// and then make assertions.

}

func (*TSSKeeperMock) AssertMatchesRequirementsCalls

AssertMatchesRequirementsCalls gets all the calls that were made to AssertMatchesRequirements. Check the length with:

len(mockedTSSKeeper.AssertMatchesRequirementsCalls())

func (*TSSKeeperMock) AssignNextKeyCalls

AssignNextKeyCalls gets all the calls that were made to AssignNextKey. Check the length with:

len(mockedTSSKeeper.AssignNextKeyCalls())

func (*TSSKeeperMock) DeleteInfoForSig

func (mock *TSSKeeperMock) DeleteInfoForSig(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string)

DeleteInfoForSig calls DeleteInfoForSigFunc.

func (*TSSKeeperMock) DeleteInfoForSigCalls

func (mock *TSSKeeperMock) DeleteInfoForSigCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

DeleteInfoForSigCalls gets all the calls that were made to DeleteInfoForSig. Check the length with:

len(mockedTSSKeeper.DeleteInfoForSigCalls())

func (*TSSKeeperMock) DeleteKeyRecoveryInfo added in v0.9.0

DeleteKeyRecoveryInfo calls DeleteKeyRecoveryInfoFunc.

func (*TSSKeeperMock) DeleteKeyRecoveryInfoCalls added in v0.9.0

DeleteKeyRecoveryInfoCalls gets all the calls that were made to DeleteKeyRecoveryInfo. Check the length with:

len(mockedTSSKeeper.DeleteKeyRecoveryInfoCalls())

func (*TSSKeeperMock) DeleteKeygenStart

DeleteKeygenStart calls DeleteKeygenStartFunc.

func (*TSSKeeperMock) DeleteKeygenStartCalls

DeleteKeygenStartCalls gets all the calls that were made to DeleteKeygenStart. Check the length with:

len(mockedTSSKeeper.DeleteKeygenStartCalls())

func (*TSSKeeperMock) DeleteMultisigKeygen

DeleteMultisigKeygen calls DeleteMultisigKeygenFunc.

func (*TSSKeeperMock) DeleteMultisigKeygenCalls

DeleteMultisigKeygenCalls gets all the calls that were made to DeleteMultisigKeygen. Check the length with:

len(mockedTSSKeeper.DeleteMultisigKeygenCalls())

func (*TSSKeeperMock) DeleteMultisigSign

func (mock *TSSKeeperMock) DeleteMultisigSign(ctx github_com_cosmos_cosmos_sdk_types.Context, signID string)

DeleteMultisigSign calls DeleteMultisigSignFunc.

func (*TSSKeeperMock) DeleteMultisigSignCalls

func (mock *TSSKeeperMock) DeleteMultisigSignCalls() []struct {
	Ctx    github_com_cosmos_cosmos_sdk_types.Context
	SignID string
}

DeleteMultisigSignCalls gets all the calls that were made to DeleteMultisigSign. Check the length with:

len(mockedTSSKeeper.DeleteMultisigSignCalls())

func (*TSSKeeperMock) DeleteSnapshotCounterForKeyID

DeleteSnapshotCounterForKeyID calls DeleteSnapshotCounterForKeyIDFunc.

func (*TSSKeeperMock) DeleteSnapshotCounterForKeyIDCalls

func (mock *TSSKeeperMock) DeleteSnapshotCounterForKeyIDCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID
}

DeleteSnapshotCounterForKeyIDCalls gets all the calls that were made to DeleteSnapshotCounterForKeyID. Check the length with:

len(mockedTSSKeeper.DeleteSnapshotCounterForKeyIDCalls())

func (*TSSKeeperMock) DoesValidatorParticipateInSign

func (mock *TSSKeeperMock) DoesValidatorParticipateInSign(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string, validator github_com_cosmos_cosmos_sdk_types.ValAddress) bool

DoesValidatorParticipateInSign calls DoesValidatorParticipateInSignFunc.

func (*TSSKeeperMock) DoesValidatorParticipateInSignCalls

func (mock *TSSKeeperMock) DoesValidatorParticipateInSignCalls() []struct {
	Ctx       github_com_cosmos_cosmos_sdk_types.Context
	SigID     string
	Validator github_com_cosmos_cosmos_sdk_types.ValAddress
}

DoesValidatorParticipateInSignCalls gets all the calls that were made to DoesValidatorParticipateInSign. Check the length with:

len(mockedTSSKeeper.DoesValidatorParticipateInSignCalls())

func (*TSSKeeperMock) GetAvailableOperators

GetAvailableOperators calls GetAvailableOperatorsFunc.

func (*TSSKeeperMock) GetAvailableOperatorsCalls

func (mock *TSSKeeperMock) GetAvailableOperatorsCalls() []struct {
	Ctx    github_com_cosmos_cosmos_sdk_types.Context
	KeyIDs []github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID
}

GetAvailableOperatorsCalls gets all the calls that were made to GetAvailableOperators. Check the length with:

len(mockedTSSKeeper.GetAvailableOperatorsCalls())

func (*TSSKeeperMock) GetCurrentKeyCalls

GetCurrentKeyCalls gets all the calls that were made to GetCurrentKey. Check the length with:

len(mockedTSSKeeper.GetCurrentKeyCalls())

func (*TSSKeeperMock) GetCurrentKeyIDCalls

GetCurrentKeyIDCalls gets all the calls that were made to GetCurrentKeyID. Check the length with:

len(mockedTSSKeeper.GetCurrentKeyIDCalls())

func (*TSSKeeperMock) GetExternalKeyIDs

GetExternalKeyIDs calls GetExternalKeyIDsFunc.

func (*TSSKeeperMock) GetExternalKeyIDsCalls

GetExternalKeyIDsCalls gets all the calls that were made to GetExternalKeyIDs. Check the length with:

len(mockedTSSKeeper.GetExternalKeyIDsCalls())

func (*TSSKeeperMock) GetExternalMultisigThreshold

func (mock *TSSKeeperMock) GetExternalMultisigThreshold(ctx github_com_cosmos_cosmos_sdk_types.Context) utils.Threshold

GetExternalMultisigThreshold calls GetExternalMultisigThresholdFunc.

func (*TSSKeeperMock) GetExternalMultisigThresholdCalls

func (mock *TSSKeeperMock) GetExternalMultisigThresholdCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetExternalMultisigThresholdCalls gets all the calls that were made to GetExternalMultisigThreshold. Check the length with:

len(mockedTSSKeeper.GetExternalMultisigThresholdCalls())

func (*TSSKeeperMock) GetGroupRecoveryInfo

GetGroupRecoveryInfo calls GetGroupRecoveryInfoFunc.

func (*TSSKeeperMock) GetGroupRecoveryInfoCalls

GetGroupRecoveryInfoCalls gets all the calls that were made to GetGroupRecoveryInfo. Check the length with:

len(mockedTSSKeeper.GetGroupRecoveryInfoCalls())

func (*TSSKeeperMock) GetHeartbeatPeriodInBlocks

func (mock *TSSKeeperMock) GetHeartbeatPeriodInBlocks(ctx github_com_cosmos_cosmos_sdk_types.Context) int64

GetHeartbeatPeriodInBlocks calls GetHeartbeatPeriodInBlocksFunc.

func (*TSSKeeperMock) GetHeartbeatPeriodInBlocksCalls

func (mock *TSSKeeperMock) GetHeartbeatPeriodInBlocksCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetHeartbeatPeriodInBlocksCalls gets all the calls that were made to GetHeartbeatPeriodInBlocks. Check the length with:

len(mockedTSSKeeper.GetHeartbeatPeriodInBlocksCalls())

func (*TSSKeeperMock) GetInfoForSig

GetInfoForSig calls GetInfoForSigFunc.

func (*TSSKeeperMock) GetInfoForSigCalls

func (mock *TSSKeeperMock) GetInfoForSigCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

GetInfoForSigCalls gets all the calls that were made to GetInfoForSig. Check the length with:

len(mockedTSSKeeper.GetInfoForSigCalls())

func (*TSSKeeperMock) GetKeyCalls

GetKeyCalls gets all the calls that were made to GetKey. Check the length with:

len(mockedTSSKeeper.GetKeyCalls())

func (*TSSKeeperMock) GetKeyRequirementCalls

GetKeyRequirementCalls gets all the calls that were made to GetKeyRequirement. Check the length with:

len(mockedTSSKeeper.GetKeyRequirementCalls())

func (*TSSKeeperMock) GetKeyTypeCalls

GetKeyTypeCalls gets all the calls that were made to GetKeyType. Check the length with:

len(mockedTSSKeeper.GetKeyTypeCalls())

func (*TSSKeeperMock) GetMaxSimultaneousSignShares

func (mock *TSSKeeperMock) GetMaxSimultaneousSignShares(ctx github_com_cosmos_cosmos_sdk_types.Context) int64

GetMaxSimultaneousSignShares calls GetMaxSimultaneousSignSharesFunc.

func (*TSSKeeperMock) GetMaxSimultaneousSignSharesCalls

func (mock *TSSKeeperMock) GetMaxSimultaneousSignSharesCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetMaxSimultaneousSignSharesCalls gets all the calls that were made to GetMaxSimultaneousSignShares. Check the length with:

len(mockedTSSKeeper.GetMaxSimultaneousSignSharesCalls())

func (*TSSKeeperMock) GetMultisigKeygenInfo

GetMultisigKeygenInfo calls GetMultisigKeygenInfoFunc.

func (*TSSKeeperMock) GetMultisigKeygenInfoCalls

GetMultisigKeygenInfoCalls gets all the calls that were made to GetMultisigKeygenInfo. Check the length with:

len(mockedTSSKeeper.GetMultisigKeygenInfoCalls())

func (*TSSKeeperMock) GetMultisigPubKeysByValidator

GetMultisigPubKeysByValidator calls GetMultisigPubKeysByValidatorFunc.

func (*TSSKeeperMock) GetMultisigPubKeysByValidatorCalls

GetMultisigPubKeysByValidatorCalls gets all the calls that were made to GetMultisigPubKeysByValidator. Check the length with:

len(mockedTSSKeeper.GetMultisigPubKeysByValidatorCalls())

func (*TSSKeeperMock) GetMultisigSignInfo

GetMultisigSignInfo calls GetMultisigSignInfoFunc.

func (*TSSKeeperMock) GetMultisigSignInfoCalls

func (mock *TSSKeeperMock) GetMultisigSignInfoCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

GetMultisigSignInfoCalls gets all the calls that were made to GetMultisigSignInfo. Check the length with:

len(mockedTSSKeeper.GetMultisigSignInfoCalls())

func (*TSSKeeperMock) GetNextKeyCalls

GetNextKeyCalls gets all the calls that were made to GetNextKey. Check the length with:

len(mockedTSSKeeper.GetNextKeyCalls())

func (*TSSKeeperMock) GetNextKeyIDCalls

GetNextKeyIDCalls gets all the calls that were made to GetNextKeyID. Check the length with:

len(mockedTSSKeeper.GetNextKeyIDCalls())

func (*TSSKeeperMock) GetOldActiveKeysCalls

GetOldActiveKeysCalls gets all the calls that were made to GetOldActiveKeys. Check the length with:

len(mockedTSSKeeper.GetOldActiveKeysCalls())

func (*TSSKeeperMock) GetParams

GetParams calls GetParamsFunc.

func (*TSSKeeperMock) GetParamsCalls

func (mock *TSSKeeperMock) GetParamsCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

GetParamsCalls gets all the calls that were made to GetParams. Check the length with:

len(mockedTSSKeeper.GetParamsCalls())

func (*TSSKeeperMock) GetPrivateRecoveryInfo

GetPrivateRecoveryInfo calls GetPrivateRecoveryInfoFunc.

func (*TSSKeeperMock) GetPrivateRecoveryInfoCalls

GetPrivateRecoveryInfoCalls gets all the calls that were made to GetPrivateRecoveryInfo. Check the length with:

len(mockedTSSKeeper.GetPrivateRecoveryInfoCalls())

func (*TSSKeeperMock) GetRouter

func (mock *TSSKeeperMock) GetRouter() types.Router

GetRouter calls GetRouterFunc.

func (*TSSKeeperMock) GetRouterCalls

func (mock *TSSKeeperMock) GetRouterCalls() []struct {
}

GetRouterCalls gets all the calls that were made to GetRouter. Check the length with:

len(mockedTSSKeeper.GetRouterCalls())

func (*TSSKeeperMock) GetSigCalls

func (mock *TSSKeeperMock) GetSigCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

GetSigCalls gets all the calls that were made to GetSig. Check the length with:

len(mockedTSSKeeper.GetSigCalls())

func (*TSSKeeperMock) GetSignParticipants

func (mock *TSSKeeperMock) GetSignParticipants(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []string

GetSignParticipants calls GetSignParticipantsFunc.

func (*TSSKeeperMock) GetSignParticipantsAsJSON

func (mock *TSSKeeperMock) GetSignParticipantsAsJSON(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte

GetSignParticipantsAsJSON calls GetSignParticipantsAsJSONFunc.

func (*TSSKeeperMock) GetSignParticipantsAsJSONCalls

func (mock *TSSKeeperMock) GetSignParticipantsAsJSONCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

GetSignParticipantsAsJSONCalls gets all the calls that were made to GetSignParticipantsAsJSON. Check the length with:

len(mockedTSSKeeper.GetSignParticipantsAsJSONCalls())

func (*TSSKeeperMock) GetSignParticipantsCalls

func (mock *TSSKeeperMock) GetSignParticipantsCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

GetSignParticipantsCalls gets all the calls that were made to GetSignParticipants. Check the length with:

len(mockedTSSKeeper.GetSignParticipantsCalls())

func (*TSSKeeperMock) GetSignParticipantsSharesAsJSON

func (mock *TSSKeeperMock) GetSignParticipantsSharesAsJSON(ctx github_com_cosmos_cosmos_sdk_types.Context, sigID string) []byte

GetSignParticipantsSharesAsJSON calls GetSignParticipantsSharesAsJSONFunc.

func (*TSSKeeperMock) GetSignParticipantsSharesAsJSONCalls

func (mock *TSSKeeperMock) GetSignParticipantsSharesAsJSONCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	SigID string
}

GetSignParticipantsSharesAsJSONCalls gets all the calls that were made to GetSignParticipantsSharesAsJSON. Check the length with:

len(mockedTSSKeeper.GetSignParticipantsSharesAsJSONCalls())

func (*TSSKeeperMock) GetSnapshotCounterForKeyID

GetSnapshotCounterForKeyID calls GetSnapshotCounterForKeyIDFunc.

func (*TSSKeeperMock) GetSnapshotCounterForKeyIDCalls

func (mock *TSSKeeperMock) GetSnapshotCounterForKeyIDCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID
}

GetSnapshotCounterForKeyIDCalls gets all the calls that were made to GetSnapshotCounterForKeyID. Check the length with:

len(mockedTSSKeeper.GetSnapshotCounterForKeyIDCalls())

func (*TSSKeeperMock) GetSuspendedUntil added in v0.9.0

GetSuspendedUntil calls GetSuspendedUntilFunc.

func (*TSSKeeperMock) GetSuspendedUntilCalls added in v0.9.0

func (mock *TSSKeeperMock) GetSuspendedUntilCalls() []struct {
	Ctx       github_com_cosmos_cosmos_sdk_types.Context
	Validator github_com_cosmos_cosmos_sdk_types.ValAddress
}

GetSuspendedUntilCalls gets all the calls that were made to GetSuspendedUntil. Check the length with:

len(mockedTSSKeeper.GetSuspendedUntilCalls())

func (*TSSKeeperMock) HasKeygenStarted added in v0.8.1

HasKeygenStarted calls HasKeygenStartedFunc.

func (*TSSKeeperMock) HasKeygenStartedCalls added in v0.8.1

HasKeygenStartedCalls gets all the calls that were made to HasKeygenStarted. Check the length with:

len(mockedTSSKeeper.HasKeygenStartedCalls())

func (*TSSKeeperMock) HasPrivateRecoveryInfo added in v0.9.0

HasPrivateRecoveryInfo calls HasPrivateRecoveryInfoFunc.

func (*TSSKeeperMock) HasPrivateRecoveryInfoCalls added in v0.9.0

HasPrivateRecoveryInfoCalls gets all the calls that were made to HasPrivateRecoveryInfo. Check the length with:

len(mockedTSSKeeper.HasPrivateRecoveryInfoCalls())

func (*TSSKeeperMock) IsMultisigKeygenCompleted

IsMultisigKeygenCompleted calls IsMultisigKeygenCompletedFunc.

func (*TSSKeeperMock) IsMultisigKeygenCompletedCalls

func (mock *TSSKeeperMock) IsMultisigKeygenCompletedCalls() []struct {
	Ctx   github_com_cosmos_cosmos_sdk_types.Context
	KeyID github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID
}

IsMultisigKeygenCompletedCalls gets all the calls that were made to IsMultisigKeygenCompleted. Check the length with:

len(mockedTSSKeeper.IsMultisigKeygenCompletedCalls())

func (*TSSKeeperMock) Logger

Logger calls LoggerFunc.

func (*TSSKeeperMock) LoggerCalls

func (mock *TSSKeeperMock) LoggerCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
}

LoggerCalls gets all the calls that were made to Logger. Check the length with:

len(mockedTSSKeeper.LoggerCalls())

func (*TSSKeeperMock) PenalizeCriminal

PenalizeCriminal calls PenalizeCriminalFunc.

func (*TSSKeeperMock) PenalizeCriminalCalls

PenalizeCriminalCalls gets all the calls that were made to PenalizeCriminal. Check the length with:

len(mockedTSSKeeper.PenalizeCriminalCalls())

func (*TSSKeeperMock) RotateKeyCalls

RotateKeyCalls gets all the calls that were made to RotateKey. Check the length with:

len(mockedTSSKeeper.RotateKeyCalls())

func (*TSSKeeperMock) SetAvailableOperator

SetAvailableOperator calls SetAvailableOperatorFunc.

func (*TSSKeeperMock) SetAvailableOperatorCalls

SetAvailableOperatorCalls gets all the calls that were made to SetAvailableOperator. Check the length with:

len(mockedTSSKeeper.SetAvailableOperatorCalls())

func (*TSSKeeperMock) SetExternalKeyIDs

SetExternalKeyIDs calls SetExternalKeyIDsFunc.

func (*TSSKeeperMock) SetExternalKeyIDsCalls

SetExternalKeyIDsCalls gets all the calls that were made to SetExternalKeyIDs. Check the length with:

len(mockedTSSKeeper.SetExternalKeyIDsCalls())

func (*TSSKeeperMock) SetGroupRecoveryInfo

SetGroupRecoveryInfo calls SetGroupRecoveryInfoFunc.

func (*TSSKeeperMock) SetGroupRecoveryInfoCalls

func (mock *TSSKeeperMock) SetGroupRecoveryInfoCalls() []struct {
	Ctx          github_com_cosmos_cosmos_sdk_types.Context
	KeyID        github_com_axelarnetwork_axelar_core_x_tss_exported.KeyID
	RecoveryInfo []byte
}

SetGroupRecoveryInfoCalls gets all the calls that were made to SetGroupRecoveryInfo. Check the length with:

len(mockedTSSKeeper.SetGroupRecoveryInfoCalls())

func (*TSSKeeperMock) SetInfoForSig

SetInfoForSig calls SetInfoForSigFunc.

func (*TSSKeeperMock) SetInfoForSigCalls

SetInfoForSigCalls gets all the calls that were made to SetInfoForSig. Check the length with:

len(mockedTSSKeeper.SetInfoForSigCalls())

func (*TSSKeeperMock) SetKey

SetKey calls SetKeyFunc.

func (*TSSKeeperMock) SetKeyCalls

SetKeyCalls gets all the calls that were made to SetKey. Check the length with:

len(mockedTSSKeeper.SetKeyCalls())

func (*TSSKeeperMock) SetParams

SetParams calls SetParamsFunc.

func (*TSSKeeperMock) SetParamsCalls

func (mock *TSSKeeperMock) SetParamsCalls() []struct {
	Ctx github_com_cosmos_cosmos_sdk_types.Context
	P   types.Params
}

SetParamsCalls gets all the calls that were made to SetParams. Check the length with:

len(mockedTSSKeeper.SetParamsCalls())

func (*TSSKeeperMock) SetPrivateRecoveryInfo

SetPrivateRecoveryInfo calls SetPrivateRecoveryInfoFunc.

func (*TSSKeeperMock) SetPrivateRecoveryInfoCalls

SetPrivateRecoveryInfoCalls gets all the calls that were made to SetPrivateRecoveryInfo. Check the length with:

len(mockedTSSKeeper.SetPrivateRecoveryInfoCalls())

func (*TSSKeeperMock) SetSig

SetSig calls SetSigFunc.

func (*TSSKeeperMock) SetSigCalls

SetSigCalls gets all the calls that were made to SetSig. Check the length with:

len(mockedTSSKeeper.SetSigCalls())

func (*TSSKeeperMock) SetSigStatus

SetSigStatus calls SetSigStatusFunc.

func (*TSSKeeperMock) SetSigStatusCalls

SetSigStatusCalls gets all the calls that were made to SetSigStatus. Check the length with:

len(mockedTSSKeeper.SetSigStatusCalls())

func (*TSSKeeperMock) StartKeygen

StartKeygen calls StartKeygenFunc.

func (*TSSKeeperMock) StartKeygenCalls

StartKeygenCalls gets all the calls that were made to StartKeygen. Check the length with:

len(mockedTSSKeeper.StartKeygenCalls())

func (*TSSKeeperMock) StartSign

StartSign calls StartSignFunc.

func (*TSSKeeperMock) StartSignCalls

StartSignCalls gets all the calls that were made to StartSign. Check the length with:

len(mockedTSSKeeper.StartSignCalls())

func (*TSSKeeperMock) SubmitPubKeys

SubmitPubKeys calls SubmitPubKeysFunc.

func (*TSSKeeperMock) SubmitPubKeysCalls

SubmitPubKeysCalls gets all the calls that were made to SubmitPubKeys. Check the length with:

len(mockedTSSKeeper.SubmitPubKeysCalls())

func (*TSSKeeperMock) SubmitSignatures

SubmitSignatures calls SubmitSignaturesFunc.

func (*TSSKeeperMock) SubmitSignaturesCalls

func (mock *TSSKeeperMock) SubmitSignaturesCalls() []struct {
	Ctx       github_com_cosmos_cosmos_sdk_types.Context
	SigID     string
	Validator github_com_cosmos_cosmos_sdk_types.ValAddress
	Sigs      [][]byte
}

SubmitSignaturesCalls gets all the calls that were made to SubmitSignatures. Check the length with:

len(mockedTSSKeeper.SubmitSignaturesCalls())

type TofndClientMock

type TofndClientMock struct {
	// KeyPresenceFunc mocks the KeyPresence method.
	KeyPresenceFunc func(ctx context.Context, in *tofnd.KeyPresenceRequest, opts ...grpc.CallOption) (*tofnd.KeyPresenceResponse, error)

	// KeygenFunc mocks the Keygen method.
	KeygenFunc func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_KeygenClient, error)

	// RecoverFunc mocks the Recover method.
	RecoverFunc func(ctx context.Context, in *tofnd.RecoverRequest, opts ...grpc.CallOption) (*tofnd.RecoverResponse, error)

	// SignFunc mocks the Sign method.
	SignFunc func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_SignClient, error)
	// contains filtered or unexported fields
}

TofndClientMock is a mock implementation of types.TofndClient.

func TestSomethingThatUsesTofndClient(t *testing.T) {

	// make and configure a mocked types.TofndClient
	mockedTofndClient := &TofndClientMock{
		KeyPresenceFunc: func(ctx context.Context, in *tofnd.KeyPresenceRequest, opts ...grpc.CallOption) (*tofnd.KeyPresenceResponse, error) {
			panic("mock out the KeyPresence method")
		},
		KeygenFunc: func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_KeygenClient, error) {
			panic("mock out the Keygen method")
		},
		RecoverFunc: func(ctx context.Context, in *tofnd.RecoverRequest, opts ...grpc.CallOption) (*tofnd.RecoverResponse, error) {
			panic("mock out the Recover method")
		},
		SignFunc: func(ctx context.Context, opts ...grpc.CallOption) (tofnd.GG20_SignClient, error) {
			panic("mock out the Sign method")
		},
	}

	// use mockedTofndClient in code that requires types.TofndClient
	// and then make assertions.

}

func (*TofndClientMock) KeyPresence

KeyPresence calls KeyPresenceFunc.

func (*TofndClientMock) KeyPresenceCalls

func (mock *TofndClientMock) KeyPresenceCalls() []struct {
	Ctx  context.Context
	In   *tofnd.KeyPresenceRequest
	Opts []grpc.CallOption
}

KeyPresenceCalls gets all the calls that were made to KeyPresence. Check the length with:

len(mockedTofndClient.KeyPresenceCalls())

func (*TofndClientMock) Keygen

Keygen calls KeygenFunc.

func (*TofndClientMock) KeygenCalls

func (mock *TofndClientMock) KeygenCalls() []struct {
	Ctx  context.Context
	Opts []grpc.CallOption
}

KeygenCalls gets all the calls that were made to Keygen. Check the length with:

len(mockedTofndClient.KeygenCalls())

func (*TofndClientMock) Recover

Recover calls RecoverFunc.

func (*TofndClientMock) RecoverCalls

func (mock *TofndClientMock) RecoverCalls() []struct {
	Ctx  context.Context
	In   *tofnd.RecoverRequest
	Opts []grpc.CallOption
}

RecoverCalls gets all the calls that were made to Recover. Check the length with:

len(mockedTofndClient.RecoverCalls())

func (*TofndClientMock) Sign

Sign calls SignFunc.

func (*TofndClientMock) SignCalls

func (mock *TofndClientMock) SignCalls() []struct {
	Ctx  context.Context
	Opts []grpc.CallOption
}

SignCalls gets all the calls that were made to Sign. Check the length with:

len(mockedTofndClient.SignCalls())

type TofndKeyGenClientMock

type TofndKeyGenClientMock struct {
	// CloseSendFunc mocks the CloseSend method.
	CloseSendFunc func() error

	// ContextFunc mocks the Context method.
	ContextFunc func() context.Context

	// HeaderFunc mocks the Header method.
	HeaderFunc func() (metadata.MD, error)

	// RecvFunc mocks the Recv method.
	RecvFunc func() (*tofnd.MessageOut, error)

	// RecvMsgFunc mocks the RecvMsg method.
	RecvMsgFunc func(m interface{}) error

	// SendFunc mocks the Send method.
	SendFunc func(messageIn *tofnd.MessageIn) error

	// SendMsgFunc mocks the SendMsg method.
	SendMsgFunc func(m interface{}) error

	// TrailerFunc mocks the Trailer method.
	TrailerFunc func() metadata.MD
	// contains filtered or unexported fields
}

TofndKeyGenClientMock is a mock implementation of types.TofndKeyGenClient.

func TestSomethingThatUsesTofndKeyGenClient(t *testing.T) {

	// make and configure a mocked types.TofndKeyGenClient
	mockedTofndKeyGenClient := &TofndKeyGenClientMock{
		CloseSendFunc: func() error {
			panic("mock out the CloseSend method")
		},
		ContextFunc: func() context.Context {
			panic("mock out the Context method")
		},
		HeaderFunc: func() (metadata.MD, error) {
			panic("mock out the Header method")
		},
		RecvFunc: func() (*tofnd.MessageOut, error) {
			panic("mock out the Recv method")
		},
		RecvMsgFunc: func(m interface{}) error {
			panic("mock out the RecvMsg method")
		},
		SendFunc: func(messageIn *tofnd.MessageIn) error {
			panic("mock out the Send method")
		},
		SendMsgFunc: func(m interface{}) error {
			panic("mock out the SendMsg method")
		},
		TrailerFunc: func() metadata.MD {
			panic("mock out the Trailer method")
		},
	}

	// use mockedTofndKeyGenClient in code that requires types.TofndKeyGenClient
	// and then make assertions.

}

func (*TofndKeyGenClientMock) CloseSend

func (mock *TofndKeyGenClientMock) CloseSend() error

CloseSend calls CloseSendFunc.

func (*TofndKeyGenClientMock) CloseSendCalls

func (mock *TofndKeyGenClientMock) CloseSendCalls() []struct {
}

CloseSendCalls gets all the calls that were made to CloseSend. Check the length with:

len(mockedTofndKeyGenClient.CloseSendCalls())

func (*TofndKeyGenClientMock) Context

func (mock *TofndKeyGenClientMock) Context() context.Context

Context calls ContextFunc.

func (*TofndKeyGenClientMock) ContextCalls

func (mock *TofndKeyGenClientMock) ContextCalls() []struct {
}

ContextCalls gets all the calls that were made to Context. Check the length with:

len(mockedTofndKeyGenClient.ContextCalls())

func (*TofndKeyGenClientMock) Header

func (mock *TofndKeyGenClientMock) Header() (metadata.MD, error)

Header calls HeaderFunc.

func (*TofndKeyGenClientMock) HeaderCalls

func (mock *TofndKeyGenClientMock) HeaderCalls() []struct {
}

HeaderCalls gets all the calls that were made to Header. Check the length with:

len(mockedTofndKeyGenClient.HeaderCalls())

func (*TofndKeyGenClientMock) Recv

func (mock *TofndKeyGenClientMock) Recv() (*tofnd.MessageOut, error)

Recv calls RecvFunc.

func (*TofndKeyGenClientMock) RecvCalls

func (mock *TofndKeyGenClientMock) RecvCalls() []struct {
}

RecvCalls gets all the calls that were made to Recv. Check the length with:

len(mockedTofndKeyGenClient.RecvCalls())

func (*TofndKeyGenClientMock) RecvMsg

func (mock *TofndKeyGenClientMock) RecvMsg(m interface{}) error

RecvMsg calls RecvMsgFunc.

func (*TofndKeyGenClientMock) RecvMsgCalls

func (mock *TofndKeyGenClientMock) RecvMsgCalls() []struct {
	M interface{}
}

RecvMsgCalls gets all the calls that were made to RecvMsg. Check the length with:

len(mockedTofndKeyGenClient.RecvMsgCalls())

func (*TofndKeyGenClientMock) Send

func (mock *TofndKeyGenClientMock) Send(messageIn *tofnd.MessageIn) error

Send calls SendFunc.

func (*TofndKeyGenClientMock) SendCalls

func (mock *TofndKeyGenClientMock) SendCalls() []struct {
	MessageIn *tofnd.MessageIn
}

SendCalls gets all the calls that were made to Send. Check the length with:

len(mockedTofndKeyGenClient.SendCalls())

func (*TofndKeyGenClientMock) SendMsg

func (mock *TofndKeyGenClientMock) SendMsg(m interface{}) error

SendMsg calls SendMsgFunc.

func (*TofndKeyGenClientMock) SendMsgCalls

func (mock *TofndKeyGenClientMock) SendMsgCalls() []struct {
	M interface{}
}

SendMsgCalls gets all the calls that were made to SendMsg. Check the length with:

len(mockedTofndKeyGenClient.SendMsgCalls())

func (*TofndKeyGenClientMock) Trailer

func (mock *TofndKeyGenClientMock) Trailer() metadata.MD

Trailer calls TrailerFunc.

func (*TofndKeyGenClientMock) TrailerCalls

func (mock *TofndKeyGenClientMock) TrailerCalls() []struct {
}

TrailerCalls gets all the calls that were made to Trailer. Check the length with:

len(mockedTofndKeyGenClient.TrailerCalls())

type TofndSignClientMock

type TofndSignClientMock struct {
	// CloseSendFunc mocks the CloseSend method.
	CloseSendFunc func() error

	// ContextFunc mocks the Context method.
	ContextFunc func() context.Context

	// HeaderFunc mocks the Header method.
	HeaderFunc func() (metadata.MD, error)

	// RecvFunc mocks the Recv method.
	RecvFunc func() (*tofnd.MessageOut, error)

	// RecvMsgFunc mocks the RecvMsg method.
	RecvMsgFunc func(m interface{}) error

	// SendFunc mocks the Send method.
	SendFunc func(messageIn *tofnd.MessageIn) error

	// SendMsgFunc mocks the SendMsg method.
	SendMsgFunc func(m interface{}) error

	// TrailerFunc mocks the Trailer method.
	TrailerFunc func() metadata.MD
	// contains filtered or unexported fields
}

TofndSignClientMock is a mock implementation of types.TofndSignClient.

func TestSomethingThatUsesTofndSignClient(t *testing.T) {

	// make and configure a mocked types.TofndSignClient
	mockedTofndSignClient := &TofndSignClientMock{
		CloseSendFunc: func() error {
			panic("mock out the CloseSend method")
		},
		ContextFunc: func() context.Context {
			panic("mock out the Context method")
		},
		HeaderFunc: func() (metadata.MD, error) {
			panic("mock out the Header method")
		},
		RecvFunc: func() (*tofnd.MessageOut, error) {
			panic("mock out the Recv method")
		},
		RecvMsgFunc: func(m interface{}) error {
			panic("mock out the RecvMsg method")
		},
		SendFunc: func(messageIn *tofnd.MessageIn) error {
			panic("mock out the Send method")
		},
		SendMsgFunc: func(m interface{}) error {
			panic("mock out the SendMsg method")
		},
		TrailerFunc: func() metadata.MD {
			panic("mock out the Trailer method")
		},
	}

	// use mockedTofndSignClient in code that requires types.TofndSignClient
	// and then make assertions.

}

func (*TofndSignClientMock) CloseSend

func (mock *TofndSignClientMock) CloseSend() error

CloseSend calls CloseSendFunc.

func (*TofndSignClientMock) CloseSendCalls

func (mock *TofndSignClientMock) CloseSendCalls() []struct {
}

CloseSendCalls gets all the calls that were made to CloseSend. Check the length with:

len(mockedTofndSignClient.CloseSendCalls())

func (*TofndSignClientMock) Context

func (mock *TofndSignClientMock) Context() context.Context

Context calls ContextFunc.

func (*TofndSignClientMock) ContextCalls

func (mock *TofndSignClientMock) ContextCalls() []struct {
}

ContextCalls gets all the calls that were made to Context. Check the length with:

len(mockedTofndSignClient.ContextCalls())

func (*TofndSignClientMock) Header

func (mock *TofndSignClientMock) Header() (metadata.MD, error)

Header calls HeaderFunc.

func (*TofndSignClientMock) HeaderCalls

func (mock *TofndSignClientMock) HeaderCalls() []struct {
}

HeaderCalls gets all the calls that were made to Header. Check the length with:

len(mockedTofndSignClient.HeaderCalls())

func (*TofndSignClientMock) Recv

func (mock *TofndSignClientMock) Recv() (*tofnd.MessageOut, error)

Recv calls RecvFunc.

func (*TofndSignClientMock) RecvCalls

func (mock *TofndSignClientMock) RecvCalls() []struct {
}

RecvCalls gets all the calls that were made to Recv. Check the length with:

len(mockedTofndSignClient.RecvCalls())

func (*TofndSignClientMock) RecvMsg

func (mock *TofndSignClientMock) RecvMsg(m interface{}) error

RecvMsg calls RecvMsgFunc.

func (*TofndSignClientMock) RecvMsgCalls

func (mock *TofndSignClientMock) RecvMsgCalls() []struct {
	M interface{}
}

RecvMsgCalls gets all the calls that were made to RecvMsg. Check the length with:

len(mockedTofndSignClient.RecvMsgCalls())

func (*TofndSignClientMock) Send

func (mock *TofndSignClientMock) Send(messageIn *tofnd.MessageIn) error

Send calls SendFunc.

func (*TofndSignClientMock) SendCalls

func (mock *TofndSignClientMock) SendCalls() []struct {
	MessageIn *tofnd.MessageIn
}

SendCalls gets all the calls that were made to Send. Check the length with:

len(mockedTofndSignClient.SendCalls())

func (*TofndSignClientMock) SendMsg

func (mock *TofndSignClientMock) SendMsg(m interface{}) error

SendMsg calls SendMsgFunc.

func (*TofndSignClientMock) SendMsgCalls

func (mock *TofndSignClientMock) SendMsgCalls() []struct {
	M interface{}
}

SendMsgCalls gets all the calls that were made to SendMsg. Check the length with:

len(mockedTofndSignClient.SendMsgCalls())

func (*TofndSignClientMock) Trailer

func (mock *TofndSignClientMock) Trailer() metadata.MD

Trailer calls TrailerFunc.

func (*TofndSignClientMock) TrailerCalls

func (mock *TofndSignClientMock) TrailerCalls() []struct {
}

TrailerCalls gets all the calls that were made to Trailer. Check the length with:

len(mockedTofndSignClient.TrailerCalls())

type VoterMock

type VoterMock struct {
	// GetPollFunc mocks the GetPoll method.
	GetPollFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, pollKey exported1.PollKey) exported1.Poll

	// InitializePollWithSnapshotFunc mocks the InitializePollWithSnapshot method.
	InitializePollWithSnapshotFunc func(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error
	// contains filtered or unexported fields
}

VoterMock is a mock implementation of types.Voter.

func TestSomethingThatUsesVoter(t *testing.T) {

	// make and configure a mocked types.Voter
	mockedVoter := &VoterMock{
		GetPollFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, pollKey exported1.PollKey) exported1.Poll {
			panic("mock out the GetPoll method")
		},
		InitializePollWithSnapshotFunc: func(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error {
			panic("mock out the InitializePollWithSnapshot method")
		},
	}

	// use mockedVoter in code that requires types.Voter
	// and then make assertions.

}

func (*VoterMock) GetPoll

GetPoll calls GetPollFunc.

func (*VoterMock) GetPollCalls

func (mock *VoterMock) GetPollCalls() []struct {
	Ctx     github_com_cosmos_cosmos_sdk_types.Context
	PollKey exported1.PollKey
}

GetPollCalls gets all the calls that were made to GetPoll. Check the length with:

len(mockedVoter.GetPollCalls())

func (*VoterMock) InitializePollWithSnapshot

func (mock *VoterMock) InitializePollWithSnapshot(ctx github_com_cosmos_cosmos_sdk_types.Context, key exported1.PollKey, snapshotSeqNo int64, pollProperties ...exported1.PollProperty) error

InitializePollWithSnapshot calls InitializePollWithSnapshotFunc.

func (*VoterMock) InitializePollWithSnapshotCalls

func (mock *VoterMock) InitializePollWithSnapshotCalls() []struct {
	Ctx            github_com_cosmos_cosmos_sdk_types.Context
	Key            exported1.PollKey
	SnapshotSeqNo  int64
	PollProperties []exported1.PollProperty
}

InitializePollWithSnapshotCalls gets all the calls that were made to InitializePollWithSnapshot. Check the length with:

len(mockedVoter.InitializePollWithSnapshotCalls())

Jump to

Keyboard shortcuts

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