testutil

package
v1.1.0-beta.0...-c0b86a3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecMultiSQLInGoroutine

func ExecMultiSQLInGoroutine(s kv.Storage, dbName string, multiSQL []string, done chan error)

ExecMultiSQLInGoroutine exports for testing.

func ExtractAllTableHandles

func ExtractAllTableHandles(se session.Session, dbName, tbName string) ([]int64, error)

ExtractAllTableHandles extracts all handles of a given table.

func FindIdxInfo

func FindIdxInfo(dom *domain.Domain, dbName, tbName, idxName string) *model.IndexInfo

FindIdxInfo is to get IndexInfo by index name.

func SessionExecInGoroutine

func SessionExecInGoroutine(s kv.Storage, dbName, sql string, done chan error)

SessionExecInGoroutine export for testing.

func TestMatchCancelState

func TestMatchCancelState(t *testing.T, job *model.Job, cancelState interface{}, sql string) bool

TestMatchCancelState is used to test whether the cancel state matches.

Types

type SubStates

type SubStates = []model.SchemaState

SubStates is a slice of SchemaState.

Jump to

Keyboard shortcuts

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