mocks

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorageGetter

type MockStorageGetter struct {
	// ChangeDynamicValuesFunc is an instance of a mock function object
	// controlling the behavior of the method ChangeDynamicValues.
	ChangeDynamicValuesFunc *StorageGetterChangeDynamicValuesFunc
	// GetDataStoreFeeFunc is an instance of a mock function object
	// controlling the behavior of the method GetDataStoreFee.
	GetDataStoreFeeFunc *StorageGetterGetDataStoreFeeFunc
	// GetDeadBlockRoundNextRoundTimeoutFunc is an instance of a mock
	// function object controlling the behavior of the method
	// GetDeadBlockRoundNextRoundTimeout.
	GetDeadBlockRoundNextRoundTimeoutFunc *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc
	// GetDownloadTimeoutFunc is an instance of a mock function object
	// controlling the behavior of the method GetDownloadTimeout.
	GetDownloadTimeoutFunc *StorageGetterGetDownloadTimeoutFunc
	// GetDynamicValueInThePastFunc is an instance of a mock function object
	// controlling the behavior of the method GetDynamicValueInThePast.
	GetDynamicValueInThePastFunc *StorageGetterGetDynamicValueInThePastFunc
	// GetMaxBlockSizeFunc is an instance of a mock function object
	// controlling the behavior of the method GetMaxBlockSize.
	GetMaxBlockSizeFunc *StorageGetterGetMaxBlockSizeFunc
	// GetMaxProposalSizeFunc is an instance of a mock function object
	// controlling the behavior of the method GetMaxProposalSize.
	GetMaxProposalSizeFunc *StorageGetterGetMaxProposalSizeFunc
	// GetMinScaledTransactionFeeFunc is an instance of a mock function
	// object controlling the behavior of the method
	// GetMinScaledTransactionFee.
	GetMinScaledTransactionFeeFunc *StorageGetterGetMinScaledTransactionFeeFunc
	// GetPreCommitTimeoutFunc is an instance of a mock function object
	// controlling the behavior of the method GetPreCommitTimeout.
	GetPreCommitTimeoutFunc *StorageGetterGetPreCommitTimeoutFunc
	// GetPreVoteTimeoutFunc is an instance of a mock function object
	// controlling the behavior of the method GetPreVoteTimeout.
	GetPreVoteTimeoutFunc *StorageGetterGetPreVoteTimeoutFunc
	// GetProposalTimeoutFunc is an instance of a mock function object
	// controlling the behavior of the method GetProposalTimeout.
	GetProposalTimeoutFunc *StorageGetterGetProposalTimeoutFunc
	// GetValueStoreFeeFunc is an instance of a mock function object
	// controlling the behavior of the method GetValueStoreFee.
	GetValueStoreFeeFunc *StorageGetterGetValueStoreFeeFunc
	// UpdateCurrentDynamicValueFunc is an instance of a mock function
	// object controlling the behavior of the method
	// UpdateCurrentDynamicValue.
	UpdateCurrentDynamicValueFunc *StorageGetterUpdateCurrentDynamicValueFunc
}

MockStorageGetter is a mock implementation of the StorageGetter interface (from the package github.com/alicenet/alicenet/dynamics) used for unit testing.

func NewMockStorageGetter

func NewMockStorageGetter() *MockStorageGetter

NewMockStorageGetter creates a new mock of the StorageGetter interface. All methods return zero values for all results, unless overwritten.

func NewMockStorageGetterFrom

func NewMockStorageGetterFrom(i dynamics.StorageGetter) *MockStorageGetter

NewMockStorageGetterFrom creates a new mock of the MockStorageGetter interface. All methods delegate to the given implementation, unless overwritten.

func NewStrictMockStorageGetter

func NewStrictMockStorageGetter() *MockStorageGetter

NewStrictMockStorageGetter creates a new mock of the StorageGetter interface. All methods panic on invocation, unless overwritten.

func (*MockStorageGetter) ChangeDynamicValues added in v0.0.8

