molecule-core/workspace-server/internal/bundle
Molecule AI Fullstack Engineer 4706616e13
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 16s
sop-tier-check / tier-check (pull_request) Failing after 17s
Secret scan / Scan diff for credential-shaped strings (push) Successful in 8s
audit-force-merge / audit (pull_request) Successful in 10s
test(platform/bundle): add pure-function coverage for exporter.go (extractDescription, splitLines, findConfigDir)
No test file existed for exporter.go. This adds 16 cases:

extractDescription (7 cases):
- Frontmatter with description line
- No frontmatter, first non-comment line
- All comments → empty
- Empty input → empty
- Unclosed frontmatter → empty (inFrontmatter stays true)
- Frontmatter → comment → content
- Empty lines before first content → first content returned

splitLines (5 cases):
- Basic split
- Trailing newline → no trailing empty segment
- No newline → single segment
- Empty string → no segments
- Only newlines → N empty segments for N newlines

findConfigDir (6 cases):
- Name match → returns that directory
- No match → fallback to first-with-config.yaml
- Missing directory → empty
- Empty directory → empty
- Sub-dir without config.yaml → skipped
- Fallback is FIRST, not last (ordering verified)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 01:00:36 +00:00
..
exporter_test.go test(platform/bundle): add pure-function coverage for exporter.go (extractDescription, splitLines, findConfigDir) 2026-05-12 01:00:36 +00:00
exporter.go
importer_test.go
importer.go
types.go