dialecttest

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package dialecttest holds cross-dialect conformance helpers shared by the dialect packages' tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSetOpBranches

func CheckSetOpBranches(t *testing.T, fe dialect.Frontend, cases []SetOpCase)

CheckSetOpBranches asserts Tree.SetOpBranches against the cases: branch count and order, each branch's Kind, Relations (with every Loc pointing at the relation's name in the original SQL), and DeepTables (design 14 §13).

Types

type SetOpCase

type SetOpCase struct {
	SQL      string
	Branches [][]string
	Deep     [][]string
}

SetOpCase describes one statement's expected set-operation branches: per branch, its own FROM relations ("table" or "table alias") and its sorted DeepTables names. A nil Branches means "not a set operation".

Jump to

Keyboard shortcuts

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