test

package
v1.0.0-test Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestTableName0                         = "table0"
	TestTableName1                         = "table1"
	TestSchemaName                         = "TestSchemaName"
	NodeName0                              = "node0"
	NodeName1                              = "node1"
	TestRootPath                           = "/rootPath"
	DefaultIDAllocatorStep                 = 20
	ClusterName                            = "ceresdbCluster1"
	DefaultNodeCount                       = 2
	DefaultReplicationFactor               = 1
	DefaultPartitionTableProportionOfNodes = 0.5
	DefaultShardTotal                      = 4
)

Variables

This section is empty.

Functions

func NewTestStorage

func NewTestStorage(_ *testing.T) procedure.Storage

Types

type MockDispatch

type MockDispatch struct{}

func (MockDispatch) CloseShard

func (MockDispatch) CloseTableOnShard

func (MockDispatch) CreateTableOnShard

func (MockDispatch) DropTableOnShard

func (MockDispatch) OpenShard

func (MockDispatch) OpenTableOnShard

type MockStorage

type MockStorage struct{}

func (MockStorage) CreateOrUpdate

func (m MockStorage) CreateOrUpdate(_ context.Context, _ procedure.Meta) error

func (MockStorage) List

func (m MockStorage) List(_ context.Context, _ int) ([]*procedure.Meta, error)

func (MockStorage) MarkDeleted

func (m MockStorage) MarkDeleted(_ context.Context, _ uint64) error

Jump to

Keyboard shortcuts

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