sqltest

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package sqltest runs the queries of the tests of ext/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fails

func Fails(t *testing.T, db *sql.DB, cases map[string]string)

Fails checks that each query fails with an error that holds its text.

func Open

func Open(t *testing.T, opt sqlite.Option) *sql.DB

Open opens a memory database with opt on one connection.

func Want

func Want(t *testing.T, db *sql.DB, cases map[string]string)

Want checks that each query gives its text, "NULL" for NULL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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