mocks

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCValidatorStore

type CCValidatorStore struct {
	mock.Mock
}

CCValidatorStore is an autogenerated mock type for the CCValidatorStore type

func NewCCValidatorStore

func NewCCValidatorStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *CCValidatorStore

NewCCValidatorStore creates a new instance of CCValidatorStore. 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 (*CCValidatorStore) EXPECT

func (*CCValidatorStore) GetAllCCValidator

func (_m *CCValidatorStore) GetAllCCValidator(ctx types.Context) []consumertypes.CrossChainValidator

GetAllCCValidator provides a mock function with given fields: ctx

func (*CCValidatorStore) GetCCValidator

func (_m *CCValidatorStore) GetCCValidator(ctx types.Context, addr []byte) (consumertypes.CrossChainValidator, bool)

GetCCValidator provides a mock function with given fields: ctx, addr

type CCValidatorStore_Expecter

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

func (*CCValidatorStore_Expecter) GetAllCCValidator

func (_e *CCValidatorStore_Expecter) GetAllCCValidator(ctx interface{}) *CCValidatorStore_GetAllCCValidator_Call

GetAllCCValidator is a helper method to define mock.On call

  • ctx types.Context

func (*CCValidatorStore_Expecter) GetCCValidator

func (_e *CCValidatorStore_Expecter) GetCCValidator(ctx interface{}, addr interface{}) *CCValidatorStore_GetCCValidator_Call

GetCCValidator is a helper method to define mock.On call

  • ctx types.Context
  • addr []byte

type CCValidatorStore_GetAllCCValidator_Call

type CCValidatorStore_GetAllCCValidator_Call struct {
	*mock.Call
}

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

func (*CCValidatorStore_GetAllCCValidator_Call) Return

func (*CCValidatorStore_GetAllCCValidator_Call) Run

func (*CCValidatorStore_GetAllCCValidator_Call) RunAndReturn

type CCValidatorStore_GetCCValidator_Call

type CCValidatorStore_GetCCValidator_Call struct {
	*mock.Call
}

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

func (*CCValidatorStore_GetCCValidator_Call) Return

func (*CCValidatorStore_GetCCValidator_Call) Run

func (*CCValidatorStore_GetCCValidator_Call) RunAndReturn

type ValidatorI

type ValidatorI struct {
	mock.Mock
}

ValidatorI is an autogenerated mock type for the ValidatorI type

func NewValidatorI

func NewValidatorI(t interface {
	mock.TestingT
	Cleanup(func())
}) *ValidatorI

NewValidatorI creates a new instance of ValidatorI. 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 (*ValidatorI) ConsPubKey

func (_m *ValidatorI) ConsPubKey() (types.PubKey, error)

ConsPubKey provides a mock function with no fields

func (*ValidatorI) EXPECT

func (_m *ValidatorI) EXPECT() *ValidatorI_Expecter

func (*ValidatorI) GetBondedTokens

func (_m *ValidatorI) GetBondedTokens() math.Int

GetBondedTokens provides a mock function with no fields

func (*ValidatorI) GetCommission

func (_m *ValidatorI) GetCommission() math.LegacyDec

GetCommission provides a mock function with no fields

func (*ValidatorI) GetConsAddr

func (_m *ValidatorI) GetConsAddr() ([]byte, error)

GetConsAddr provides a mock function with no fields

func (*ValidatorI) GetConsensusPower

func (_m *ValidatorI) GetConsensusPower(_a0 math.Int) int64

GetConsensusPower provides a mock function with given fields: _a0

func (*ValidatorI) GetDelegatorShares

func (_m *ValidatorI) GetDelegatorShares() math.LegacyDec

GetDelegatorShares provides a mock function with no fields

func (*ValidatorI) GetMinSelfDelegation

func (_m *ValidatorI) GetMinSelfDelegation() math.Int

GetMinSelfDelegation provides a mock function with no fields

