test_fixture

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

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