func (m *MockStorageGetter) ChangeDynamicValues(v0 *v2.Txn, v1 uint32, v2 []byte) error

ChangeDynamicValues delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetDataStoreFee added in v0.0.8

func (m *MockStorageGetter) GetDataStoreFee() *big.Int

GetDataStoreFee delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetDeadBlockRoundNextRoundTimeout

func (m *MockStorageGetter) GetDeadBlockRoundNextRoundTimeout() time.Duration

GetDeadBlockRoundNextRoundTimeout delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetDownloadTimeout

func (m *MockStorageGetter) GetDownloadTimeout() time.Duration

GetDownloadTimeout delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetDynamicValueInThePast added in v0.0.8

func (m *MockStorageGetter) GetDynamicValueInThePast(v0 *v2.Txn, v1 uint32) (uint32, *dynamics.DynamicValues, error)

GetDynamicValueInThePast delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetMaxBlockSize added in v0.0.8

func (m *MockStorageGetter) GetMaxBlockSize() uint32

GetMaxBlockSize delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetMaxProposalSize

func (m *MockStorageGetter) GetMaxProposalSize() uint32

GetMaxProposalSize delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetMinScaledTransactionFee added in v0.0.8

func (m *MockStorageGetter) GetMinScaledTransactionFee() *big.Int

GetMinScaledTransactionFee delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetPreCommitTimeout added in v0.0.8

func (m *MockStorageGetter) GetPreCommitTimeout() time.Duration

GetPreCommitTimeout delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetPreVoteTimeout added in v0.0.8

func (m *MockStorageGetter) GetPreVoteTimeout() time.Duration

GetPreVoteTimeout delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetProposalTimeout added in v0.0.8

func (m *MockStorageGetter) GetProposalTimeout() time.Duration

GetProposalTimeout delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) GetValueStoreFee

func (m *MockStorageGetter) GetValueStoreFee() *big.Int

GetValueStoreFee delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

func (*MockStorageGetter) UpdateCurrentDynamicValue added in v0.0.8

func (m *MockStorageGetter) UpdateCurrentDynamicValue(v0 *v2.Txn, v1 uint32) error

UpdateCurrentDynamicValue delegates to the next hook function in the queue and stores the parameter and result values of this invocation.

type StorageGetterChangeDynamicValuesFunc added in v0.0.8

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

StorageGetterChangeDynamicValuesFunc describes the behavior when the ChangeDynamicValues method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterChangeDynamicValuesFunc) History added in v0.0.8

History returns a sequence of StorageGetterChangeDynamicValuesFuncCall objects describing the invocations of this function.

func (*StorageGetterChangeDynamicValuesFunc) PushHook added in v0.0.8

func (f *StorageGetterChangeDynamicValuesFunc) PushHook(hook func(*v2.Txn, uint32, []byte) error)

PushHook adds a function to the end of hook queue. Each invocation of the ChangeDynamicValues method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterChangeDynamicValuesFunc) PushReturn added in v0.0.8

func (f *StorageGetterChangeDynamicValuesFunc) PushReturn(r0 error)

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterChangeDynamicValuesFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterChangeDynamicValuesFunc) SetDefaultHook(hook func(*v2.Txn, uint32, []byte) error)

SetDefaultHook sets function that is called when the ChangeDynamicValues method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterChangeDynamicValuesFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterChangeDynamicValuesFunc) SetDefaultReturn(r0 error)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterChangeDynamicValuesFuncCall added in v0.0.8

type StorageGetterChangeDynamicValuesFuncCall struct {
	// Arg0 is the value of the 1st argument passed to this method
	// invocation.
	Arg0 *v2.Txn
	// Arg1 is the value of the 2nd argument passed to this method
	// invocation.
	Arg1 uint32
	// Arg2 is the value of the 3rd argument passed to this method
	// invocation.
	Arg2 []byte
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 error
}

StorageGetterChangeDynamicValuesFuncCall is an object that describes an invocation of method ChangeDynamicValues on an instance of MockStorageGetter.

