testcases

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cases = []TestCase{}/* 143 elements not displayed */
View Source
var JSONExtract_Schema = []*querypb.Field{
	{
		Name:       "column0",
		Type:       sqltypes.TypeJSON,
		ColumnType: "JSON",
	},
}

Functions

func Arithmetic

func Arithmetic(yield Query)

func Base64

func Base64(yield Query)

func BitwiseOperators

func BitwiseOperators(yield Query)

func BitwiseOperatorsUnary

func BitwiseOperatorsUnary(yield Query)

func CaseExprWithPredicate

func CaseExprWithPredicate(yield Query)

func CaseExprWithValue

func CaseExprWithValue(yield Query)

func CharsetConversionOperators

func CharsetConversionOperators(yield Query)

func CollationOperations

func CollationOperations(yield Query)

func Comparisons

func Comparisons(yield Query)

func Conversion

func Conversion(yield Query)

func DateMath

func DateMath(yield Query)

func DecimalClamping

func DecimalClamping(yield Query)

func FloatFormatting

func FloatFormatting(yield Query)

func FnAbs

func FnAbs(yield Query)

func FnAcos

func FnAcos(yield Query)

func FnAscii

func FnAscii(yield Query)

func FnAsin

func FnAsin(yield Query)

func FnAtan

func FnAtan(yield Query)

func FnAtan2

func FnAtan2(yield Query)

func FnBin

func FnBin(yield Query)

func FnBinToUUID

func FnBinToUUID(yield Query)

func FnBitLength

func FnBitLength(yield Query)

func FnCeil

func FnCeil(yield Query)

func FnChar

func FnChar(yield Query)

func FnCharLength

func FnCharLength(yield Query)

func FnConcat

func FnConcat(yield Query)

func FnConcatWs

func FnConcatWs(yield Query)

func FnConv

func FnConv(yield Query)

func FnConvertTz

func FnConvertTz(yield Query)

func FnCos

func FnCos(yield Query)

func FnCot

func FnCot(yield Query)

func FnCrc32

func FnCrc32(yield Query)

func FnDate

func FnDate(yield Query)

func FnDateFormat

func FnDateFormat(yield Query)

func FnDayOfMonth

func FnDayOfMonth(yield Query)

func FnDayOfWeek

func FnDayOfWeek(yield Query)

func FnDayOfYear

func FnDayOfYear(yield Query)

func FnDegrees

func FnDegrees(yield Query)

func FnElt

func FnElt(yield Query)

func FnExp

func FnExp(yield Query)

func FnField

func FnField(yield Query)

func FnFloor

func FnFloor(yield Query)

func FnFromDays

func FnFromDays(yield Query)

func FnFromUnixtime

func FnFromUnixtime(yield Query)

func FnHex

func FnHex(yield Query)

func FnHour

func FnHour(yield Query)

func FnInet6Aton

func FnInet6Aton(yield Query)

func FnInet6Ntoa

func FnInet6Ntoa(yield Query)

func FnInetAton

func FnInetAton(yield Query)

func FnInetNtoa

func FnInetNtoa(yield Query)

func FnInfo

func FnInfo(yield Query)

func FnInsert

func FnInsert(yield Query)

func FnIsIPv4

func FnIsIPv4(yield Query)

func FnIsIPv4Compat

func FnIsIPv4Compat(yield Query)

func FnIsIPv4Mapped

func FnIsIPv4Mapped(yield Query)

func FnIsIPv6

func FnIsIPv6(yield Query)

func FnIsUUID

func FnIsUUID(yield Query)

func FnLTrim

func FnLTrim(yield Query)

func FnLastDay

func FnLastDay(yield Query)

func FnLeft

func FnLeft(yield Query)

func FnLength

func FnLength(yield Query)

func FnLn

func FnLn(yield Query)

func FnLocate

func FnLocate(yield Query)

func FnLog

func FnLog(yield Query)

func FnLog10

func FnLog10(yield Query)

func FnLog2

func FnLog2(yield Query)

func FnLower

func FnLower(yield Query)

func FnLpad

func FnLpad(yield Query)

func FnMD5

func FnMD5(yield Query)

func FnMakedate

func FnMakedate(yield Query)

func FnMaketime

func FnMaketime(yield Query)

func FnMicroSecond

func FnMicroSecond(yield Query)

func FnMinute

func FnMinute(yield Query)

