temporalguide

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 8 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 temporalguide runs the published temporal examples through test-owned query adapters. It contains no database implementation or production routing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contracts

func Contracts(t *testing.T, run Runner)

Contracts covers both published block examples and the guarantees implied by their mixed native and boolean entries.

func CostExamples

func CostExamples(t *testing.T, run Runner)

CostExamples verifies the declarations used to explain index/scan costs. The cost claims themselves require the separately scoped benchmark.

func EpochBounds

func EpochBounds(t *testing.T, run Runner)

EpochBounds qualifies the guide's optional shape contract, rather than pretending that a no-overlap constraint alone validates every property type.

func Example

func Example(t testing.TB, guide, name string) string

Example reads a named Cypher fence verbatim. The caller's package working directory must be two levels below the repository root (pkg/cypher, bolt or server). A removed, renamed or duplicated example fails its consuming test.

func GenericLedger

func GenericLedger(t *testing.T, run Runner)

GenericLedger exercises every executable example in the optional fact model.

func History

func History(t *testing.T, run Runner)

History executes the history guide's actual setup, update and parameterized historical query, demonstrating that the commit cutoff is not an epoch bound.

func Ownership

func Ownership(t *testing.T, run Runner)

Ownership exercises the published relationship pattern over the caller's executor, HTTP or Bolt adapter. All fixtures are owned by the caller.

func OwnershipScript

func OwnershipScript(t *testing.T, run Runner)

OwnershipScript executes the downloadable example as source, and asserts its final effects independently of the individual guide-fence scenarios.

Types

type Runner

type Runner func(string, map[string]interface{}) ([][]interface{}, error)

Runner executes one statement and returns all projected rows. Protocol tests keep their native client and error handling in the adapter.

Jump to

Keyboard shortcuts

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