func (*ValidatorI) GetMoniker

func (_m *ValidatorI) GetMoniker() string

GetMoniker provides a mock function with no fields

func (*ValidatorI) GetOperator

func (_m *ValidatorI) GetOperator() string

GetOperator provides a mock function with no fields

func (*ValidatorI) GetStatus

func (_m *ValidatorI) GetStatus() stakingtypes.BondStatus

GetStatus provides a mock function with no fields

func (*ValidatorI) GetTokens

func (_m *ValidatorI) GetTokens() math.Int

GetTokens provides a mock function with no fields

func (*ValidatorI) IsBonded

func (_m *ValidatorI) IsBonded() bool

IsBonded provides a mock function with no fields

func (*ValidatorI) IsJailed

func (_m *ValidatorI) IsJailed() bool

IsJailed provides a mock function with no fields

func (*ValidatorI) IsUnbonded

func (_m *ValidatorI) IsUnbonded() bool

IsUnbonded provides a mock function with no fields

func (*ValidatorI) IsUnbonding

func (_m *ValidatorI) IsUnbonding() bool

IsUnbonding provides a mock function with no fields

func (*ValidatorI) SharesFromTokens

func (_m *ValidatorI) SharesFromTokens(amt math.Int) (math.LegacyDec, error)

SharesFromTokens provides a mock function with given fields: amt

func (*ValidatorI) SharesFromTokensTruncated

func (_m *ValidatorI) SharesFromTokensTruncated(amt math.Int) (math.LegacyDec, error)

SharesFromTokensTruncated provides a mock function with given fields: amt

func (*ValidatorI) TmConsPublicKey

func (_m *ValidatorI) TmConsPublicKey() (crypto.PublicKey, error)

TmConsPublicKey provides a mock function with no fields

func (*ValidatorI) TokensFromShares

func (_m *ValidatorI) TokensFromShares(_a0 math.LegacyDec) math.LegacyDec

TokensFromShares provides a mock function with given fields: _a0

func (*ValidatorI) TokensFromSharesRoundUp

func (_m *ValidatorI) TokensFromSharesRoundUp(_a0 math.LegacyDec) math.LegacyDec

TokensFromSharesRoundUp provides a mock function with given fields: _a0

func (*ValidatorI) TokensFromSharesTruncated

func (_m *ValidatorI) TokensFromSharesTruncated(_a0 math.LegacyDec) math.LegacyDec

TokensFromSharesTruncated provides a mock function with given fields: _a0

type ValidatorI_ConsPubKey_Call

type ValidatorI_ConsPubKey_Call struct {
	*mock.Call
}

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

func (*ValidatorI_ConsPubKey_Call) Return

func (*ValidatorI_ConsPubKey_Call) Run

func (*ValidatorI_ConsPubKey_Call) RunAndReturn

func (_c *ValidatorI_ConsPubKey_Call) RunAndReturn(run func() (types.PubKey, error)) *ValidatorI_ConsPubKey_Call

type ValidatorI_Expecter

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

func (*ValidatorI_Expecter) ConsPubKey

ConsPubKey is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetBondedTokens

GetBondedTokens is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetCommission

GetCommission is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetConsAddr

GetConsAddr is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetConsensusPower

func (_e *ValidatorI_Expecter) GetConsensusPower(_a0 interface{}) *ValidatorI_GetConsensusPower_Call

GetConsensusPower is a helper method to define mock.On call

  • _a0 math.Int

func (*ValidatorI_Expecter) GetDelegatorShares

func (_e *ValidatorI_Expecter) GetDelegatorShares() *ValidatorI_GetDelegatorShares_Call

GetDelegatorShares is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetMinSelfDelegation

func (_e *ValidatorI_Expecter) GetMinSelfDelegation() *ValidatorI_GetMinSelfDelegation_Call

GetMinSelfDelegation is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetMoniker

GetMoniker is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetOperator

