tests

package
v0.0.0-...-9753c4d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tests = []Case{
	{Name: "Test", Run: Test},
	{Name: "TestBatchWatch", Run: TestBatchWatch},
	{Name: "TestWatchWithFilter", Run: TestWatchWithFilter},
	{Name: "TestRegister", Run: TestRegister},
	{Name: "TestBatchInsertAndQuery", Run: TestBatchInsertAndQuery},
	{Name: "TestOversizeBatchInsert", Run: TestOversizeBatchInsert},
	{Name: "TestFieldMask", Run: TestFieldMask},
	{Name: "TestMessageWithKeyOption", Run: TestMessageWithKeyOption},
	{Name: "TestStaticKey", Run: TestStaticKey},
}

Functions

func Test

func Test(t *testing.T, db protodb.Client)

func TestBatchInsertAndQuery

func TestBatchInsertAndQuery(t *testing.T, db protodb.Client)

func TestBatchWatch

func TestBatchWatch(t *testing.T, db protodb.Client)

func TestFieldMask

func TestFieldMask(t *testing.T, db protodb.Client)

func TestMessageWithKeyOption

func TestMessageWithKeyOption(t *testing.T, db protodb.Client)

func TestOversizeBatchInsert

func TestOversizeBatchInsert(t *testing.T, db protodb.Client)

func TestRegister

func TestRegister(t *testing.T, db protodb.Client)

func TestReplication

func TestReplication(t *testing.T, data string, mode protodb.ReplicationMode)

func TestStaticKey

func TestStaticKey(t *testing.T, db protodb.Client)

func TestWatchWithFilter

func TestWatchWithFilter(t *testing.T, db protodb.Client)

Types

type Case

type Case struct {
	Name string
	Run  func(t *testing.T, client protodb.Client)
}

type Cluster

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

func NewCluster

func NewCluster(path string, count int, mode protodb.ReplicationMode, opts ...protodb.Option) *Cluster

func (*Cluster) Get

func (c *Cluster) Get(i int) protodb.DB

func (*Cluster) Start

func (c *Cluster) Start(ctx context.Context, i int) error

func (*Cluster) StartAll

func (c *Cluster) StartAll(ctx context.Context) error

func (*Cluster) Stop

func (c *Cluster) Stop(i int) error

func (*Cluster) StopAll

func (c *Cluster) StopAll() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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