Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrMockMarshalizer = errors.New("MarshalizerMock generic error")
ErrMockMarshalizer -
var ErrNilObjectToMarshal = errors.New("nil object to serialize from")
ErrNilObjectToMarshal -
Functions ¶
This section is empty.
Types ¶
type AlarmSchedulerStub ¶
type AlarmSchedulerStub struct { AddCalled func(func(alarmID string), time.Duration, string) CancelCalled func(string) CloseCalled func() ResetCalled func(string) }
AlarmSchedulerStub -
func (*AlarmSchedulerStub) Add ¶
func (a *AlarmSchedulerStub) Add(callback func(alarmID string), duration time.Duration, alarmID string)
Add -
func (*AlarmSchedulerStub) IsInterfaceNil ¶
func (a *AlarmSchedulerStub) IsInterfaceNil() bool
IsInterfaceNil -
type ConnectedAddressesMock ¶
type ConnectedAddressesMock struct { }
ConnectedAddressesMock represents a mock implementation of the ConnectedAddresses
func (*ConnectedAddressesMock) ConnectedAddresses ¶
func (cam *ConnectedAddressesMock) ConnectedAddresses() []string
ConnectedAddresses returns an empty slice of string
type EpochSubscriberHandlerStub ¶
type EpochSubscriberHandlerStub struct {
EpochConfirmedCalled func(epoch uint32, timestamp uint64)
}
EpochSubscriberHandlerStub -
func (*EpochSubscriberHandlerStub) EpochConfirmed ¶
func (eshs *EpochSubscriberHandlerStub) EpochConfirmed(epoch uint32, timestamp uint64)
EpochConfirmed -
func (*EpochSubscriberHandlerStub) IsInterfaceNil ¶
func (eshs *EpochSubscriberHandlerStub) IsInterfaceNil() bool
IsInterfaceNil -
type GasScheduleSubscribeHandlerStub ¶
type GasScheduleSubscribeHandlerStub struct {
GasScheduleChangeCalled func(gasSchedule map[string]map[string]uint64)
}
GasScheduleSubscribeHandlerStub -
func (*GasScheduleSubscribeHandlerStub) GasScheduleChange ¶
func (g *GasScheduleSubscribeHandlerStub) GasScheduleChange(gasSchedule map[string]map[string]uint64)
GasScheduleChange -
func (*GasScheduleSubscribeHandlerStub) IsInterfaceNil ¶
func (g *GasScheduleSubscribeHandlerStub) IsInterfaceNil() bool
IsInterfaceNil -
type IntRandomizerStub ¶
IntRandomizerStub -
func (*IntRandomizerStub) IsInterfaceNil ¶
func (irs *IntRandomizerStub) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
type MarshalizerMock ¶
type MarshalizerMock struct {
Fail bool
}
MarshalizerMock that will be used for testing
func (*MarshalizerMock) IsInterfaceNil ¶
func (mm *MarshalizerMock) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*MarshalizerMock) Marshal ¶
func (mm *MarshalizerMock) Marshal(obj interface{}) ([]byte, error)
Marshal converts the input object in a slice of bytes
func (*MarshalizerMock) Unmarshal ¶
func (mm *MarshalizerMock) Unmarshal(obj interface{}, buff []byte) error
Unmarshal applies the serialized values over an instantiated object
type RoundSubscriberHandlerStub ¶
type RoundSubscriberHandlerStub struct {
RoundConfirmedCalled func(round uint64, timestamp uint64)
}
RoundSubscriberHandlerStub -
func (*RoundSubscriberHandlerStub) IsInterfaceNil ¶
func (rsh *RoundSubscriberHandlerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*RoundSubscriberHandlerStub) RoundConfirmed ¶
func (rsh *RoundSubscriberHandlerStub) RoundConfirmed(round uint64, timestamp uint64)
RoundConfirmed -
type StableTagProviderStub ¶
StableTagProviderStub --
func (*StableTagProviderStub) FetchTagVersion ¶
func (s *StableTagProviderStub) FetchTagVersion() (string, error)
FetchTagVersion --
func (*StableTagProviderStub) IsInterfaceNil ¶
func (s *StableTagProviderStub) IsInterfaceNil() bool
IsInterfaceNil --