GetOperator is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetStatus

GetStatus is a helper method to define mock.On call

func (*ValidatorI_Expecter) GetTokens

GetTokens is a helper method to define mock.On call

func (*ValidatorI_Expecter) IsBonded

IsBonded is a helper method to define mock.On call

func (*ValidatorI_Expecter) IsJailed

IsJailed is a helper method to define mock.On call

func (*ValidatorI_Expecter) IsUnbonded

IsUnbonded is a helper method to define mock.On call

func (*ValidatorI_Expecter) IsUnbonding

IsUnbonding is a helper method to define mock.On call

func (*ValidatorI_Expecter) SharesFromTokens

func (_e *ValidatorI_Expecter) SharesFromTokens(amt interface{}) *ValidatorI_SharesFromTokens_Call

SharesFromTokens is a helper method to define mock.On call

  • amt math.Int

func (*ValidatorI_Expecter) SharesFromTokensTruncated

func (_e *ValidatorI_Expecter) SharesFromTokensTruncated(amt interface{}) *ValidatorI_SharesFromTokensTruncated_Call

SharesFromTokensTruncated is a helper method to define mock.On call

  • amt math.Int

func (*ValidatorI_Expecter) TmConsPublicKey

TmConsPublicKey is a helper method to define mock.On call

func (*ValidatorI_Expecter) TokensFromShares

func (_e *ValidatorI_Expecter) TokensFromShares(_a0 interface{}) *ValidatorI_TokensFromShares_Call

TokensFromShares is a helper method to define mock.On call

  • _a0 math.LegacyDec

func (*ValidatorI_Expecter) TokensFromSharesRoundUp

func (_e *ValidatorI_Expecter) TokensFromSharesRoundUp(_a0 interface{}) *ValidatorI_TokensFromSharesRoundUp_Call

TokensFromSharesRoundUp is a helper method to define mock.On call

  • _a0 math.LegacyDec

func (*ValidatorI_Expecter) TokensFromSharesTruncated

func (_e *ValidatorI_Expecter) TokensFromSharesTruncated(_a0 interface{}) *ValidatorI_TokensFromSharesTruncated_Call

TokensFromSharesTruncated is a helper method to define mock.On call

  • _a0 math.LegacyDec

type ValidatorI_GetBondedTokens_Call

type ValidatorI_GetBondedTokens_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetBondedTokens_Call) Return

func (*ValidatorI_GetBondedTokens_Call) Run

func (*ValidatorI_GetBondedTokens_Call) RunAndReturn

type ValidatorI_GetCommission_Call

type ValidatorI_GetCommission_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetCommission_Call) Return

func (*ValidatorI_GetCommission_Call) Run

func (*ValidatorI_GetCommission_Call) RunAndReturn

type ValidatorI_GetConsAddr_Call

type ValidatorI_GetConsAddr_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetConsAddr_Call) Return

func (*ValidatorI_GetConsAddr_Call) Run

func (*ValidatorI_GetConsAddr_Call) RunAndReturn

func (_c *ValidatorI_GetConsAddr_Call) RunAndReturn(run func() ([]byte, error)) *ValidatorI_GetConsAddr_Call

type ValidatorI_GetConsensusPower_Call

type ValidatorI_GetConsensusPower_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetConsensusPower_Call) Return

func (*ValidatorI_GetConsensusPower_Call) Run

func (*ValidatorI_GetConsensusPower_Call) RunAndReturn

type ValidatorI_GetDelegatorShares_Call

type ValidatorI_GetDelegatorShares_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetDelegatorShares_Call) Return

func (*ValidatorI_GetDelegatorShares_Call) Run

func (*ValidatorI_GetDelegatorShares_Call) RunAndReturn

type ValidatorI_GetMinSelfDelegation_Call

type ValidatorI_GetMinSelfDelegation_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetMinSelfDelegation_Call) Return

func (*ValidatorI_GetMinSelfDelegation_Call) Run

