tests

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 11 Imported by: ? 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: tests / conformance type: test job: small error-checking helper shared across the integration suite limits: no test logic itself (-> tests/scenarios.go, tests/integration.go)

package: tests / conformance type: test job: public IntegrationTest entry point + a per-scenario fixture that drives the reference dev Sequencer over a pluggable storage backend limits: no scenario bodies here; those live alongside (-> tests/scenarios.go)

Package tests is the public conformance suite: a backend (a Universe) proves it conforms to the Ranke-Graph ADT by running IntegrationTest, which stands the dev Sequencer over it (its bookmark list in an in-process 𝒰_hist) and validates every closure it reads back.

package: tests / conformance type: test job: multi-stage scenario stories that write through the Sequencer, re-read via immutable snapshots, and verify survival limits: no public entry point; driven by IntegrationTest (-> tests/integration.go)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegrationTest

func IntegrationTest(t *testing.T, ctx context.Context, backend Backend)

IntegrationTest runs the full Ranke-Graph integration suite against the storage backend, giving each scenario its own fixture: a fresh backend and Sequencer.

Types

type Backend

type Backend func(t *testing.T, clock *generator.Clock) (ranke.Universe, error)

Backend opens a fresh, isolated storage tier for one scenario: a Universe for claims + content, over the shared clock.

Directories

Path Synopsis
package: tests/backends / integration type: tool job: obtain an Azure Blob store for the matrix — one named by RANKE_AZURE_ENDPOINT (services/azurite.sh, a CI service container), else an ephemeral Azurite podman pod limits: needs RANKE_AZURE_ENDPOINT or podman, else ErrUnavailable; tears down only the blob container it created (-> minio_pod for the S3 half)
package: tests/backends / integration type: tool job: obtain an Azure Blob store for the matrix — one named by RANKE_AZURE_ENDPOINT (services/azurite.sh, a CI service container), else an ephemeral Azurite podman pod limits: needs RANKE_AZURE_ENDPOINT or podman, else ErrUnavailable; tears down only the blob container it created (-> minio_pod for the S3 half)
package: tests/generator / testkit type: tool job: Generate — build a deterministic kitchen-sink Ranke-Archive from a Spec, driving the dev Sequencer's write path; return a Manifest naming every corner limits: builds via the public ranke API + the dev testkit adapters; the caller supplies the Universe (-> adapter); asserts nothing (-> tests).
package: tests/generator / testkit type: tool job: Generate — build a deterministic kitchen-sink Ranke-Archive from a Spec, driving the dev Sequencer's write path; return a Manifest naming every corner limits: builds via the public ranke API + the dev testkit adapters; the caller supplies the Universe (-> adapter); asserts nothing (-> tests).
package: tests/helpers / testkit type: tool job: shared helpers for driving a ranke.Sequencer from tests and test tooling limits: the contract only — no fixtures, no assertions, no backend knowledge (-> tests, tests/backends)
package: tests/helpers / testkit type: tool job: shared helpers for driving a ranke.Sequencer from tests and test tooling limits: the contract only — no fixtures, no assertions, no backend knowledge (-> tests, tests/backends)
package: tests/matrix / conformance type: test job: the cross-backend agreement matrix — build one deterministic archive into every available backend, run the shared RQL corpus against each, and assert every backend's answer matches the reference's limits: correctness only, never timing (-> tests/performance); it asks whether an answer is right, never how a backend produced it — routing, lowering, and cache tiers are the backend's business
package: tests/matrix / conformance type: test job: the cross-backend agreement matrix — build one deterministic archive into every available backend, run the shared RQL corpus against each, and assert every backend's answer matches the reference's limits: correctness only, never timing (-> tests/performance); it asks whether an answer is right, never how a backend produced it — routing, lowering, and cache tiers are the backend's business
package: tests/performance / integration type: tool job: the reusable performance-matrix harness — generate a deterministic size-N archive into each backend and time the chapters (write / verify / random access), reporting per-step latency distributions limits: decoupled from the testing package so both the _test.go entrypoint and cmd/test can drive it; timing only — the backend rows come from tests/backends and correctness belongs to tests/matrix
package: tests/performance / integration type: tool job: the reusable performance-matrix harness — generate a deterministic size-N archive into each backend and time the chapters (write / verify / random access), reporting per-step latency distributions limits: decoupled from the testing package so both the _test.go entrypoint and cmd/test can drive it; timing only — the backend rows come from tests/backends and correctness belongs to tests/matrix
package: tests/rql / integration type: tool job: the shared RQL corpus — a broad set covering each axis of the read language (traversal, filter, shape, order, bound) for the conformance matrix, plus the small subset the timing harness measures limits: queries and their names only; executing them and comparing answers live alongside (-> run.go), and the backend rows come from tests/backends
package: tests/rql / integration type: tool job: the shared RQL corpus — a broad set covering each axis of the read language (traversal, filter, shape, order, bound) for the conformance matrix, plus the small subset the timing harness measures limits: queries and their names only; executing them and comparing answers live alongside (-> run.go), and the backend rows come from tests/backends

Jump to

Keyboard shortcuts

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