func (StorageGetterChangeDynamicValuesFuncCall) Args added in v0.0.8

func (c StorageGetterChangeDynamicValuesFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterChangeDynamicValuesFuncCall) Results added in v0.0.8

func (c StorageGetterChangeDynamicValuesFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetDataStoreFeeFunc added in v0.0.8

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

StorageGetterGetDataStoreFeeFunc describes the behavior when the GetDataStoreFee method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetDataStoreFeeFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetDataStoreFeeFuncCall objects describing the invocations of this function.

func (*StorageGetterGetDataStoreFeeFunc) PushHook added in v0.0.8

func (f *StorageGetterGetDataStoreFeeFunc) PushHook(hook func() *big.Int)

PushHook adds a function to the end of hook queue. Each invocation of the GetDataStoreFee method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetDataStoreFeeFunc) PushReturn added in v0.0.8

func (f *StorageGetterGetDataStoreFeeFunc) PushReturn(r0 *big.Int)

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetDataStoreFeeFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterGetDataStoreFeeFunc) SetDefaultHook(hook func() *big.Int)

SetDefaultHook sets function that is called when the GetDataStoreFee method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetDataStoreFeeFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterGetDataStoreFeeFunc) SetDefaultReturn(r0 *big.Int)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetDataStoreFeeFuncCall added in v0.0.8

type StorageGetterGetDataStoreFeeFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 *big.Int
}

StorageGetterGetDataStoreFeeFuncCall is an object that describes an invocation of method GetDataStoreFee on an instance of MockStorageGetter.

func (StorageGetterGetDataStoreFeeFuncCall) Args added in v0.0.8

func (c StorageGetterGetDataStoreFeeFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetDataStoreFeeFuncCall) Results added in v0.0.8

func (c StorageGetterGetDataStoreFeeFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc

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

StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc describes the behavior when the GetDeadBlockRoundNextRoundTimeout method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) History

History returns a sequence of StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall objects describing the invocations of this function.

func (*StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushHook

PushHook adds a function to the end of hook queue. Each invocation of the GetDeadBlockRoundNextRoundTimeout method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushReturn

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) SetDefaultHook

func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) SetDefaultHook(hook func() time.Duration)

SetDefaultHook sets function that is called when the GetDeadBlockRoundNextRoundTimeout method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) SetDefaultReturn

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall

type StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 time.Duration
}

StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall is an object that describes an invocation of method GetDeadBlockRoundNextRoundTimeout on an instance of MockStorageGetter.

func (StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall) Args

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall) Results

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetDownloadTimeoutFunc

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

StorageGetterGetDownloadTimeoutFunc describes the behavior when the GetDownloadTimeout method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetDownloadTimeoutFunc) History

History returns a sequence of StorageGetterGetDownloadTimeoutFuncCall objects describing the invocations of this function.

func (*StorageGetterGetDownloadTimeoutFunc) PushHook

func (f *StorageGetterGetDownloadTimeoutFunc) PushHook(hook func() time.Duration)

PushHook adds a function to the end of hook queue. Each invocation of the GetDownloadTimeout method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetDownloadTimeoutFunc) PushReturn

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetDownloadTimeoutFunc) SetDefaultHook

func (f *StorageGetterGetDownloadTimeoutFunc) SetDefaultHook(hook func() time.Duration)

SetDefaultHook sets function that is called when the GetDownloadTimeout method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetDownloadTimeoutFunc) SetDefaultReturn

func (f *StorageGetterGetDownloadTimeoutFunc) SetDefaultReturn(r0 time.Duration)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetDownloadTimeoutFuncCall

type StorageGetterGetDownloadTimeoutFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 time.Duration
}

StorageGetterGetDownloadTimeoutFuncCall is an object that describes an invocation of method GetDownloadTimeout on an instance of MockStorageGetter.

func (StorageGetterGetDownloadTimeoutFuncCall) Args

func (c StorageGetterGetDownloadTimeoutFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetDownloadTimeoutFuncCall) Results

func (c StorageGetterGetDownloadTimeoutFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetDynamicValueInThePastFunc added in v0.0.8

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

StorageGetterGetDynamicValueInThePastFunc describes the behavior when the GetDynamicValueInThePast method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetDynamicValueInThePastFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetDynamicValueInThePastFuncCall objects describing the invocations of this function.

func (*StorageGetterGetDynamicValueInThePastFunc) PushHook added in v0.0.8

PushHook adds a function to the end of hook queue. Each invocation of the GetDynamicValueInThePast method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetDynamicValueInThePastFunc) PushReturn added in v0.0.8

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetDynamicValueInThePastFunc) SetDefaultHook added in v0.0.8

SetDefaultHook sets function that is called when the GetDynamicValueInThePast method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetDynamicValueInThePastFunc) SetDefaultReturn added in v0.0.8

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetDynamicValueInThePastFuncCall added in v0.0.8

type StorageGetterGetDynamicValueInThePastFuncCall struct {
	// Arg0 is the value of the 1st argument passed to this method
	// invocation.
	Arg0 *v2.Txn
	// Arg1 is the value of the 2nd argument passed to this method
	// invocation.
	Arg1 uint32
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 uint32
	// Result1 is the value of the 2nd result returned from this method
	// invocation.
	Result1 *dynamics.DynamicValues
	// Result2 is the value of the 3rd result returned from this method
	// invocation.
	Result2 error
}

StorageGetterGetDynamicValueInThePastFuncCall is an object that describes an invocation of method GetDynamicValueInThePast on an instance of MockStorageGetter.

func (StorageGetterGetDynamicValueInThePastFuncCall) Args added in v0.0.8

func (c StorageGetterGetDynamicValueInThePastFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetDynamicValueInThePastFuncCall) Results added in v0.0.8

func (c StorageGetterGetDynamicValueInThePastFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetMaxBlockSizeFunc added in v0.0.8

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

StorageGetterGetMaxBlockSizeFunc describes the behavior when the GetMaxBlockSize method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetMaxBlockSizeFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetMaxBlockSizeFuncCall objects describing the invocations of this function.

func (*StorageGetterGetMaxBlockSizeFunc) PushHook added in v0.0.8

func (f *StorageGetterGetMaxBlockSizeFunc) PushHook(hook func() uint32)

PushHook adds a function to the end of hook queue. Each invocation of the GetMaxBlockSize method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetMaxBlockSizeFunc) PushReturn added in v0.0.8

func (f *StorageGetterGetMaxBlockSizeFunc) PushReturn(r0 uint32)

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetMaxBlockSizeFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterGetMaxBlockSizeFunc) SetDefaultHook(hook func() uint32)

SetDefaultHook sets function that is called when the GetMaxBlockSize method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetMaxBlockSizeFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterGetMaxBlockSizeFunc) SetDefaultReturn(r0 uint32)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetMaxBlockSizeFuncCall added in v0.0.8

type StorageGetterGetMaxBlockSizeFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 uint32
}

StorageGetterGetMaxBlockSizeFuncCall is an object that describes an invocation of method GetMaxBlockSize on an instance of MockStorageGetter.

func (StorageGetterGetMaxBlockSizeFuncCall) Args added in v0.0.8

func (c StorageGetterGetMaxBlockSizeFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetMaxBlockSizeFuncCall) Results added in v0.0.8

func (c StorageGetterGetMaxBlockSizeFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetMaxProposalSizeFunc

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

StorageGetterGetMaxProposalSizeFunc describes the behavior when the GetMaxProposalSize method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetMaxProposalSizeFunc) History

History returns a sequence of StorageGetterGetMaxProposalSizeFuncCall objects describing the invocations of this function.

func (*StorageGetterGetMaxProposalSizeFunc) PushHook

func (f *StorageGetterGetMaxProposalSizeFunc) PushHook(hook func() uint32)

PushHook adds a function to the end of hook queue. Each invocation of the GetMaxProposalSize method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetMaxProposalSizeFunc) PushReturn

func (f *StorageGetterGetMaxProposalSizeFunc) PushReturn(r0 uint32)

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetMaxProposalSizeFunc) SetDefaultHook

func (f *StorageGetterGetMaxProposalSizeFunc) SetDefaultHook(hook func() uint32)

SetDefaultHook sets function that is called when the GetMaxProposalSize method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetMaxProposalSizeFunc) SetDefaultReturn

func (f *StorageGetterGetMaxProposalSizeFunc) SetDefaultReturn(r0 uint32)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetMaxProposalSizeFuncCall

type StorageGetterGetMaxProposalSizeFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 uint32
}

StorageGetterGetMaxProposalSizeFuncCall is an object that describes an invocation of method GetMaxProposalSize on an instance of MockStorageGetter.

func (StorageGetterGetMaxProposalSizeFuncCall) Args

func (c StorageGetterGetMaxProposalSizeFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetMaxProposalSizeFuncCall) Results

func (c StorageGetterGetMaxProposalSizeFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetMinScaledTransactionFeeFunc added in v0.0.8

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

StorageGetterGetMinScaledTransactionFeeFunc describes the behavior when the GetMinScaledTransactionFee method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetMinScaledTransactionFeeFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetMinScaledTransactionFeeFuncCall objects describing the invocations of this function.

func (*StorageGetterGetMinScaledTransactionFeeFunc) PushHook added in v0.0.8

func (f *StorageGetterGetMinScaledTransactionFeeFunc) PushHook(hook func() *big.Int)

PushHook adds a function to the end of hook queue. Each invocation of the GetMinScaledTransactionFee method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetMinScaledTransactionFeeFunc) PushReturn added in v0.0.8

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetMinScaledTransactionFeeFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterGetMinScaledTransactionFeeFunc) SetDefaultHook(hook func() *big.Int)

SetDefaultHook sets function that is called when the GetMinScaledTransactionFee method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetMinScaledTransactionFeeFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterGetMinScaledTransactionFeeFunc) SetDefaultReturn(r0 *big.Int)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetMinScaledTransactionFeeFuncCall added in v0.0.8

type StorageGetterGetMinScaledTransactionFeeFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 *big.Int
}

StorageGetterGetMinScaledTransactionFeeFuncCall is an object that describes an invocation of method GetMinScaledTransactionFee on an instance of MockStorageGetter.

func (StorageGetterGetMinScaledTransactionFeeFuncCall) Args added in v0.0.8

func (c StorageGetterGetMinScaledTransactionFeeFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetMinScaledTransactionFeeFuncCall) Results added in v0.0.8

func (c StorageGetterGetMinScaledTransactionFeeFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetPreCommitTimeoutFunc added in v0.0.8

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

StorageGetterGetPreCommitTimeoutFunc describes the behavior when the GetPreCommitTimeout method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetPreCommitTimeoutFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetPreCommitTimeoutFuncCall objects describing the invocations of this function.

func (*StorageGetterGetPreCommitTimeoutFunc) PushHook added in v0.0.8

func (f *StorageGetterGetPreCommitTimeoutFunc) PushHook(hook func() time.Duration)

PushHook adds a function to the end of hook queue. Each invocation of the GetPreCommitTimeout method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetPreCommitTimeoutFunc) PushReturn added in v0.0.8

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetPreCommitTimeoutFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterGetPreCommitTimeoutFunc) SetDefaultHook(hook func() time.Duration)

SetDefaultHook sets function that is called when the GetPreCommitTimeout method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetPreCommitTimeoutFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterGetPreCommitTimeoutFunc) SetDefaultReturn(r0 time.Duration)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetPreCommitTimeoutFuncCall added in v0.0.8

type StorageGetterGetPreCommitTimeoutFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 time.Duration
}

