test_fixture

package
v0.0.1-2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCK1 string = "lock_1"
	LOCK2 string = "lock_2"
	LOCK3 string = "lock_3"
)

Variables

View Source
var (
	KEY1 string = "key1"
	KEY2 string = "key2"
	KEY3 string = "key3"
	KEY4 string = "key4"
	KEY5 string = "key5"
	KEY6 string = "key6"

	VALUE1 string                 = "value1"
	VALUE2 map[string]interface{} = map[string]interface{}{"val": "value2"}
	VALUE3 time.Time              = time.Now()
	VALUE4 []int                  = []int{1, 2, 3, 4}
	VALUE5 int                    = 12345
	VALUE6 interface{}            = nil
)

Functions

This section is empty.

Types

type CacheFixture

type CacheFixture struct {
	// contains filtered or unexported fields
}

func NewCacheFixture

func NewCacheFixture(cache ccache.ICache[any]) *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