richtextblocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package richtextblocks runs the same rich-text block acceptance contract on real adapters. The fixture contains no alternative lifecycle implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(kind, key string, values store.Values) store.Value

func Document

func Document(nodes ...store.Value) store.Value

Document constructs the portable supported JSON envelope; tests use raw store values deliberately to challenge API validation independently of types.

func Run

func Run(t *testing.T, factory Factory)

Run exercises identical assertions against a real adapter, including its transaction, reference index, aggregate persistence and version storage.

func RunNames added in v0.2.2

func RunNames(t *testing.T, factory Factory)

RunNames proves that a configured block name remains an ordinary optional text child in both Blocks and schema-backed rich text. The same contract runs against every official adapter so no adapter-specific storage or backfill is needed for the presentation metadata.

func RunPerformance

func RunPerformance(t *testing.T, adapter string, factory Factory)

RunPerformance is opt-in because these versioned aggregate documents are intentionally large. It reports logical JSON bytes submitted and retained version bytes, not WAL, BSON compression, filesystem writes or fsync latency. The first operation and five subsequent warm samples are reported separately.

func RunReferences

func RunReferences(t *testing.T, factory Factory)

RunReferences runs the same persistence/lifecycle assertions with centrally registered definitions, including references inside embedded payloads.

Types

type Factory

type Factory func(*testing.T, ridu.Config) (store.Store, *ridu.App)

Factory must provide isolated, migrated storage and register its cleanup.

Jump to

Keyboard shortcuts

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