test

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateTranslationTestCases

func UpdateTranslationTestCases(mapper pgsql.KindMapper) error

Types

type TranslationTestCase

type TranslationTestCase struct {
	Name         string
	Cypher       string
	PgSQL        string
	CypherParams map[string]any
	PgSQLParams  map[string]any
}

Case is a translation test case

func ReadTranslationTestCases

func ReadTranslationTestCases() ([]*TranslationTestCase, error)

func (*TranslationTestCase) Assert

func (s *TranslationTestCase) Assert(t *testing.T, expectedSQL string, kindMapper pgsql.KindMapper)

func (*TranslationTestCase) AssertLive

func (s *TranslationTestCase) AssertLive(ctx context.Context, t *testing.T, driver *pg.Driver)

func (*TranslationTestCase) Copy

func (*TranslationTestCase) Reset

func (s *TranslationTestCase) Reset()

func (*TranslationTestCase) WriteTo

func (s *TranslationTestCase) WriteTo(output io.Writer, kindMapper pgsql.KindMapper) error

type TranslationTestCaseFile

type TranslationTestCaseFile struct {
	// contains filtered or unexported fields
}

func ReadTranslationTestCaseFile

func ReadTranslationTestCaseFile(path string, fin fs.File) (TranslationTestCaseFile, error)

func (*TranslationTestCaseFile) Load

Jump to

Keyboard shortcuts

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