Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DisabledChannelID domain.ChannelID = "disabled-channel"
DisabledChannelID is ChannelID that StubChannelProvider always rejects.
View Source
var StubChannelExpire = dspstesting.MakeDuration("5m")
StubChannelExpire is expire (TTL) of any channels pro
View Source
var StubChannelProvider domain.ChannelProvider = dspstesting.ChannelProviderFunc(func(id domain.ChannelID) (domain.Channel, error) { if id == DisabledChannelID { return nil, domain.ErrInvalidChannel } return &stubChannel{ id: id, expire: StubChannelExpire, }, nil })
StubChannelProvider is simple stub implementation of ChannelProvider
Functions ¶
func CoreFunctionTest ¶
func CoreFunctionTest(t *testing.T, storageCtor StorageCtor)
CoreFunctionTest tests common Storage behaviors
func JwtTest ¶
func JwtTest(t *testing.T, storageCtor StorageCtor)
JwtTest tests common Storage behaviors
func PubSubTest ¶
func PubSubTest(t *testing.T, storageCtor StorageCtor)
PubSubTest tests common Storage behaviors
Types ¶
type StorageCtor ¶
type StorageCtor func(ctx context.Context, systemClock domain.SystemClock, channelProvider domain.ChannelProvider) (domain.Storage, error)
StorageCtor should construct Storage instance to test
Click to show internal directories.
Click to hide internal directories.