Documentation ¶
Index ¶
- func CompareUnorderedStringSlice(a []string, b []string) bool
- func DatumEqual(t testing.TB, expected, actual types.Datum, msgAndArgs ...interface{})
- func HandleEqual(t testing.TB, expected, actual kv.Handle, msgAndArgs ...interface{})
- func MaskSortHandles(handles []int64, shardBitsCount int, fieldType byte) []int64
- func MustNewCommonHandle(t *testing.T, values ...interface{}) kv.Handle
- func RandStringRunes(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareUnorderedStringSlice ¶
CompareUnorderedStringSlice compare two string slices. If a and b is exactly the same except the order, it returns true. In otherwise return false.
func DatumEqual ¶
DatumEqual verifies that the actual value is equal to the expected value. For string datum, they are compared by the binary collation.
func HandleEqual ¶
HandleEqual verifies that the actual handle is equal to the expected handle.
func MaskSortHandles ¶
MaskSortHandles sorts the handles by lowest (fieldTypeBits - 1 - shardBitsCount) bits.
func MustNewCommonHandle ¶
MustNewCommonHandle create a common handle with given values.
func RandStringRunes ¶
RandStringRunes generate random string of length n.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.