• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

humanspeak / svelte-markdown / 28971381145 / 1
94%
main: 95%

Build:
Build:
LAST BUILD BRANCH: fix/shiki-out-of-extensions-barrel
DEFAULT BRANCH: main
Ran 08 Jul 2026 07:58PM UTC
Files 131
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jul 2026 07:54PM UTC coverage: 94.289%. First build
28971381145.1

push

github

web-flow
perf(render-metadata): snapshot heading slugger occurrences (#337) (#348)

* test(render-metadata): add red tests for heading slugger snapshot (plan 006)

Red/TDD phase for plan 006 (heading-id dedup O(N^2) -> O(tail)).

- Equivalence guard: chunked duplicate-heading stream yields byte-identical
  ids to a single-shot parse (passes against current replay code).
- Scan-count scaling guards spy Slugger.prototype.slug and assert slug()
  calls are proportional to the divergent tail, not the full heading count
  (0 on non-heading append, 1 per new heading, 4 across 4 flushes). These
  fail against the replay path and go green once the occurrences
  snapshot/restore lands (Step 2).

Refs #337

* docs(guard): log 006 checkpoint 1 — red tests verified ON TRACK

Red-phase checkpoint for plan 006. Equivalence guard green as the plan
prescribes; three scan-count guards fail for the right reason (missing
occurrences snapshot/restore in render-metadata.ts). Snapshot c0f5fdc.

* perf(render-metadata): snapshot heading slugger occurrences (plan 006)

Make streaming heading-id dedup O(tail) instead of O(H) per flush.

On an append-only pass, restore the github-slugger `occurrences` map
from a snapshot captured at the stable-prefix boundary instead of
replaying `slug()` over every prior heading. A parallel
`preparedHeadingSnapshots` array stores {offset, occurrences-clone}
alongside each prepared heading; the tail is slugged against the
restored map and re-snapshotted for the next pass.

Correctness safeguards:
- Restore only when the header-id/prefix signature matches and every
  prefix heading's offset lines up with its stored snapshot offset;
  otherwise fall back to the existing full replay path.
- Output is byte-identical to replay (prefix headings keep their
  previously-computed ids; tail slugged against restored occurrences).

Refs #337

* docs(guard): log 006 checkpoint 2 — green phase ON TRACK

Step 2 (occurrences snapshot/restore) verified against snapshot... (continued)

877 of 977 branches covered (89.76%)

Branch coverage included in aggregate %.

1451 of 1492 relevant lines covered (97.25%)

4500.46 hits per line

Source Files on job node-22 - 28971381145.1
  • Tree
  • List 131
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 28971381145
  • 39fb0cb3 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc