Documentation ¶
Index ¶
- func TestStateMachineAllDevices(t *testing.T, sm gregor.StateMachine, fc clockwork.FakeClock)
- func TestStateMachinePerDevice(t *testing.T, sm gregor.StateMachine, fc clockwork.FakeClock)
- type TestObjFactory
- func (f TestObjFactory) MakeBody(b []byte) (gregor.Body, error)
- func (f TestObjFactory) MakeCategory(s string) (gregor.Category, error)
- func (f TestObjFactory) MakeDeviceID(b []byte) (gregor.DeviceID, error)
- func (f TestObjFactory) MakeDismissalByID(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time, ...) (gregor.InBandMessage, error)
- func (f TestObjFactory) MakeDismissalByRange(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time, ...) (gregor.InBandMessage, error)
- func (f TestObjFactory) MakeInBandMessageFromItem(i gregor.Item) (gregor.InBandMessage, error)
- func (f TestObjFactory) MakeItem(u gregor.UID, msgid gregor.MsgID, deviceid gregor.DeviceID, ctime time.Time, ...) (gregor.Item, error)
- func (f TestObjFactory) MakeMetadata(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time, ...) (gregor.Metadata, error)
- func (f TestObjFactory) MakeMsgID(b []byte) (gregor.MsgID, error)
- func (f TestObjFactory) MakeState(i []gregor.Item) (gregor.State, error)
- func (f TestObjFactory) MakeStateSyncMessage(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time) (gregor.InBandMessage, error)
- func (f TestObjFactory) MakeUID(b []byte) (gregor.UID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestObjFactory ¶
type TestObjFactory struct{}
func (TestObjFactory) MakeCategory ¶
func (f TestObjFactory) MakeCategory(s string) (gregor.Category, error)
func (TestObjFactory) MakeDeviceID ¶
func (f TestObjFactory) MakeDeviceID(b []byte) (gregor.DeviceID, error)
func (TestObjFactory) MakeDismissalByID ¶
func (TestObjFactory) MakeDismissalByRange ¶
func (TestObjFactory) MakeInBandMessageFromItem ¶
func (f TestObjFactory) MakeInBandMessageFromItem(i gregor.Item) (gregor.InBandMessage, error)
func (TestObjFactory) MakeMetadata ¶
func (TestObjFactory) MakeStateSyncMessage ¶
Click to show internal directories.
Click to hide internal directories.