func (*ValidatorI_GetMinSelfDelegation_Call) RunAndReturn

type ValidatorI_GetMoniker_Call

type ValidatorI_GetMoniker_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetMoniker_Call) Return

func (*ValidatorI_GetMoniker_Call) Run

func (*ValidatorI_GetMoniker_Call) RunAndReturn

func (_c *ValidatorI_GetMoniker_Call) RunAndReturn(run func() string) *ValidatorI_GetMoniker_Call

type ValidatorI_GetOperator_Call

type ValidatorI_GetOperator_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetOperator_Call) Return

func (*ValidatorI_GetOperator_Call) Run

func (*ValidatorI_GetOperator_Call) RunAndReturn

func (_c *ValidatorI_GetOperator_Call) RunAndReturn(run func() string) *ValidatorI_GetOperator_Call

type ValidatorI_GetStatus_Call

type ValidatorI_GetStatus_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetStatus_Call) Return

func (*ValidatorI_GetStatus_Call) Run

func (*ValidatorI_GetStatus_Call) RunAndReturn

type ValidatorI_GetTokens_Call

type ValidatorI_GetTokens_Call struct {
	*mock.Call
}

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

func (*ValidatorI_GetTokens_Call) Return

func (*ValidatorI_GetTokens_Call) Run

func (*ValidatorI_GetTokens_Call) RunAndReturn

func (_c *ValidatorI_GetTokens_Call) RunAndReturn(run func() math.Int) *ValidatorI_GetTokens_Call

type ValidatorI_IsBonded_Call

type ValidatorI_IsBonded_Call struct {
	*mock.Call
}

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

func (*ValidatorI_IsBonded_Call) Return

func (*ValidatorI_IsBonded_Call) Run

func (*ValidatorI_IsBonded_Call) RunAndReturn

func (_c *ValidatorI_IsBonded_Call) RunAndReturn(run func() bool) *ValidatorI_IsBonded_Call

type ValidatorI_IsJailed_Call

type ValidatorI_IsJailed_Call struct {
	*mock.Call
}

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

func (*ValidatorI_IsJailed_Call) Return

func (*ValidatorI_IsJailed_Call) Run

func (*ValidatorI_IsJailed_Call) RunAndReturn

func (_c *ValidatorI_IsJailed_Call) RunAndReturn(run func() bool) *ValidatorI_IsJailed_Call

type ValidatorI_IsUnbonded_Call

type ValidatorI_IsUnbonded_Call struct {
	*mock.Call
}

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

func (*ValidatorI_IsUnbonded_Call) Return

func (*ValidatorI_IsUnbonded_Call) Run

func (*ValidatorI_IsUnbonded_Call) RunAndReturn

func (_c *ValidatorI_IsUnbonded_Call) RunAndReturn(run func() bool) *ValidatorI_IsUnbonded_Call

type ValidatorI_IsUnbonding_Call

type ValidatorI_IsUnbonding_Call struct {
	*mock.Call
}

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

func (*ValidatorI_IsUnbonding_Call) Return

func (*ValidatorI_IsUnbonding_Call) Run

func (*ValidatorI_IsUnbonding_Call) RunAndReturn

func (_c *ValidatorI_IsUnbonding_Call) RunAndReturn(run func() bool) *ValidatorI_IsUnbonding_Call

type ValidatorI_SharesFromTokensTruncated_Call

type ValidatorI_SharesFromTokensTruncated_Call struct {
	*mock.Call
}

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

func (*ValidatorI_SharesFromTokensTruncated_Call) Return

func (*ValidatorI_SharesFromTokensTruncated_Call) Run

func (*ValidatorI_SharesFromTokensTruncated_Call) RunAndReturn

type ValidatorI_SharesFromTokens_Call

type ValidatorI_SharesFromTokens_Call struct {
	*mock.Call
}

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

func (*ValidatorI_SharesFromTokens_Call) Return

