Documentation
¶
Overview ¶
Package richtextblocks runs the same rich-text block acceptance contract on real adapters. The fixture contains no alternative lifecycle implementation.
Index ¶
- func Block(kind, key string, values store.Values) store.Value
- func Document(nodes ...store.Value) store.Value
- func Run(t *testing.T, factory Factory)
- func RunNames(t *testing.T, factory Factory)
- func RunPerformance(t *testing.T, adapter string, factory Factory)
- func RunReferences(t *testing.T, factory Factory)
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Document ¶
Document constructs the portable supported JSON envelope; tests use raw store values deliberately to challenge API validation independently of types.
func Run ¶
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
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 ¶
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 ¶
RunReferences runs the same persistence/lifecycle assertions with centrally registered definitions, including references inside embedded payloads.