Documentation ¶
Index ¶
Constants ¶
View Source
const ( KEY1 string = "key1" KEY2 string = "key2" VALUE1 string = "value1" VALUE2 string = "value2" )
View Source
const ( LOCK1 string = "lock_1" LOCK2 string = "lock_2" LOCK3 string = "lock_3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheFixture ¶
type CacheFixture struct {
// contains filtered or unexported fields
}
func NewCacheFixture ¶
func NewCacheFixture(cache ccache.ICache) *CacheFixture
func (*CacheFixture) TestRemove ¶
func (c *CacheFixture) TestRemove(t *testing.T)
func (*CacheFixture) TestRetrieveExpired ¶
func (c *CacheFixture) TestRetrieveExpired(t *testing.T)
func (*CacheFixture) TestStoreAndRetrieve ¶
func (c *CacheFixture) TestStoreAndRetrieve(t *testing.T)
type LockFixture ¶
type LockFixture struct {
// contains filtered or unexported fields
}
func NewLockFixture ¶
func NewLockFixture(lock clock.ILock) *LockFixture
func (*LockFixture) TestAcquireLock ¶
func (c *LockFixture) TestAcquireLock(t *testing.T)
func (*LockFixture) TestReleaseLock ¶
func (c *LockFixture) TestReleaseLock(t *testing.T)
func (*LockFixture) TestTryAcquireLock ¶
func (c *LockFixture) TestTryAcquireLock(t *testing.T)
Click to show internal directories.
Click to hide internal directories.