cockroach: github.com/cockroachdb/cockroach/pkg/sql/opt/testutils Index | Files | Directories

package testutils

import "github.com/cockroachdb/cockroach/pkg/sql/opt/testutils"

Index

Package Files

build.go utils.go

func BuildQuery Uses

func BuildQuery(
    t *testing.T, o *xform.Optimizer, catalog cat.Catalog, evalCtx *tree.EvalContext, sql string,
)

BuildQuery initializes an optimizer and builds the given sql statement.

func GetTestFiles Uses

func GetTestFiles(tb testing.TB, testdataGlob string) []string

GetTestFiles returns the set of test files that matches the Glob pattern.

func ParseScalarExpr Uses

func ParseScalarExpr(sql string, ivc tree.IndexedVarContainer) (tree.TypedExpr, error)

ParseScalarExpr parses a scalar expression and converts it to a tree.TypedExpr.

Directories

PathSynopsis
opttester
testcat
testexpr

Package testutils imports 9 packages (graph). Updated 2019-12-09. Refresh now. Tools for package owners.