Tests / @ogygia/content
@ogygia/content
Version 0.13.1
4b18f465 466 test runs (466 tests, each run in Node, the browsers or both)
0.47× lines of test for each line of source (5,769 to 12,267) Only real test code counts: test files and their helpers, not fixtures, sample apps or benches.
Blank lines are left out on both sides.
Exactly what is counted
non-blank lines of test code across the repo (*.test.ts, *.test-d.ts, *.spec.ts, and the .ts helpers in test/ and e2e/ folders; no fixtures, fixture apps, stubs or benches), over non-blank lines of packages/*/src (no .d.ts or generated files)77.0% of source lines run by the tests
- 459Unit
- 7Browser
- 0End to end
- 0Type tests
- 0Lint rules
- 0Failing
Coverage
- 77.0%Lines
- 62.7%Branches
- 71.4%Functions
- 73.1%Statements
Every test
End-to-end suites are not part of this report yet.
466 tests
| Test | Kind | Node | Chromium | Firefox | WebKit |
|---|---|---|---|---|---|
packages/content/test/blocks-resolve.test.ts | |||||
| resolve_block_tree > accepts a single node or an array | Unit | pass | not run | not run | not run |
| resolve_block_tree > carries no registry into the resolved tree (only region values) | Unit | pass | not run | not run | not run |
| resolve_block_tree > recurses into children | Unit | pass | not run | not run | not run |
| resolve_block_tree > skips an unregistered type rather than throwing | Unit | pass | not run | not run | not run |
| resolve_block_tree > turns each node type into a region value | Unit | pass | not run | not run | not run |
packages/content/test/browser/code-chrome.test.ts | |||||
| a clipboard that refuses is no unhandled rejection, and shows no tick | Browser | not run | pass | pass | pass |
| a second copy within the tick keeps the tick for its full time | Browser | not run | pass | pass | pass |
packages/content/test/browser/search-palette.test.ts | |||||
| a search query that fails (#273) > shows the error, drops the old results, and leaves no unhandled rejection#273 | Browser | not run | pass | pass | pass |
packages/content/test/browser/shell-bar.test.ts | |||||
| the mobile bar switches its sheet between views > holds the height through a glide, then lets go when it ends | Browser | not run | pass | pass | pass |
| the mobile bar switches its sheet between views > lets go of the pinned height when no glide runs | Browser | not run | pass | pass | pass |
packages/content/test/browser/sidebar.test.ts | |||||
| the sidebar keeps its scroll position > lets go of the panel when it unmounts: scrolling the panel after saves nothing | Browser | not run | pass | pass | pass |
| the sidebar keeps its scroll position > saves the position while it is mounted | Browser | not run | pass | pass | pass |
packages/content/test/code.test.ts | |||||
| fence meta parsers > infostring() reads chrome meta (title→file, quoted, bare, booleans); ignores line ranges | Unit | pass | not run | not run | not run |
| fence meta parsers > parsers LAYER (later wins on collision) | Unit | pass | not run | not run | not run |
| fence meta parsers > slash_meta() reads /// file:/copy:/link: and STRIPS them from source | Unit | pass | not run | not run | not run |
| run_variants — race > no generator claims → null | Unit | pass | not run | not run | not run |
| run_variants — race > the FIRST generator to return non-null claims the fence | Unit | pass | not run | not run | not run |
packages/content/test/config-surface.test.ts | |||||
| content presets — config-time validation > publishes valid presets to the bridge | Unit | pass | not run | not run | not run |
| content presets — config-time validation > rejects an empty preset and non-identifier names | Unit | pass | not run | not run | not run |
| content presets — config-time validation > rejects non-content vocabulary in a preset | Unit | pass | not run | not run | not run |
| content presets — config-time validation > requires the markdown base | Unit | pass | not run | not run | not run |
| loader macro preset door > a `preset` key nested in some other object is not the loader’s own | Unit | pass | not run | not run | not run |
| loader macro preset door > a presetless call emits no query (bare module — shared with every other presetless glob) | Unit | pass | not run | not run | not run |
| loader macro preset door > keeps sibling options intact while stripping preset | Unit | pass | not run | not run | not run |
| loader macro preset door > mints the module-variant query and strips preset from runtime options | Unit | pass | not run | not run | not run |
| loader macro preset door > non-literal preset is a build error (the macro-argument law) | Unit | pass | not run | not run | not run |
| loader macro preset door > unknown preset name errors listing the configured names | Unit | pass | not run | not run | not run |
packages/content/test/constructs-stress.test.ts | |||||
| .svelte multi-script-block interactions > a <script module> wire class AND a <script> code() call both rewrite, blocks independent | Unit | pass | not run | not run | not run |
| .svelte multi-script-block interactions > a DECOY string that looks like a call in another block is not rewritten | Unit | pass | not run | not run | not run |
| .svelte multi-script-block interactions > markup PROSE mimicking a call stays literal | Unit | pass | not run | not run | not run |
| code/md — byte-offset integrity under multi-byte unicode > code + md interleaved on ONE line both rewrite, offsets independent | Unit | pass | not run | not run | not run |
| code/md — byte-offset integrity under multi-byte unicode > code() with emoji prose before it splices correctly | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > deeply nested template with many ${}-looking but escaped sequences | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > empty source string | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > md source containing a </script> sequence in a .ts host (valid there) | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > the code source contains backticks-as-content via escaping | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > the source contains the marker text as a string literal in the code | Unit | pass | not run | not run | not run |
| code/md — demented shapes that must WORK > the whole family markers appearing together, only code/md rewrite here | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > code with a computed/non-literal lang | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > code with zero args | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > interpolated code source | Unit | pass | not run | not run | not run |
| code/md — must FAIL LOUDLY > interpolated md source | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > code with an identifier source → static string literal + line | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > loader with a concatenation first arg → static string literal | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > loader with an identifier first arg → static string literal | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > md with wrong arity → takes exactly one argument | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > regions with a non-literal glob → static string literal | Unit | pass | not run | not run | not run |
| misuse-error QUALITY — build-voice, file:line, explains the fix > unknown loader method → lists the valid loaders | Unit | pass | not run | not run | not run |
| regions — demented shapes > a glob matching NOTHING yields an empty registry, not a crash | Unit | pass | not run | not run | not run |
| regions — demented shapes > filenames with spaces and special chars become string-keyed, importable specifiers | Unit | pass | not run | not run | not run |
packages/content/test/content-runs.test.ts | |||||
| mark_content_calls > leaves a module alone that calls no content() from @ogygia/content | Unit | pass | not run | not run | not run |
| mark_content_calls > leaves a module alone that does not parse (mid-edit) | Unit | pass | not run | not run | not run |
| mark_content_calls > marks a module still in TypeScript the same, at the same offsets | Unit | pass | not run | not run | not run |
| mark_content_calls > marks a named, a renamed and a namespace content() call, and asks for the run once | Unit | pass | not run | not run | not run |
packages/content/test/content.test.ts | |||||
| content graph — relations + backlinks > a collection with no relations still receives backlinks from others | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > a missing single ref is null | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > inverts backlinks across collections | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > resolves a single-string relation to one RefEntry | Unit | pass | not run | not run | not run |
| content graph — relations + backlinks > resolves an array relation to RefEntry[] | Unit | pass | not run | not run | not run |
| content() catalog > collection-level filter hides entries from every read path | Unit | pass | not run | not run | not run |
| content() catalog > entries / entry from markdown(glob) | Unit | pass | not run | not run | not run |
| content() catalog > get() on a data-only entry has no body | Unit | pass | not run | not run | not run |
| content() catalog > get() returns id/data/meta + inline-partial body | Unit | pass | not run | not run | not run |
| content() catalog > get() returns null on a filtered-out / unknown id | Unit | pass | not run | not run | not run |
| content() catalog > list mints a prerender remote (static source) | Unit | pass | not run | not run | not run |
| content() catalog > per-remote filter narrows the collection filter (AND), never widens it | Unit | pass | not run | not run | not run |
| content() catalog > rejects a bare glob map (from must be a source) | Unit | pass | not run | not run | not run |
| enrich() source middleware > merges derived meta into refs() and get(), keeps existing meta | Unit | pass | not run | not run | not run |
| enrich() source middleware > threads groups() through | Unit | pass | not run | not run | not run |
| format source-builders > json: unwraps default, data-only (no body) | Unit | pass | not run | not run | not run |
| format source-builders > markdown: data + inline-partial body + headings in meta | Unit | pass | not run | not run | not run |
| format source-builders > markdown: surfaces the compiler-injected __ogygia_source as a LAZY entry.source | Unit | pass | not run | not run | not run |
| frontmatter > parses yaml and strips body | Unit | pass | not run | not run | not run |
| frontmatter > rejects broken yaml | Unit | pass | not run | not run | not run |
| glob() source ids > honors a custom id mapper | Unit | pass | not run | not run | not run |
| glob() source ids > strips shared prefix + extension generically (no hardcoded format list) | Unit | pass | not run | not run | not run |
| live source + live remotes > live.get projects one id from the seeded snapshot | Unit | pass | not run | not run | not run |
| live source + live remotes > live.list mints query_live and projects the seeded snapshot | Unit | pass | not run | not run | not run |
| vite content plugin > exposes invalidateModuleTree | Unit | pass | not run | not run | not run |
| vite content plugin > handles importer cycles | Unit | pass | not run | not run | not run |
| vite content plugin > plugin has no content.config transform | Unit | pass | not run | not run | not run |
packages/content/test/convention-dated.test.ts | |||||
| date_of > reads a valid date prefix | Unit | pass | not run | not run | not run |
| date_of > rejects undated and impossible-date segments | Unit | pass | not run | not run | not run |
| dated() > honors ordered:false opt-out | Unit | pass | not run | not run | not run |
| dated() > same-day posts share an order (ties break alphabetically downstream) | Unit | pass | not run | not run | not run |
| dated() > strips the date from the slug and orders chronologically | Unit | pass | not run | not run | not run |
| dated() > undated segments pass through unordered | Unit | pass | not run | not run | not run |
| dated() > verify flags only impossible date-looking prefixes | Unit | pass | not run | not run | not run |
| dated({ format }) > DD-MM-YYYY european format | Unit | pass | not run | not run | not run |
| dated({ format }) > dotted separators are literal | Unit | pass | not run | not run | not run |
| dated({ format }) > throws on a format missing a token | Unit | pass | not run | not run | not run |
| dated({ format }) > YYYYMMDD compact format | Unit | pass | not run | not run | not run |
packages/content/test/convention.test.ts | |||||
| folder() convention > `ordered: false` in a directory +meta.json exempts it | Unit | pass | not run | not run | not run |
| folder() convention > a +meta.json label overrides the title-cased default | Unit | pass | not run | not run | not run |
| folder() convention > a clean corpus builds, ordered by NN-, ids/groups derived | Unit | pass | not run | not run | not run |
| folder() convention > a whole custom convention reshapes structure (dot-ordering instead of dashes) | Unit | pass | not run | not run | not run |
| folder() convention > duplicate numbers in a directory fail the read, named | Unit | pass | not run | not run | not run |
| numbered().verify > a +meta.json `ordered: false` exempts the directory | Unit | pass | not run | not run | not run |
| numbered().verify > a directory with no prefixes is simply unordered — no issues | Unit | pass | not run | not run | not run |
| numbered().verify > clean numbering passes | Unit | pass | not run | not run | not run |
| numbered().verify > duplicate numbers are an error | Unit | pass | not run | not run | not run |
| numbered().verify > gaps pass by default, fail with contiguous | Unit | pass | not run | not run | not run |
| numbered().verify > inconsistent padding is an error (1- next to 01-) | Unit | pass | not run | not run | not run |
| numbered().verify > mixed prefixed and unprefixed siblings is an error | Unit | pass | not run | not run | not run |
| numbered().verify > pad option enforces an exact width | Unit | pass | not run | not run | not run |
packages/content/test/dev-close.test.ts | |||||
| the content plugin in dev, when its server closes > a restart ends the old run only: the new server still reloads on an edit | Unit | pass | not run | not run | not run |
| the content plugin in dev, when its server closes > lets go of a reload it was still waiting to send | Unit | pass | not run | not run | not run |
| the content plugin in dev, when its server closes > still reloads on an edit while the server runs | Unit | pass | not run | not run | not run |
packages/content/test/dev-reload.test.ts | |||||
| edits in dev (#247), modules loaded by ssrLoadModule > a collection in a module the edit did not run again keeps its connection and its place#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > a collection the module keeps across its runs still answers and follows after an edit#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > a live list open across an edit gets the new values or ends, never hangs#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > a module invalidated again while it runs: the run after it replaces what it built#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > an app in a folder whose name has a space: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > two edits of the collections module itself: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > two modules of the same name, each with a collection of the same name: an edit replaces only its own#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by ssrLoadModule > two page edits leave one live connection and one collection in the graph#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a collection in a module the edit did not run again keeps its connection and its place#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a collection the module keeps across its runs still answers and follows after an edit#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a live list open across an edit gets the new values or ends, never hangs#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > a module invalidated again while it runs: the run after it replaces what it built#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > an app in a folder whose name has a space: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > two edits of the collections module itself: the same#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > two modules of the same name, each with a collection of the same name: an edit replaces only its own#247 | Unit | pass | not run | not run | not run |
| edits in dev (#247), modules loaded by the ssr environment's runner > two page edits leave one live connection and one collection in the graph#247 | Unit | pass | not run | not run | not run |
| edits in dev under Bun (#247) > two page edits leave one live connection, however Kit loads the module#247 | Unit | pass | not run | not run | not run |
packages/content/test/diff-markers.test.ts | |||||
| diff_markers > a bare marker marks an added/removed EMPTY line | Unit | pass | not run | not run | not run |
| diff_markers > is inert on a fence with no markers | Unit | pass | not run | not run | not run |
| diff_markers > leaves marker-like code alone: no space, no dialect | Unit | pass | not run | not run | not run |
| diff_markers > skips languages where a leading --- is real syntax (yaml) | Unit | pass | not run | not run | not run |
| diff_markers > strips the markers and classes the lines | Unit | pass | not run | not run | not run |
packages/content/test/dimensions.test.ts | |||||
| dimensions — addresses union (prerender the whole matrix) > includes fallback URLs and excludes non-fallback misses | Unit | pass | not run | not run | not run |
| dimensions — coordinate encoding > default coordinate is bare; non-defaults get ordered segments | Unit | pass | not run | not run | not run |
| dimensions — coordinate encoding > is_dimensioned narrows | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > an axis without fallback 404s (version has no fallback) | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > doc carries the coordinate | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > native page has fallback null | Unit | pass | not run | not run | not run |
| dimensions — fallback (render, never 404) > untranslated page serves default-locale content with a fallback flag | Unit | pass | not run | not run | not run |
| dimensions — nav reflects the coordinate > nav hrefs carry the coordinate prefix | Unit | pass | not run | not run | not run |
| dimensions — nav reflects the coordinate > nav(slug) shows that coordinate’s tree | Unit | pass | not run | not run | not run |
| dimensions — neighbors are coordinate-prefixed > next stays in the same coordinate | Unit | pass | not run | not run | not run |
| dimensions — resolve serves the right coordinate > picks content per coordinate | Unit | pass | not run | not run | not run |
| dimensions — resolve serves the right coordinate > re-prefixes the slug/href to the full address | Unit | pass | not run | not run | not run |
| dimensions — site load/entries integration (the real mount) > entries prerenders the coordinate-prefixed union (incl. fallback URLs) | Unit | pass | not run | not run | not run |
| dimensions — site load/entries integration (the real mount) > load resolves a valid coordinate slug and 404s an unknown one | Unit | pass | not run | not run | not run |
| dimensions — switcher never dead-ends > a value where the page is missing points at that coordinate root, flagged missing | Unit | pass | not run | not run | not run |
| dimensions — switcher never dead-ends > offers every axis value with a resolvable href | Unit | pass | not run | not run | not run |
| dimensions — switcher never dead-ends > plain (non-dimensioned) site returns null switcher | Unit | pass | not run | not run | not run |
packages/content/test/fence-cache.test.ts | |||||
| fence cache > a disabled cache (dir null) is silent | Unit | pass | not run | not run | not run |
| fence cache > keys are stable and input-sensitive | Unit | pass | not run | not run | not run |
| fence cache > set/get round-trip; miss → null | Unit | pass | not run | not run | not run |
packages/content/test/frontmatter.test.ts | |||||
| parse_yaml — adversarial mixes > a colon inside a double-quoted value does not split the key | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > blank lines between entries are ignored | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > CRLF line endings are handled | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > maps and sequences deeply mixed | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > tabs used for indentation are rejected | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > top-level plain scalar | Unit | pass | not run | not run | not run |
| parse_yaml — adversarial mixes > trailing whitespace on lines is tolerated | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > block scalar followed by another key | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > folded > joins lines with spaces | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > folded blank line becomes a paragraph break | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > literal | keeps newlines | Unit | pass | not run | not run | not run |
| parse_yaml — block scalars > literal strip |- has no trailing newline | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > empty sequence item → null | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > nested sequences (- - x) | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > sequence at the SAME indent as its key | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > sequence of maps | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > simple scalar sequence | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > top-level sequence | Unit | pass | not run | not run | not run |
| parse_yaml — block sequences > typed items in a sequence | Unit | pass | not run | not run | not run |
| parse_yaml — comments > # inside a double-quoted value is NOT a comment | Unit | pass | not run | not run | not run |
| parse_yaml — comments > a#b (no leading space) stays a plain scalar | Unit | pass | not run | not run | not run |
| parse_yaml — comments > trailing # comment stripped | Unit | pass | not run | not run | not run |
| parse_yaml — comments > value that is only a comment → null | Unit | pass | not run | not run | not run |
| parse_yaml — dates stay strings > ISO date is NOT converted to a Date | Unit | pass | not run | not run | not run |
| parse_yaml — dates stay strings > ISO datetime stays a string | Unit | pass | not run | not run | not run |
| parse_yaml — empty & trivial > comment-only → {} | Unit | pass | not run | not run | not run |
| parse_yaml — empty & trivial > empty string → {} | Unit | pass | not run | not run | not run |
| parse_yaml — empty & trivial > whitespace-only → {} (not null) | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > booleans are ONLY true/false | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > integers, negatives, plus, exponents, floats | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > multiple keys in one block | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > Norway problem: yes/no/on/off/y/n stay STRINGS | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > null spellings: null, ~, and empty value | Unit | pass | not run | not run | not run |
| parse_yaml — flat mappings & scalar types > plain string values | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > a brace-wrapped token with no top-level colon is a STRING, not a mapping | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > a single bracketed phrase (no top-level comma) is a STRING, not a 1-element array | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > empty flow collections | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > flow mapping | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > flow sequence | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > flow sequence with typed values | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > nested flow collections | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > quoted string inside flow keeps commas/colons | Unit | pass | not run | not run | not run |
| parse_yaml — flow collections > top-level flow | Unit | pass | not run | not run | not run |
| parse_yaml — nested block mappings > three-level nesting | Unit | pass | not run | not run | not run |
| parse_yaml — nested block mappings > two-level nesting | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > double-quoted escapes: \n \t \" \\ \r \0 \uXXXX | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > numbers-that-look-like-versions stay strings if quoted | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > quoted KEYS (single and double), including a colon in the key | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > quoted values containing : and [ | Unit | pass | not run | not run | not run |
| parse_yaml — quoting > single-quoted is literal; `''` escapes a quote | Unit | pass | not run | not run | not run |
packages/content/test/git-checkout.test.ts | |||||
| git loaders on one repo > a loader on another ref checks that ref out | Unit | pass | not run | not run | not run |
| git loaders on one repo > two loaders with different folders each find their own files | Unit | pass | not run | not run | not run |
packages/content/test/inline-markers.test.ts | |||||
| inline_markers > a --- alone on its line is never a marker (frontmatter / hr shown in a fence) | Unit | pass | not run | not run | not run |
| inline_markers > a multi-line highlight closes and reopens per line (spans cannot cross lines) | Unit | pass | not run | not run | not run |
| inline_markers > an unpaired marker is left as-is | Unit | pass | not run | not run | not run |
| inline_markers > custom classes replace the defaults (the svelte.dev skin) | Unit | pass | not run | not run | not run |
| inline_markers > removed content is text: markup in it is escaped, never live HTML (#396)#396 | Unit | pass | not run | not run | not run |
| inline_markers > removed content keeps a $ pattern as written (#396)#396 | Unit | pass | not run | not run | not run |
| inline_markers > skips markdown-family fences — a docs page showing the syntax renders it literally | Unit | pass | not run | not run | not run |
| inline_markers > wraps a removed span and keeps its content visible | Unit | pass | not run | not run | not run |
| inline_markers > wraps an added span, strips the delimiters | Unit | pass | not run | not run | not run |
packages/content/test/island-ownership.test.ts | |||||
| island-transform ownership > the markup hook does NOT island-transform a .svelte (no bridge call, no phantom) | Unit | pass | not run | not run | not run |
| island-transform ownership > the markup hook still island-transforms CONTENT files through the bridge | Unit | pass | not run | not run | not run |
packages/content/test/lifecycle.test.ts | |||||
| a change made while the first value is built is not missed (#191) > live.get: the same#191 | Unit | pass | not run | not run | not run |
| a change made while the first value is built is not missed (#191) > live.list: a change between the first value and the next pull is yielded#191 | Unit | pass | not run | not run | not run |
| a change made while the first value is built is not missed (#191) > the live connection is open before the first full read: a change during it is seen#191 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > a collection the same run builds replaces nothing#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > a live list streaming it ends once it was replaced, and so does a live get#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > its live connection: a change after it was replaced is not read#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > its retry: a dropped connection is not opened again once it was replaced#247 | Unit | pass | not run | not run | not run |
| a collection a newer run of its module replaces stops following (#247) > the module kept it: read again, it follows again#247 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > a schema error on the first read: fixed at the source, the next read loads#189 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > a source that is down for the first read: the next read loads#189 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > a source whose init fails once: the next read starts it again#189 | Unit | pass | not run | not run | not run |
| a collection never keeps a failed start (#189) > readers while it loads share the one load#189 | Unit | pass | not run | not run | not run |
| a dimension (a language, a version) never keeps a failed outline (#192) > fr fails to build once: the next fr page builds#192 | Unit | pass | not run | not run | not run |
| a folder sidecar that fails to load once is loaded again (#246) > its groups: the next read has the label#246 | Unit | pass | not run | not run | not run |
| a folder sidecar that fails to load once is loaded again (#246) > once loaded, the sidecars are kept: readers share the one load#246 | Unit | pass | not run | not run | not run |
| a folder sidecar that fails to load once is loaded again (#246) > the collection: the next read loads it#246 | Unit | pass | not run | not run | not run |
| a live edit that breaks the outline keeps the last good one > an entry the outline places nowhere: the nav stays, an error says why, the fix applies | Unit | pass | not run | not run | not run |
| a live edit that breaks the outline keeps the last good one > the first weave failing is still the caller’s error (there is nothing to keep) | Unit | pass | not run | not run | not run |
| a live source keeps going (#190) > a dropped connection is opened again, and what changed meanwhile is read#190 | Unit | pass | not run | not run | not run |
| a live source keeps going (#190) > one bad update (a field the schema refuses) does not stop the ones after it#190 | Unit | pass | not run | not run | not run |
| a source that is down never leaves live connections behind > a reconnect whose read fails waits and tries again on the same connection | Unit | pass | not run | not run | not run |
| a source that is down never leaves live connections behind > reads that fail while the source is down share one connection, and the change it brings applies once | Unit | pass | not run | not run | not run |
| site search follows the content (#193) > a failed first build is not kept: the next search builds again#193 | Unit | pass | not run | not run | not run |
| site search follows the content (#193) > a page a live source adds is found by the next search#193 | Unit | pass | not run | not run | not run |
| the outline is stamped with the content it read, never a newer version (#326) > a change that lands while its entries are graphed: the next read weaves again#326 | Unit | pass | not run | not run | not run |
packages/content/test/loaders-stress.test.ts | |||||
| loaders — demented shapes > a git spec with an @ref AND a sub path AND regex opts survives | Unit | pass | not run | not run | not run |
| loaders — demented shapes > a loader nested inside a ternary inside an object | Unit | pass | not run | not run | not run |
| loaders — demented shapes > a non-literal first arg (template literal) is rejected loudly | Unit | pass | not run | not run | not run |
| loaders — demented shapes > an unknown loader method is rejected with a helpful message | Unit | pass | not run | not run | not run |
| loaders — demented shapes > empty input, whitespace-only input, and marker-free input are no-ops | Unit | pass | not run | not run | not run |
| loaders — demented shapes > the marker inside a comment and a string is not a call (AST) | Unit | pass | not run | not run | not run |
| loaders — demented shapes > two loaders on one line, both rewrite, import injected once | Unit | pass | not run | not run | not run |
| scanner fallback — when the AST bails on an unparseable tail > loaders: a git spec with regex opts survives the fallback path | Unit | pass | not run | not run | not run |
| scanner fallback — when the AST bails on an unparseable tail > loaders: fallback finds the call after an unparseable tail, string marker ignored | Unit | pass | not run | not run | not run |
packages/content/test/loaders.test.ts | |||||
| expand_braces > expands a single alternation | Unit | pass | not run | not run | not run |
| expand_braces > expands multiple groups as a cartesian product | Unit | pass | not run | not run | not run |
| expand_braces > handles nested braces | Unit | pass | not run | not run | not run |
| expand_braces > leaves an unbalanced brace untouched | Unit | pass | not run | not run | not run |
| expand_braces > passes a brace-free pattern straight through | Unit | pass | not run | not run | not run |
| find_loader_calls > AST path: ignores the marker inside a comment or string (only real call nodes count) | Unit | pass | not run | not run | not run |
| find_loader_calls > captures verbatim options that contain regex literals with slashes in char classes | Unit | pass | not run | not run | not run |
| find_loader_calls > finds a bare git call with no options | Unit | pass | not run | not run | not run |
| find_loader_calls > finds all four loader kinds | Unit | pass | not run | not run | not run |
| find_loader_calls > is not fooled by a close-paren inside a string option | Unit | pass | not run | not run | not run |
| find_loader_calls > scanner fallback: still ignores comments/strings when the source does not parse | Unit | pass | not run | not run | not run |
| git_checkout_dir > joins under the project cache root | Unit | pass | not run | not run | not run |
| git_glob_pattern > honors a custom extension | Unit | pass | not run | not run | not run |
| git_glob_pattern > is a root-absolute glob under node_modules/.ogygia/content/<slug>/<sub> | Unit | pass | not run | not run | not run |
| git_glob_pattern > omits the sub segment when there is none | Unit | pass | not run | not run | not run |
| git_slug > is the whole spec (owner, repo, ref, sub), filesystem-safe | Unit | pass | not run | not run | not run |
| git_slug > never spells two specs one way | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > a file-looking path (dotted basename) is left alone — never treated as a directory | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > an explicit glob passes through (brace-expanded, unchanged semantics) | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > dot-relative directories still expand (`.`/`..` are not file-looking) | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > folder(dir) derives the +doc.svx / +meta.json convention set | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > markdown(dir) derives *.svx + *.md; json(dir) derives *.json; trailing slash normalized | Unit | pass | not run | not run | not run |
| loader_patterns — the opinionated directory form > rewrite emits the array-form glob for a directory argument (dev + build agree) | Unit | pass | not run | not run | not run |
| lockfile round-trip > per-slug sha entries round-trip through the shared build cache | Unit | pass | not run | not run | not run |
| parse_git_spec > owner/repo → default ref HEAD, empty sub | Unit | pass | not run | not run | not run |
| parse_git_spec > owner/repo:path → sub, default ref | Unit | pass | not run | not run | not run |
| parse_git_spec > owner/repo@ref:path → all three | Unit | pass | not run | not run | not run |
| parse_git_spec > strips leading/trailing slashes from the sub path | Unit | pass | not run | not run | not run |
| parse_git_spec > throws on a spec with no owner/repo | Unit | pass | not run | not run | not run |
| rewrite_loaders > brace alternation → Vite array form (dev matcher drops `{+doc,…}` braces, so expand them) | Unit | pass | not run | not run | not run |
| rewrite_loaders > git → folder(import.meta.glob(...)) with a lazy glob + aliased import | Unit | pass | not run | not run | not run |
| rewrite_loaders > json → json(...) and folder → folder(...), importing only what is used | Unit | pass | not run | not run | not run |
| rewrite_loaders > leaves a source with no loader calls untouched (no injected import) | Unit | pass | not run | not run | not run |
| rewrite_loaders > markdown → markdown(import.meta.glob(<literal glob>, { eager: false })) | Unit | pass | not run | not run | not run |
packages/content/test/markdown-cache-key.test.ts | |||||
| markup cache key > a moved file with the same content bakes its own CSS key | Unit | pass | not run | not run | not run |
| markup cache key > the same file compiled again still hits the cache | Unit | pass | not run | not run | not run |
packages/content/test/markdown-start.test.ts | |||||
| the highlighter never keeps a failed start (#248) > once started it is kept: highlights while it starts share the one start#248 | Unit | pass | not run | not run | not run |
| the highlighter never keeps a failed start (#248) > the first start fails: the next highlight starts it again#248 | Unit | pass | not run | not run | not run |
| the markdown preprocessor never keeps a failed start (#248) > mdsvex fails to start: the next page renders#248 | Unit | pass | not run | not run | not run |
packages/content/test/markdown.test.ts | |||||
| code dialect — shiki transformers passthrough > a plain fence (no variant claims it) stays the single-variant path | Unit | pass | not run | not run | not run |
| code dialect — shiki transformers passthrough > a variant generator produces a multi-variant switcher (both versions inline) | Unit | pass | not run | not run | not run |
| code dialect — shiki transformers passthrough > applies a transformer to every fence (the ecosystem contract) | Unit | pass | not run | not run | not run |
| code dialect — shiki transformers passthrough > passes the raw fence infostring to transformers as meta.__raw (so {1-3} line highlight works) | Unit | pass | not run | not run | not run |
| code-block ids > gives two identical blocks in one section distinct ids | Unit | pass | not run | not run | not run |
| code-block ids > is a stable content hash — the id survives inserting a block earlier in the section | Unit | pass | not run | not run | not run |
| code-block ids > stamps a scoped `slug-code-<hash>` id onto the <pre> in the SSR HTML | Unit | pass | not run | not run | not run |
| code-block ids > uses a bare `code-<hash>` id for a block before any heading | Unit | pass | not run | not run | not run |
| content preset dispatch (v3 config surface) > routes a marker-tagged variant through the preset pipeline, unmarked through the default | Unit | pass | not run | not run | not run |
| content preset dispatch (v3 config surface) > unknown preset on a variant errors listing the configured names | Unit | pass | not run | not run | not run |
| escape_svelte / wrap_html > escapes backticks and ${ for {@html} | Unit | pass | not run | not run | not run |
| escape_svelte / wrap_html > wraps with class or leaves bare | Unit | pass | not run | not run | not run |
| markdown preset > exposes .svx / .md extensions | Unit | pass | not run | not run | not run |
| markdown preset > normalize_shiki defaults to github dual themes + light-dark() | Unit | pass | not run | not run | not run |
| markdown preset > ogygiaPreprocess() returns an mdsvex preprocessor | Unit | pass | not run | not run | not run |
| prose dialect — remark/rehype passthrough > runs a user rehype plugin (adds an attribute to an element) | Unit | pass | not run | not run | not run |
| prose dialect — remark/rehype passthrough > runs a user remark plugin after the built-in passes | Unit | pass | not run | not run | not run |
| remarkHeadingId > strips {#id} into hProperties.id | Unit | pass | not run | not run | not run |
| scoped heading ids > de-dupes colliding scoped ids with a numeric suffix | Unit | pass | not run | not run | not run |
| scoped heading ids > joins the ancestor path for auto-slugged headings | Unit | pass | not run | not run | not run |
| scoped heading ids > keeps an explicit {#id} verbatim and scopes its children under it | Unit | pass | not run | not run | not run |
| scoped heading ids > metadata.headings carries the SAME scoped ids | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > ::: code-group injects the plain TabGroup + Tab barrel import | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > an import inside a fenced code SAMPLE is not treated as a real import (Shiki escapes it) | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > author import + ::: syntax → not double-injected | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > does not inject when no tab syntax is used | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > leaves an author's `import { TabGroup, Tab } from 'ogygia/content'` untouched (no upgrade) | Unit | pass | not run | not run | not run |
| tab component injection (plain barrel) > leaves sibling barrel specifiers untouched (no split) | Unit | pass | not run | not run | not run |
packages/content/test/og-code.test.ts | |||||
| dedent > blank lines do not constrain the common indent | Unit | pass | not run | not run | not run |
| dedent > empty / whitespace-only → empty | Unit | pass | not run | not run | not run |
| dedent > leaves already-flush text alone | Unit | pass | not run | not run | not run |
| dedent > strips common leading indentation and trims blank first/last lines | Unit | pass | not run | not run | not run |
| rewrite_code — md() > bakes a markdown string (dedented) and inlines og_html_region | Unit | pass | not run | not run | not run |
| rewrite_code — md() > code() and md() coexist in one module; one import injected | Unit | pass | not run | not run | not run |
| rewrite_code — md() > rejects an interpolated md() template | Unit | pass | not run | not run | not run |
| rewrite_code — md() > rejects md() with wrong arity | Unit | pass | not run | not run | not run |
| rewrite_code > bakes a template-literal snippet, dedents it, and inlines og_html_region | Unit | pass | not run | not run | not run |
| rewrite_code > ignores the marker in a comment or string | Unit | pass | not run | not run | not run |
| rewrite_code > multiple snippets in one module all bake and the import injects once | Unit | pass | not run | not run | not run |
| rewrite_code > rejects a non-literal lang | Unit | pass | not run | not run | not run |
| rewrite_code > rejects an interpolated template source (build error) | Unit | pass | not run | not run | not run |
| rewrite_code > rejects wrong arity | Unit | pass | not run | not run | not run |
| rewrite_code > returns the same reference when there is nothing to do | Unit | pass | not run | not run | not run |
| rewrite_code > threads the meta infostring through as the third arg | Unit | pass | not run | not run | not run |
| rewrite_code > works inside a .svelte <script> block; the import lands at the block top; prose untouched | Unit | pass | not run | not run | not run |
packages/content/test/region-emit.test.ts | |||||
| try_region_emit > allows braces inside fence content (code is code) | Unit | pass | not run | not run | not run |
| try_region_emit > does not confuse digits in prose with fence tokens | Unit | pass | not run | not run | not run |
| try_region_emit > emits a serialized region for pure prose + fences | Unit | pass | not run | not run | not run |
| try_region_emit > escapes prose braces to entities (text, not expressions — md is content) | Unit | pass | not run | not run | not run |
| try_region_emit > falls back only on instance scripts; inert tags stay content | Unit | pass | not run | not run | not run |
| try_region_emit > handles a module with no module script (frontmatter-less md) | Unit | pass | not run | not run | not run |
| try_region_emit > JSON-escapes </script> in content so the module script cannot terminate early | Unit | pass | not run | not run | not run |
| try_region_emit > keeps extra module lines (the source self-import) | Unit | pass | not run | not run | not run |
| unescape_svelte > is the exact inverse of escape_svelte | Unit | pass | not run | not run | not run |
| unescape_svelte > round-trips real fence HTML through the embed codec | Unit | pass | not run | not run | not run |
packages/content/test/region-store.test.ts | |||||
| RegionStore > addresses are stable, input-sensitive, and version-sensitive | Unit | pass | not run | not run | not run |
| RegionStore > carries the islands field when present | Unit | pass | not run | not run | not run |
| RegionStore > namespaces are disjoint | Unit | pass | not run | not run | not run |
| RegionStore > round-trips a serialized region under its namespace | Unit | pass | not run | not run | not run |
packages/content/test/regions.test.ts | |||||
| region_key > is the basename verbatim, minus extension (no normalization) | Unit | pass | not run | not run | not run |
| rewrite_regions > globs the folder and emits raw-region imports + a basename-keyed object | Unit | pass | not run | not run | not run |
| rewrite_regions > ignores the marker in a comment or string | Unit | pass | not run | not run | not run |
| rewrite_regions > leaves a module with no regions() call untouched (same reference) | Unit | pass | not run | not run | not run |
| rewrite_regions > rejects a non-literal glob argument | Unit | pass | not run | not run | not run |
| rewrite_regions > throws build-voice on a duplicate key (same basename in nested dirs) | Unit | pass | not run | not run | not run |
packages/content/test/search-client.test.ts | |||||
| SearchClient: a query is answered or rejected, never left waiting > a query the worker answers | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > a query the worker fails: rejected with the worker’s message | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > an empty query is [] at once, in any state | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > destroy() twice is the same as once (a manual destroy, then the palette’s unmount) | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > destroy(): waiting queries and later ones are rejected, the worker ends | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > the index fails to load: the queries waiting on it, and every query after, are rejected | Unit | pass | not run | not run | not run |
| SearchClient: a query is answered or rejected, never left waiting > the worker crashes: waiting queries and later ones are rejected | Unit | pass | not run | not run | not run |
| the search worker: a failed query is answered with its id > the index failed to build: a query is answered `error` with ITS id | Unit | pass | not run | not run | not run |
| the search worker: a failed query is answered with its id > the index failed to download once: the next query downloads it again and is answered | Unit | pass | not run | not run | not run |
packages/content/test/shiki-highlighters.test.ts | |||||
| snippets, and highlights that alternate configs, do not make a highlighter each time | Unit | pass | not run | not run | not run |
| two unnamed theme objects are two themes | Unit | pass | not run | not run | not run |
packages/content/test/site.test.ts | |||||
| address seams — group slug + trail scope > group `slug` drops a segment from the ADDRESS while nav/id keep structure | Unit | pass | not run | not run | not run |
| address seams — group slug + trail scope > trail: 'group' stops prev/next at the section boundary; 'site' crosses it | Unit | pass | not run | not run | not run |
| build_rss > emits sorted RSS 2.0 with absolutized links | Unit | pass | not run | not run | not run |
| emissions — raw markdown (from entry.source) > entries() lists only slugs whose entry has source; unknown or source-less → 404 | Unit | pass | not run | not run | not run |
| emissions — raw markdown (from entry.source) > keeps frontmatter when asked | Unit | pass | not run | not run | not run |
| emissions — raw markdown (from entry.source) > serves entry.source(), frontmatter stripped by default | Unit | pass | not run | not run | not run |
| emissions > llms.txt is an llmstxt.org index grouped by section | Unit | pass | not run | not run | not run |
| emissions > llms.txt renders top-level links under Pages and titles+summaries | Unit | pass | not run | not run | not run |
| emissions > sitemap honors an explicit origin (for prerendered output) | Unit | pass | not run | not run | not run |
| emissions > sitemap lists every leaf as an absolute URL | Unit | pass | not run | not run | not run |
| link audit > a link through redirect history is a warn (stale), not an error | Unit | pass | not run | not run | not run |
| link audit > checks in load pass a clean page; self-anchor resolves against own headings | Unit | pass | not run | not run | not run |
| link audit > checks in load throw on an error finding (build/dev failure) | Unit | pass | not run | not run | not run |
| link audit > links() check flags a missing page and a missing anchor; skips external + out-of-mount | Unit | pass | not run | not run | not run |
| mountBase > subtracts the slug from the pathname | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on a slug collision across collections | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on an unknown pick id | Unit | pass | not run | not run | not run |
| outline — build-time safety > errors on orphan entries (fully manual, leftover) | Unit | pass | not run | not run | not run |
| outline — convention (bare collection) > applies the mount base to hrefs, slugs stay bare | Unit | pass | not run | not run | not run |
| outline — convention (bare collection) > groups by section, orders by NN-, titles from data | Unit | pass | not run | not run | not run |
| outline — group label from the source groups() facet > overrides a section label via groups() (folder()/CMS supply it as data) | Unit | pass | not run | not run | not run |
| outline — multi-collection arrangement > arranges two collections with a base prefix and a link | Unit | pass | not run | not run | not run |
| outline — multi-collection arrangement > glob pick expands in convention order | Unit | pass | not run | not run | not run |
| outline — multi-collection arrangement > pick() places explicit ids in order; a bare remainder mops up the rest | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > aliases resolve to their canonical slug; entries() includes them | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > an alias shadowing a live page is a build error | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > load 308s an alias to the canonical URL (base by subtraction) | Unit | pass | not run | not run | not run |
| redirect history (redirect_from) > two entries claiming one old address is a build error | Unit | pass | not run | not run | not run |
| rehypeOverrides (element → slot rewrite) > rewrites configured tags to the slot with a `tag` prop; leaves others alone | Unit | pass | not run | not run | not run |
| remarkLinks collector > collects every markdown link with text and line into fm.links | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > orama_engine indexes docs and ranks a term match | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > site.emit.search() serializes the section documents | Unit | pass | not run | not run | not run |
| search — engine + brain (Orama) > site.search() returns ranked hits with mount-based hrefs; scoping pre-filters | Unit | pass | not run | not run | not run |
| search — projection > build_docs makes one document per section, with slug + anchor | Unit | pass | not run | not run | not run |
| search — projection > split_sections chunks by heading, aligned to collected headings | Unit | pass | not run | not run | not run |
| search — projection > strip_prose removes frontmatter, code, tags, markdown syntax | Unit | pass | not run | not run | not run |
| site — brains > doc() headings ride through from meta | Unit | pass | not run | not run | not run |
| site — brains > doc() returns null for an unknown slug | Unit | pass | not run | not run | not run |
| site — brains > doc() returns section, headings, and order-based trail | Unit | pass | not run | not run | not run |
| site — brains > entries() yields every leaf slug in reading order | Unit | pass | not run | not run | not run |
| site — brains > prevNext "graph" prefers related, falls back to order | Unit | pass | not run | not run | not run |
packages/content/test/tabs.test.ts | |||||
| code-group — basics > emits one Tab per fence, labelled from [label] | Unit | pass | not run | not run | not run |
| code-group — basics > keeps the code content | Unit | pass | not run | not run | not run |
| code-group — basics > marks used | Unit | pass | not run | not run | not run |
| code-group — basics > strips the [label] from the fence but keeps the language | Unit | pass | not run | not run | not run |
| code-group — basics > wraps in a single <TabGroup>…</TabGroup> | Unit | pass | not run | not run | not run |
| code-group — fence robustness > ignores stray non-fence lines between blocks | Unit | pass | not run | not run | not run |
| code-group — fence robustness > respects fence length — a ``` inside a ```` block is content, not a close | Unit | pass | not run | not run | not run |
| code-group — fence robustness > supports tilde fences | Unit | pass | not run | not run | not run |
| code-group — fence robustness > tolerates an unclosed fence (runs to block end) | Unit | pass | not run | not run | not run |
| code-group — grouping / sync > defaults to a label-set key so identical sets sync | Unit | pass | not run | not run | not run |
| code-group — grouping / sync > honours an explicit group name on the opener | Unit | pass | not run | not run | not run |
| code-group — grouping / sync > two blocks with the same labels get the same auto group | Unit | pass | not run | not run | not run |
| code-group — labels & languages > falls back to "Tab N" when a fence has no [label] | Unit | pass | not run | not run | not run |
| code-group — labels & languages > handles [label] before OR after the language | Unit | pass | not run | not run | not run |
| code-group — labels & languages > handles a fence with only a [label] and no language | Unit | pass | not run | not run | not run |
| code-group — labels & languages > supports labels with spaces | Unit | pass | not run | not run | not run |
| CRLF line endings > handles a lone-CR document | Unit | pass | not run | not run | not run |
| CRLF line endings > is fence-aware under CRLF (a fenced == is content) | Unit | pass | not run | not run | not run |
| CRLF line endings > normalizes emitted output to LF (no stray carriage returns) | Unit | pass | not run | not run | not run |
| CRLF line endings > parses == markers written with CRLF | Unit | pass | not run | not run | not run |
| CRLF line endings > parses a code-group written with CRLF | Unit | pass | not run | not run | not run |
| escaping > escapes special characters in labels | Unit | pass | not run | not run | not run |
| grouping — cross-block sync & isolation > an explicit name overrides the label-set key | Unit | pass | not run | not run | not run |
| grouping — cross-block sync & isolation > different label sets get different code-group keys | Unit | pass | not run | not run | not run |
| grouping — cross-block sync & isolation > tabs blocks keep independent auto groups even when interleaved with code-groups | Unit | pass | not run | not run | not run |
| has_tabs — prose false positives stay false > does not fire on prose mentioning the feature names | Unit | pass | not run | not run | not run |
| has_tabs — prose false positives stay false > fires on a CRLF-terminated opener | Unit | pass | not run | not run | not run |
| has_tabs — prose false positives stay false > fires on a real opener even when buried mid-document | Unit | pass | not run | not run | not run |
| has_tabs gate > detects code-group and tabs openers | Unit | pass | not run | not run | not run |
| has_tabs gate > does not fire the pass when absent (identity + used=false) | Unit | pass | not run | not run | not run |
| has_tabs gate > ignores unrelated content | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > an empty code-group emits nothing and is not "used" | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > an empty tabs block emits nothing | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > does not treat "==" with no space as a marker | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > handles indented openers and markers | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > is a no-op on empty input | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on a lone opener with nothing after it | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on a wall of bare fences and markers | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on adversarial fence/marker soup | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > never throws on only-whitespace or newline noise | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > tolerates an unclosed block (runs to EOF) | Unit | pass | not run | not run | not run |
| malformed / edge cases (never throws, always valid) > tolerates extra whitespace around ::: and == | Unit | pass | not run | not run | not run |
| mixed real-world document > collects labels across both blocks in order | Unit | pass | not run | not run | not run |
| mixed real-world document > leaves the fenced code sample untouched | Unit | pass | not run | not run | not run |
| mixed real-world document > never throws on the whole document | Unit | pass | not run | not run | not run |
| mixed real-world document > preserves surrounding prose | Unit | pass | not run | not run | not run |
| mixed real-world document > produces balanced fences overall | Unit | pass | not run | not run | not run |
| mixed real-world document > transforms exactly the two real blocks | Unit | pass | not run | not run | not run |
| mixed real-world document > uses the label-set key and the explicit name respectively | Unit | pass | not run | not run | not run |
| multiple & mixed blocks > transforms several blocks in one document | Unit | pass | not run | not run | not run |
| tabs — basics > drops content before the first == marker | Unit | pass | not run | not run | not run |
| tabs — basics > emits one Tab per == marker | Unit | pass | not run | not run | not run |
| tabs — basics > keeps each tab body | Unit | pass | not run | not run | not run |
| tabs — fence robustness > a ":::" inside a code fence does NOT close the block early | Unit | pass | not run | not run | not run |
| tabs — fence robustness > a "== ..." line inside a code fence is NOT a tab marker | Unit | pass | not run | not run | not run |
| tabs — grouping > auto-numbers independent groups per block | Unit | pass | not run | not run | not run |
| tabs — grouping > honours an explicit group name | Unit | pass | not run | not run | not run |
| top-level fences are never touched > ignores ::: tabs inside a ```` block that contains ``` runs | Unit | pass | not run | not run | not run |
| top-level fences are never touched > ignores a ::: code-group written inside a top-level fence | Unit | pass | not run | not run | not run |
| well-formed output > emits balanced fences for a normal code-group | Unit | pass | not run | not run | not run |
| well-formed output > synthesizes a closer for an unclosed code-group fence | Unit | pass | not run | not run | not run |
| well-formed output > synthesizes a closer for an unclosed fence inside a tabs body | Unit | pass | not run | not run | not run |
| well-formed output > wraps each tab in exactly one <Tab>…</Tab> | Unit | pass | not run | not run | not run |