func (*ValidatorI_SharesFromTokens_Call) Run

func (*ValidatorI_SharesFromTokens_Call) RunAndReturn

type ValidatorI_TmConsPublicKey_Call

type ValidatorI_TmConsPublicKey_Call struct {
	*mock.Call
}

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

func (*ValidatorI_TmConsPublicKey_Call) Return

func (*ValidatorI_TmConsPublicKey_Call) Run

func (*ValidatorI_TmConsPublicKey_Call) RunAndReturn

type ValidatorI_TokensFromSharesRoundUp_Call

type ValidatorI_TokensFromSharesRoundUp_Call struct {
	*mock.Call
}

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

func (*ValidatorI_TokensFromSharesRoundUp_Call) Return

func (*ValidatorI_TokensFromSharesRoundUp_Call) Run

func (*ValidatorI_TokensFromSharesRoundUp_Call) RunAndReturn

type ValidatorI_TokensFromSharesTruncated_Call

type ValidatorI_TokensFromSharesTruncated_Call struct {
	*mock.Call
}

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

func (*ValidatorI_TokensFromSharesTruncated_Call) Return

func (*ValidatorI_TokensFromSharesTruncated_Call) Run

func (*ValidatorI_TokensFromSharesTruncated_Call) RunAndReturn

type ValidatorI_TokensFromShares_Call

type ValidatorI_TokensFromShares_Call struct {
	*mock.Call
}

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

func (*ValidatorI_TokensFromShares_Call) Return

func (*ValidatorI_TokensFromShares_Call) Run

func (*ValidatorI_TokensFromShares_Call) RunAndReturn

type ValidatorStore

type ValidatorStore struct {
	mock.Mock
}

ValidatorStore is an autogenerated mock type for the ValidatorStore type

func NewValidatorStore

func NewValidatorStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ValidatorStore

NewValidatorStore creates a new instance of ValidatorStore. 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 (*ValidatorStore) EXPECT

func (*ValidatorStore) TotalBondedTokens

func (_m *ValidatorStore) TotalBondedTokens(ctx context.Context) (math.Int, error)

TotalBondedTokens provides a mock function with given fields: ctx

func (*ValidatorStore) ValidatorByConsAddr

func (_m *ValidatorStore) ValidatorByConsAddr(ctx context.Context, addr types.ConsAddress) (stakingtypes.ValidatorI, error)

ValidatorByConsAddr provides a mock function with given fields: ctx, addr

type ValidatorStore_Expecter

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

func (*ValidatorStore_Expecter) TotalBondedTokens

func (_e *ValidatorStore_Expecter) TotalBondedTokens(ctx interface{}) *ValidatorStore_TotalBondedTokens_Call

TotalBondedTokens is a helper method to define mock.On call

  • ctx context.Context

func (*ValidatorStore_Expecter) ValidatorByConsAddr

func (_e *ValidatorStore_Expecter) ValidatorByConsAddr(ctx interface{}, addr interface{}) *ValidatorStore_ValidatorByConsAddr_Call

ValidatorByConsAddr is a helper method to define mock.On call

  • ctx context.Context
  • addr types.ConsAddress

type ValidatorStore_TotalBondedTokens_Call

type ValidatorStore_TotalBondedTokens_Call struct {
	*mock.Call
}

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

func (*ValidatorStore_TotalBondedTokens_Call) Return

func (*ValidatorStore_TotalBondedTokens_Call) Run

func (*ValidatorStore_TotalBondedTokens_Call) RunAndReturn

type ValidatorStore_ValidatorByConsAddr_Call

type ValidatorStore_ValidatorByConsAddr_Call struct {
	*mock.Call
}

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

func (*ValidatorStore_ValidatorByConsAddr_Call) Return

func (*ValidatorStore_ValidatorByConsAddr_Call) Run

func (*ValidatorStore_ValidatorByConsAddr_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