Pointer Hierarchy.Test
Path:
loom-sprint-scaffold/loom/tests/memory/pointer-hierarchy.test.tsRelative: loom/tests/memory/pointer-hierarchy.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 188Bytes: 6,753Imports: 4Exports: 0has tests
Content Preview
- /**
- * PointerHierarchy tests (H4.4).
- *
- * Proves:
- * - memory_expand round-trips: put full text in fake BlobStore → expand returns it byte-identical
- * - Record not found → error
- * - episodic_ref is null → error
- * - BlobStore key missing → error
- */
- import { describe, expect, test } from "bun:test";
- import { Database } from "bun:sqlite";
- import { PointerHierarchy, createMemoryExpandHandler } from "../../src/memory/core/pointer-hierarchy";
- import { FakeD1, FakeBlobStore, setupMemoryD