testdata

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseType

type BaseType struct {
	ContentID int
}

BaseType BaseType

type ContentType

type ContentType struct {
	Name      string
	Age       int
	Ok        bool
	Money     float32
	CardMoney float64
	Register  time.Time
}

ContentType 测试类型 支持bool,int,float,string和time.Time

type ContentType2

type ContentType2 struct {
	UserName string
	Title    string
	Content  string
}

ContentType2 ContentType2

type ExtendType

type ExtendType struct {
	BaseType
	Title     string
	ContentID int
}

ExtendType ExtendType

type JoinCase

type JoinCase struct {
	LeftData   interface{}
	RightData  interface{}
	JoinPlace  string
	JoinType   string
	JoinFuctor interface{}
	Target     interface{}
}

JoinCase JoinCase

type QueryInnerStruct

type QueryInnerStruct struct {
	MM int
}

QueryInnerStruct QueryInnerStruct

type QueryInnerStruct2

type QueryInnerStruct2 struct {
	QueryInnerStruct
	MM int
	DD float32
}

QueryInnerStruct2 QueryInnerStruct2

type TestCase

type TestCase struct {
	Handler func() interface{}
	Target  interface{}
}

TestCase 测试用例

func GetQueryColumnMapTestCase

func GetQueryColumnMapTestCase() []TestCase

GetQueryColumnMapTestCase GetQueryColumnMapTestCase

func GetQueryColumnTestCase

func GetQueryColumnTestCase() []TestCase

GetQueryColumnTestCase GetQueryColumnTestCase

func GetQueryCombineTestCase

func GetQueryCombineTestCase() []TestCase

GetQueryCombineTestCase GetQueryCombineTestCase

func GetQueryDistinctTestCase

func GetQueryDistinctTestCase() []TestCase

GetQueryDistinctTestCase GetQueryDistinctTestCase

func GetQueryGroupTestCase

func GetQueryGroupTestCase() []TestCase

GetQueryGroupTestCase GetQueryGroupTestCase

func GetQueryJoinTestCase

func GetQueryJoinTestCase() []TestCase

GetQueryJoinTestCase GetQueryJoinTestCase

func GetQueryMaxTestCase

func GetQueryMaxTestCase() []TestCase

func GetQueryMinTestCase

func GetQueryMinTestCase() []TestCase

func GetQueryReduceTestCase

func GetQueryReduceTestCase() []TestCase

GetQueryReduceTestCase GetQueryReduceTestCase

func GetQueryReverseTestCase

func GetQueryReverseTestCase() []TestCase

GetQueryReverseTestCase GetQueryReverseTestCase

func GetQuerySelectTestCase

func GetQuerySelectTestCase() []TestCase

GetQuerySelectTestCase GetQuerySelectTestCase

func GetQuerySortTestCase

func GetQuerySortTestCase() []TestCase

GetQuerySortTestCase GetQuerySortTestCase

func GetQuerySumTestCase

func GetQuerySumTestCase() []TestCase

func GetQueryWhereTestCase

func GetQueryWhereTestCase() []TestCase

GetQueryWhereTestCase GetQueryWhereTestCase

type UserType

type UserType struct {
	Name      string
	Age       int
	Ok        bool
	Money     float64
	CardMoney float64
	Register  time.Time
}

UserType 测试类型 支持bool,int,float,string和time.Time

Jump to

Keyboard shortcuts

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