testutil

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testutil provides shared database fixtures for integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseManager

func DatabaseManager(t *testing.T, db *nornicdb.DB) *multidb.DatabaseManager

DatabaseManager creates a manager borrowing db's storage. Cleanup joins the database workers before the manager closes that shared storage.

func RequireCatalogOptionContext

func RequireCatalogOptionContext(t *testing.T, factory func(*multidb.DatabaseManager) cypher.DatabaseOptionsManager)

RequireCatalogOptionContext exercises an actual adapter against native catalog storage: a normal option persists, while canceled admission preserves it. For example, an adapter package supplies its private constructor as factory.

Types

This section is empty.

Directories

Path Synopsis
Package compositeddl inventories the native composite/alias administration contract.
Package compositeddl inventories the native composite/alias administration contract.
Package expressionidentitymatrix generates expression-subquery identity cases.
Package expressionidentitymatrix generates expression-subquery identity cases.
Package functionsyntaxmatrix generates the shared lexical differential corpus.
Package functionsyntaxmatrix generates the shared lexical differential corpus.
Package memorypressure supplies a deterministic uncollected-heap fixture for application admission tests.
Package memorypressure supplies a deterministic uncollected-heap fixture for application admission tests.
Package remotegraph provides an authenticated HTTP peer backed by real Cypher and native graph storage for coordinator protocol regression tests.
Package remotegraph provides an authenticated HTTP peer backed by real Cypher and native graph storage for coordinator protocol regression tests.

Jump to

Keyboard shortcuts

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