func FnMod

func FnMod(yield Query)

func FnMonth

func FnMonth(yield Query)

func FnMonthName

func FnMonthName(yield Query)

func FnNow

func FnNow(yield Query)

func FnOct

func FnOct(yield Query)

func FnOrd

func FnOrd(yield Query)

func FnPi

func FnPi(yield Query)

func FnPow

func FnPow(yield Query)

func FnQuarter

func FnQuarter(yield Query)

func FnRTrim

func FnRTrim(yield Query)

func FnRadians

func FnRadians(yield Query)

func FnRandomBytes

func FnRandomBytes(yield Query)

func FnRepeat

func FnRepeat(yield Query)

func FnReplace

func FnReplace(yield Query)

func FnReverse

func FnReverse(yield Query)

func FnRight

func FnRight(yield Query)

func FnRound

func FnRound(yield Query)

func FnRpad

func FnRpad(yield Query)

func FnSHA1

func FnSHA1(yield Query)

func FnSHA2

func FnSHA2(yield Query)

func FnSecToTime

func FnSecToTime(yield Query)

func FnSecond

func FnSecond(yield Query)

func FnSign

func FnSign(yield Query)

func FnSin

func FnSin(yield Query)

func FnSpace

func FnSpace(yield Query)

func FnSqrt

func FnSqrt(yield Query)

func FnSubstr

func FnSubstr(yield Query)

func FnTan

func FnTan(yield Query)

func FnTime

func FnTime(yield Query)

func FnTimeToSec

func FnTimeToSec(yield Query)

func FnToDays

func FnToDays(yield Query)

func FnToSeconds

func FnToSeconds(yield Query)

func FnTrim

func FnTrim(yield Query)

func FnTruncate

func FnTruncate(yield Query)

func FnUUID

func FnUUID(yield Query)

func FnUUIDToBin

func FnUUIDToBin(yield Query)

func FnUnhex

func FnUnhex(yield Query)

func FnUnixTimestamp

func FnUnixTimestamp(yield Query)

func FnUpper

func FnUpper(yield Query)

func FnWeek

func FnWeek(yield Query)

func FnWeekDay

func FnWeekDay(yield Query)

func FnWeekOfYear

func FnWeekOfYear(yield Query)

func FnYear

func FnYear(yield Query)

func FnYearWeek

func FnYearWeek(yield Query)

func HexArithmetic

func HexArithmetic(yield Query)

func If

func If(yield Query)

func InStatement

func InStatement(yield Query)

func IntervalStatement

func IntervalStatement(yield Query)

func IsStatement

func IsStatement(yield Query)

func JSONArray

func JSONArray(yield Query)

func JSONExtract

func JSONExtract(yield Query)

func JSONObject

func JSONObject(yield Query)

func JSONPathOperations

func JSONPathOperations(yield Query)

func LargeDecimals

func LargeDecimals(yield Query)

func LargeIntegers

func LargeIntegers(yield Query)

func LikeComparison

func LikeComparison(yield Query)

func LogicalStatement

func LogicalStatement(yield Query)

func MultiComparisons

func MultiComparisons(yield Query)

func NegateArithmetic

func NegateArithmetic(yield Query)

func NotStatement

func NotStatement(yield Query)

func NumericTypes

func NumericTypes(yield Query)

func RegexpInstr

func RegexpInstr(yield Query)

func RegexpLike

func RegexpLike(yield Query)

func RegexpReplace

func RegexpReplace(yield Query)

func RegexpSubstr

func RegexpSubstr(yield Query)

func StrcmpComparison

func StrcmpComparison(yield Query)

func TupleComparisons

func TupleComparisons(yield Query)

func Types

func Types(yield Query)

func UnderscoreAndPercentage

func UnderscoreAndPercentage(yield Query)

func WeightString

func WeightString(yield Query)

Types

type Comparison

type Comparison struct {
	Decimals  uint32
	LooseTime bool
}

func (*Comparison) Equals

func (cmp *Comparison) Equals(local, remote sqltypes.Value, now time.Time) (bool, error)

type Query

type Query func(query string, row []sqltypes.Value)

type Runner

type Runner func(yield Query)

type TestCase

type TestCase struct {
	Run     Runner
	Schema  []*querypb.Field
	Compare *Comparison
}

func (TestCase) Name

func (tc TestCase) Name() string

Jump to

Keyboard shortcuts

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