StorageGetterGetPreCommitTimeoutFuncCall is an object that describes an invocation of method GetPreCommitTimeout on an instance of MockStorageGetter.

func (StorageGetterGetPreCommitTimeoutFuncCall) Args added in v0.0.8

func (c StorageGetterGetPreCommitTimeoutFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetPreCommitTimeoutFuncCall) Results added in v0.0.8

func (c StorageGetterGetPreCommitTimeoutFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetPreVoteTimeoutFunc added in v0.0.8

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

StorageGetterGetPreVoteTimeoutFunc describes the behavior when the GetPreVoteTimeout method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetPreVoteTimeoutFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetPreVoteTimeoutFuncCall objects describing the invocations of this function.

func (*StorageGetterGetPreVoteTimeoutFunc) PushHook added in v0.0.8

func (f *StorageGetterGetPreVoteTimeoutFunc) PushHook(hook func() time.Duration)

PushHook adds a function to the end of hook queue. Each invocation of the GetPreVoteTimeout method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetPreVoteTimeoutFunc) PushReturn added in v0.0.8

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetPreVoteTimeoutFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterGetPreVoteTimeoutFunc) SetDefaultHook(hook func() time.Duration)

SetDefaultHook sets function that is called when the GetPreVoteTimeout method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetPreVoteTimeoutFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterGetPreVoteTimeoutFunc) SetDefaultReturn(r0 time.Duration)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetPreVoteTimeoutFuncCall added in v0.0.8

type StorageGetterGetPreVoteTimeoutFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 time.Duration
}

StorageGetterGetPreVoteTimeoutFuncCall is an object that describes an invocation of method GetPreVoteTimeout on an instance of MockStorageGetter.

func (StorageGetterGetPreVoteTimeoutFuncCall) Args added in v0.0.8

func (c StorageGetterGetPreVoteTimeoutFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetPreVoteTimeoutFuncCall) Results added in v0.0.8

func (c StorageGetterGetPreVoteTimeoutFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetProposalTimeoutFunc added in v0.0.8

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

StorageGetterGetProposalTimeoutFunc describes the behavior when the GetProposalTimeout method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetProposalTimeoutFunc) History added in v0.0.8

History returns a sequence of StorageGetterGetProposalTimeoutFuncCall objects describing the invocations of this function.

func (*StorageGetterGetProposalTimeoutFunc) PushHook added in v0.0.8

func (f *StorageGetterGetProposalTimeoutFunc) PushHook(hook func() time.Duration)

PushHook adds a function to the end of hook queue. Each invocation of the GetProposalTimeout method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetProposalTimeoutFunc) PushReturn added in v0.0.8

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetProposalTimeoutFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterGetProposalTimeoutFunc) SetDefaultHook(hook func() time.Duration)

SetDefaultHook sets function that is called when the GetProposalTimeout method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetProposalTimeoutFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterGetProposalTimeoutFunc) SetDefaultReturn(r0 time.Duration)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetProposalTimeoutFuncCall added in v0.0.8

type StorageGetterGetProposalTimeoutFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 time.Duration
}

StorageGetterGetProposalTimeoutFuncCall is an object that describes an invocation of method GetProposalTimeout on an instance of MockStorageGetter.

func (StorageGetterGetProposalTimeoutFuncCall) Args added in v0.0.8

func (c StorageGetterGetProposalTimeoutFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetProposalTimeoutFuncCall) Results added in v0.0.8

func (c StorageGetterGetProposalTimeoutFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterGetValueStoreFeeFunc

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

StorageGetterGetValueStoreFeeFunc describes the behavior when the GetValueStoreFee method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterGetValueStoreFeeFunc) History

History returns a sequence of StorageGetterGetValueStoreFeeFuncCall objects describing the invocations of this function.

func (*StorageGetterGetValueStoreFeeFunc) PushHook

func (f *StorageGetterGetValueStoreFeeFunc) PushHook(hook func() *big.Int)

PushHook adds a function to the end of hook queue. Each invocation of the GetValueStoreFee method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterGetValueStoreFeeFunc) PushReturn

func (f *StorageGetterGetValueStoreFeeFunc) PushReturn(r0 *big.Int)

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterGetValueStoreFeeFunc) SetDefaultHook

func (f *StorageGetterGetValueStoreFeeFunc) SetDefaultHook(hook func() *big.Int)

SetDefaultHook sets function that is called when the GetValueStoreFee method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterGetValueStoreFeeFunc) SetDefaultReturn

func (f *StorageGetterGetValueStoreFeeFunc) SetDefaultReturn(r0 *big.Int)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterGetValueStoreFeeFuncCall

type StorageGetterGetValueStoreFeeFuncCall struct {
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 *big.Int
}

StorageGetterGetValueStoreFeeFuncCall is an object that describes an invocation of method GetValueStoreFee on an instance of MockStorageGetter.

func (StorageGetterGetValueStoreFeeFuncCall) Args

func (c StorageGetterGetValueStoreFeeFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterGetValueStoreFeeFuncCall) Results

func (c StorageGetterGetValueStoreFeeFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

type StorageGetterUpdateCurrentDynamicValueFunc added in v0.0.8

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

StorageGetterUpdateCurrentDynamicValueFunc describes the behavior when the UpdateCurrentDynamicValue method of the parent MockStorageGetter instance is invoked.

func (*StorageGetterUpdateCurrentDynamicValueFunc) History added in v0.0.8

History returns a sequence of StorageGetterUpdateCurrentDynamicValueFuncCall objects describing the invocations of this function.

func (*StorageGetterUpdateCurrentDynamicValueFunc) PushHook added in v0.0.8

func (f *StorageGetterUpdateCurrentDynamicValueFunc) PushHook(hook func(*v2.Txn, uint32) error)

PushHook adds a function to the end of hook queue. Each invocation of the UpdateCurrentDynamicValue method of the parent MockStorageGetter instance invokes the hook at the front of the queue and discards it. After the queue is empty, the default hook function is invoked for any future action.

func (*StorageGetterUpdateCurrentDynamicValueFunc) PushReturn added in v0.0.8

PushReturn calls PushHook with a function that returns the given values.

func (*StorageGetterUpdateCurrentDynamicValueFunc) SetDefaultHook added in v0.0.8

func (f *StorageGetterUpdateCurrentDynamicValueFunc) SetDefaultHook(hook func(*v2.Txn, uint32) error)

SetDefaultHook sets function that is called when the UpdateCurrentDynamicValue method of the parent MockStorageGetter instance is invoked and the hook queue is empty.

func (*StorageGetterUpdateCurrentDynamicValueFunc) SetDefaultReturn added in v0.0.8

func (f *StorageGetterUpdateCurrentDynamicValueFunc) SetDefaultReturn(r0 error)

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

type StorageGetterUpdateCurrentDynamicValueFuncCall added in v0.0.8

type StorageGetterUpdateCurrentDynamicValueFuncCall struct {
	// Arg0 is the value of the 1st argument passed to this method
	// invocation.
	Arg0 *v2.Txn
	// Arg1 is the value of the 2nd argument passed to this method
	// invocation.
	Arg1 uint32
	// Result0 is the value of the 1st result returned from this method
	// invocation.
	Result0 error
}

StorageGetterUpdateCurrentDynamicValueFuncCall is an object that describes an invocation of method UpdateCurrentDynamicValue on an instance of MockStorageGetter.

func (StorageGetterUpdateCurrentDynamicValueFuncCall) Args added in v0.0.8

func (c StorageGetterUpdateCurrentDynamicValueFuncCall) Args() []interface{}

Args returns an interface slice containing the arguments of this invocation.

func (StorageGetterUpdateCurrentDynamicValueFuncCall) Results added in v0.0.8

func (c StorageGetterUpdateCurrentDynamicValueFuncCall) Results() []interface{}

Results returns an interface slice containing the results of this invocation.

Jump to

Keyboard shortcuts

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