dialecttest

package
v0.0.0-...-cb5b6c1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dialecttest provides reusable conformance tests for dialects.

Package dialecttest provides reusable conformance checks for dialects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(factory func() dialect.Dialect) error

Check runs the checks that do not require a live database.

func Run

func Run(t testing.TB, factory func() dialect.Dialect, live ...LiveHarness)

Run executes portable conformance checks and, when supplied, the live database harness. It is intended for dialect package tests.

Types

type LiveHarness

type LiveHarness interface {
	Conform(context.Context, dialect.Dialect) error
}

LiveHarness adds database-backed checks to the portable suite. A harness owns setup, teardown, and any dialect-specific introspection required by its database.

Jump to

Keyboard shortcuts

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