Skip to content

Add unit tests for librarian codec modules#36

Open
clockblocker wants to merge 1 commit intomasterfrom
nightshift/idea-generator-codec-tests
Open

Add unit tests for librarian codec modules#36
clockblocker wants to merge 1 commit intomasterfrom
nightshift/idea-generator-codec-tests

Conversation

@clockblocker
Copy link
Copy Markdown
Owner

Summary

  • Add 102 unit tests across 6 files for the librarian codec modules: suffix, segment-id, split-path-inside-library, split-path-with-separated-suffix, locator, and library-path
  • Cover parse/serialize roundtrips, error cases (invalid inputs, missing parts, wrong extensions), and edge cases (empty suffixes, padded delimiters, deeply nested paths)
  • These pure functions had zero test coverage despite being critical to the healing and tree-action pipeline

Test plan

  • All 102 tests pass (bun test tests/unit/librarian/codecs/)
  • Full test suite passes (no regressions introduced)
  • No lint errors in new files
  • No type errors in new files

Nightshift-Task: idea-generator
Nightshift-Ref: https://github.com/marcus/nightshift

🤖 Generated with Claude Code

Add 102 tests across 6 test files covering the core codec modules:
suffix, segment-id, split-path-inside-library,
split-path-with-separated-suffix, locator, and library-path.
Tests cover parse/serialize roundtrips, error cases, and edge cases.

Nightshift-Task: idea-generator
Nightshift-Ref: https://github.com/marcus/nightshift
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant