Documentation ¶
Index ¶
- type MockStorageGetter
- func (m *MockStorageGetter) ChangeDynamicValues(v0 *v2.Txn, v1 uint32, v2 []byte) error
- func (m *MockStorageGetter) GetDataStoreFee() *big.Int
- func (m *MockStorageGetter) GetDeadBlockRoundNextRoundTimeout() time.Duration
- func (m *MockStorageGetter) GetDownloadTimeout() time.Duration
- func (m *MockStorageGetter) GetDynamicValueInThePast(v0 *v2.Txn, v1 uint32) (uint32, *dynamics.DynamicValues, error)
- func (m *MockStorageGetter) GetMaxBlockSize() uint32
- func (m *MockStorageGetter) GetMaxProposalSize() uint32
- func (m *MockStorageGetter) GetMinScaledTransactionFee() *big.Int
- func (m *MockStorageGetter) GetPreCommitTimeout() time.Duration
- func (m *MockStorageGetter) GetPreVoteTimeout() time.Duration
- func (m *MockStorageGetter) GetProposalTimeout() time.Duration
- func (m *MockStorageGetter) GetValueStoreFee() *big.Int
- func (m *MockStorageGetter) UpdateCurrentDynamicValue(v0 *v2.Txn, v1 uint32) error
- type StorageGetterChangeDynamicValuesFunc
- func (f *StorageGetterChangeDynamicValuesFunc) History() []StorageGetterChangeDynamicValuesFuncCall
- func (f *StorageGetterChangeDynamicValuesFunc) PushHook(hook func(*v2.Txn, uint32, []byte) error)
- func (f *StorageGetterChangeDynamicValuesFunc) PushReturn(r0 error)
- func (f *StorageGetterChangeDynamicValuesFunc) SetDefaultHook(hook func(*v2.Txn, uint32, []byte) error)
- func (f *StorageGetterChangeDynamicValuesFunc) SetDefaultReturn(r0 error)
- type StorageGetterChangeDynamicValuesFuncCall
- type StorageGetterGetDataStoreFeeFunc
- func (f *StorageGetterGetDataStoreFeeFunc) History() []StorageGetterGetDataStoreFeeFuncCall
- func (f *StorageGetterGetDataStoreFeeFunc) PushHook(hook func() *big.Int)
- func (f *StorageGetterGetDataStoreFeeFunc) PushReturn(r0 *big.Int)
- func (f *StorageGetterGetDataStoreFeeFunc) SetDefaultHook(hook func() *big.Int)
- func (f *StorageGetterGetDataStoreFeeFunc) SetDefaultReturn(r0 *big.Int)
- type StorageGetterGetDataStoreFeeFuncCall
- type StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc
- func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) History() []StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall
- func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushHook(hook func() time.Duration)
- func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushReturn(r0 time.Duration)
- func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) SetDefaultHook(hook func() time.Duration)
- func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) SetDefaultReturn(r0 time.Duration)
- type StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall
- type StorageGetterGetDownloadTimeoutFunc
- func (f *StorageGetterGetDownloadTimeoutFunc) History() []StorageGetterGetDownloadTimeoutFuncCall
- func (f *StorageGetterGetDownloadTimeoutFunc) PushHook(hook func() time.Duration)
- func (f *StorageGetterGetDownloadTimeoutFunc) PushReturn(r0 time.Duration)
- func (f *StorageGetterGetDownloadTimeoutFunc) SetDefaultHook(hook func() time.Duration)
- func (f *StorageGetterGetDownloadTimeoutFunc) SetDefaultReturn(r0 time.Duration)
- type StorageGetterGetDownloadTimeoutFuncCall
- type StorageGetterGetDynamicValueInThePastFunc
- func (f *StorageGetterGetDynamicValueInThePastFunc) History() []StorageGetterGetDynamicValueInThePastFuncCall
- func (f *StorageGetterGetDynamicValueInThePastFunc) PushHook(hook func(*v2.Txn, uint32) (uint32, *dynamics.DynamicValues, error))
- func (f *StorageGetterGetDynamicValueInThePastFunc) PushReturn(r0 uint32, r1 *dynamics.DynamicValues, r2 error)
- func (f *StorageGetterGetDynamicValueInThePastFunc) SetDefaultHook(hook func(*v2.Txn, uint32) (uint32, *dynamics.DynamicValues, error))
- func (f *StorageGetterGetDynamicValueInThePastFunc) SetDefaultReturn(r0 uint32, r1 *dynamics.DynamicValues, r2 error)
- type StorageGetterGetDynamicValueInThePastFuncCall
- type StorageGetterGetMaxBlockSizeFunc
- func (f *StorageGetterGetMaxBlockSizeFunc) History() []StorageGetterGetMaxBlockSizeFuncCall
- func (f *StorageGetterGetMaxBlockSizeFunc) PushHook(hook func() uint32)
- func (f *StorageGetterGetMaxBlockSizeFunc) PushReturn(r0 uint32)
- func (f *StorageGetterGetMaxBlockSizeFunc) SetDefaultHook(hook func() uint32)
- func (f *StorageGetterGetMaxBlockSizeFunc) SetDefaultReturn(r0 uint32)
- type StorageGetterGetMaxBlockSizeFuncCall
- type StorageGetterGetMaxProposalSizeFunc
- func (f *StorageGetterGetMaxProposalSizeFunc) History() []StorageGetterGetMaxProposalSizeFuncCall
- func (f *StorageGetterGetMaxProposalSizeFunc) PushHook(hook func() uint32)
- func (f *StorageGetterGetMaxProposalSizeFunc) PushReturn(r0 uint32)
- func (f *StorageGetterGetMaxProposalSizeFunc) SetDefaultHook(hook func() uint32)
- func (f *StorageGetterGetMaxProposalSizeFunc) SetDefaultReturn(r0 uint32)
- type StorageGetterGetMaxProposalSizeFuncCall
- type StorageGetterGetMinScaledTransactionFeeFunc
- func (f *StorageGetterGetMinScaledTransactionFeeFunc) History() []StorageGetterGetMinScaledTransactionFeeFuncCall
- func (f *StorageGetterGetMinScaledTransactionFeeFunc) PushHook(hook func() *big.Int)
- func (f *StorageGetterGetMinScaledTransactionFeeFunc) PushReturn(r0 *big.Int)
- func (f *StorageGetterGetMinScaledTransactionFeeFunc) SetDefaultHook(hook func() *big.Int)
- func (f *StorageGetterGetMinScaledTransactionFeeFunc) SetDefaultReturn(r0 *big.Int)
- type StorageGetterGetMinScaledTransactionFeeFuncCall
- type StorageGetterGetPreCommitTimeoutFunc
- func (f *StorageGetterGetPreCommitTimeoutFunc) History() []StorageGetterGetPreCommitTimeoutFuncCall
- func (f *StorageGetterGetPreCommitTimeoutFunc) PushHook(hook func() time.Duration)
- func (f *StorageGetterGetPreCommitTimeoutFunc) PushReturn(r0 time.Duration)
- func (f *StorageGetterGetPreCommitTimeoutFunc) SetDefaultHook(hook func() time.Duration)
- func (f *StorageGetterGetPreCommitTimeoutFunc) SetDefaultReturn(r0 time.Duration)
- type StorageGetterGetPreCommitTimeoutFuncCall
- type StorageGetterGetPreVoteTimeoutFunc
- func (f *StorageGetterGetPreVoteTimeoutFunc) History() []StorageGetterGetPreVoteTimeoutFuncCall
- func (f *StorageGetterGetPreVoteTimeoutFunc) PushHook(hook func() time.Duration)
- func (f *StorageGetterGetPreVoteTimeoutFunc) PushReturn(r0 time.Duration)
- func (f *StorageGetterGetPreVoteTimeoutFunc) SetDefaultHook(hook func() time.Duration)
- func (f *StorageGetterGetPreVoteTimeoutFunc) SetDefaultReturn(r0 time.Duration)
- type StorageGetterGetPreVoteTimeoutFuncCall
- type StorageGetterGetProposalTimeoutFunc
- func (f *StorageGetterGetProposalTimeoutFunc) History() []StorageGetterGetProposalTimeoutFuncCall
- func (f *StorageGetterGetProposalTimeoutFunc) PushHook(hook func() time.Duration)
- func (f *StorageGetterGetProposalTimeoutFunc) PushReturn(r0 time.Duration)
- func (f *StorageGetterGetProposalTimeoutFunc) SetDefaultHook(hook func() time.Duration)
- func (f *StorageGetterGetProposalTimeoutFunc) SetDefaultReturn(r0 time.Duration)
- type StorageGetterGetProposalTimeoutFuncCall
- type StorageGetterGetValueStoreFeeFunc
- func (f *StorageGetterGetValueStoreFeeFunc) History() []StorageGetterGetValueStoreFeeFuncCall
- func (f *StorageGetterGetValueStoreFeeFunc) PushHook(hook func() *big.Int)
- func (f *StorageGetterGetValueStoreFeeFunc) PushReturn(r0 *big.Int)
- func (f *StorageGetterGetValueStoreFeeFunc) SetDefaultHook(hook func() *big.Int)
- func (f *StorageGetterGetValueStoreFeeFunc) SetDefaultReturn(r0 *big.Int)
- type StorageGetterGetValueStoreFeeFuncCall
- type StorageGetterUpdateCurrentDynamicValueFunc
- func (f *StorageGetterUpdateCurrentDynamicValueFunc) History() []StorageGetterUpdateCurrentDynamicValueFuncCall
- func (f *StorageGetterUpdateCurrentDynamicValueFunc) PushHook(hook func(*v2.Txn, uint32) error)
- func (f *StorageGetterUpdateCurrentDynamicValueFunc) PushReturn(r0 error)
- func (f *StorageGetterUpdateCurrentDynamicValueFunc) SetDefaultHook(hook func(*v2.Txn, uint32) error)
- func (f *StorageGetterUpdateCurrentDynamicValueFunc) SetDefaultReturn(r0 error)
- type StorageGetterUpdateCurrentDynamicValueFuncCall
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
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
func (f *StorageGetterChangeDynamicValuesFunc) History() []StorageGetterChangeDynamicValuesFuncCall
History returns a sequence of StorageGetterChangeDynamicValuesFuncCall objects describing the invocations of this function.
func (*StorageGetterChangeDynamicValuesFunc) PushHook ¶ added in v0.0.8
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
func (f *StorageGetterGetDataStoreFeeFunc) History() []StorageGetterGetDataStoreFeeFuncCall
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 ¶
func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) History() []StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall
History returns a sequence of StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall objects describing the invocations of this function.
func (*StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushHook ¶
func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushHook(hook func() time.Duration)
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 ¶
func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) PushReturn(r0 time.Duration)
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 ¶
func (f *StorageGetterGetDeadBlockRoundNextRoundTimeoutFunc) SetDefaultReturn(r0 time.Duration)
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 ¶
func (c StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall) Args() []interface{}
Args returns an interface slice containing the arguments of this invocation.
func (StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall) Results ¶
func (c StorageGetterGetDeadBlockRoundNextRoundTimeoutFuncCall) Results() []interface{}
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 ¶
func (f *StorageGetterGetDownloadTimeoutFunc) History() []StorageGetterGetDownloadTimeoutFuncCall
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 ¶
func (f *StorageGetterGetDownloadTimeoutFunc) PushReturn(r0 time.Duration)
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
func (f *StorageGetterGetDynamicValueInThePastFunc) History() []StorageGetterGetDynamicValueInThePastFuncCall
History returns a sequence of StorageGetterGetDynamicValueInThePastFuncCall objects describing the invocations of this function.
func (*StorageGetterGetDynamicValueInThePastFunc) PushHook ¶ added in v0.0.8
func (f *StorageGetterGetDynamicValueInThePastFunc) PushHook(hook func(*v2.Txn, uint32) (uint32, *dynamics.DynamicValues, error))
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
func (f *StorageGetterGetDynamicValueInThePastFunc) PushReturn(r0 uint32, r1 *dynamics.DynamicValues, r2 error)
PushReturn calls PushHook with a function that returns the given values.
func (*StorageGetterGetDynamicValueInThePastFunc) SetDefaultHook ¶ added in v0.0.8
func (f *StorageGetterGetDynamicValueInThePastFunc) SetDefaultHook(hook func(*v2.Txn, uint32) (uint32, *dynamics.DynamicValues, error))
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
func (f *StorageGetterGetDynamicValueInThePastFunc) SetDefaultReturn(r0 uint32, r1 *dynamics.DynamicValues, r2 error)
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
func (f *StorageGetterGetMaxBlockSizeFunc) History() []StorageGetterGetMaxBlockSizeFuncCall
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 ¶
func (f *StorageGetterGetMaxProposalSizeFunc) History() []StorageGetterGetMaxProposalSizeFuncCall
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
func (f *StorageGetterGetMinScaledTransactionFeeFunc) History() []StorageGetterGetMinScaledTransactionFeeFuncCall
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
func (f *StorageGetterGetMinScaledTransactionFeeFunc) PushReturn(r0 *big.Int)
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
func (f *StorageGetterGetPreCommitTimeoutFunc) History() []StorageGetterGetPreCommitTimeoutFuncCall
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
func (f *StorageGetterGetPreCommitTimeoutFunc) PushReturn(r0 time.Duration)
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
func (f *StorageGetterGetPreVoteTimeoutFunc) History() []StorageGetterGetPreVoteTimeoutFuncCall
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
func (f *StorageGetterGetPreVoteTimeoutFunc) PushReturn(r0 time.Duration)
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
func (f *StorageGetterGetProposalTimeoutFunc) History() []StorageGetterGetProposalTimeoutFuncCall
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
func (f *StorageGetterGetProposalTimeoutFunc) PushReturn(r0 time.Duration)
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 ¶
func (f *StorageGetterGetValueStoreFeeFunc) History() []StorageGetterGetValueStoreFeeFuncCall
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
func (f *StorageGetterUpdateCurrentDynamicValueFunc) History() []StorageGetterUpdateCurrentDynamicValueFuncCall
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
func (f *StorageGetterUpdateCurrentDynamicValueFunc) PushReturn(r0 error)
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.