test

package
v0.0.0-...-f6cd02a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestStateMachineAllDevices

func TestStateMachineAllDevices(t *testing.T, sm gregor.StateMachine, fc clockwork.FakeClock)

func TestStateMachinePerDevice

func TestStateMachinePerDevice(t *testing.T, sm gregor.StateMachine, fc clockwork.FakeClock)

Types

type TestObjFactory

type TestObjFactory struct{}

func (TestObjFactory) MakeBody

func (f TestObjFactory) MakeBody(b []byte) (gregor.Body, error)

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 (f TestObjFactory) MakeDismissalByID(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time, d gregor.MsgID) (gregor.InBandMessage, error)

func (TestObjFactory) MakeDismissalByRange

func (f TestObjFactory) MakeDismissalByRange(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time, c gregor.Category, d time.Time) (gregor.InBandMessage, error)

func (TestObjFactory) MakeInBandMessageFromItem

func (f TestObjFactory) MakeInBandMessageFromItem(i gregor.Item) (gregor.InBandMessage, error)

func (TestObjFactory) MakeItem

func (f TestObjFactory) MakeItem(u gregor.UID, msgid gregor.MsgID, deviceid gregor.DeviceID, ctime time.Time, c gregor.Category, dtime *time.Time, body gregor.Body) (gregor.Item, error)

func (TestObjFactory) MakeMetadata

func (f TestObjFactory) MakeMetadata(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time, i gregor.InBandMsgType) (gregor.Metadata, error)

func (TestObjFactory) MakeMsgID

func (f TestObjFactory) MakeMsgID(b []byte) (gregor.MsgID, error)

func (TestObjFactory) MakeState

func (f TestObjFactory) MakeState(i []gregor.Item) (gregor.State, error)

func (TestObjFactory) MakeStateSyncMessage

func (f TestObjFactory) MakeStateSyncMessage(uid gregor.UID, msgid gregor.MsgID, devid gregor.DeviceID, ctime time.Time) (gregor.InBandMessage, error)

func (TestObjFactory) MakeUID

func (f TestObjFactory) MakeUID(b []byte) (gregor.UID, error)

Jump to

Keyboard shortcuts

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