Skip to content

test: add unit tests to zero-coverage and low-coverage crates#635

Merged
AlexMikhalev merged 1 commit intomainfrom
cleanup/phase-6-test-coverage
Mar 5, 2026
Merged

test: add unit tests to zero-coverage and low-coverage crates#635
AlexMikhalev merged 1 commit intomainfrom
cleanup/phase-6-test-coverage

Conversation

@AlexMikhalev
Copy link
Contributor

Summary

Test coverage changes

Crate Before After New Tests
haystack_core 0 7 Trait implementability, error bounds, concurrent searches
terraphim_onepassword_cli 0 26 Reference parsing, env var conversion, config processing, error display, SecretLoader trait
terraphim_hooks 8 20 Multi-match replacement, find/contains matches, serde round-trip, builder pattern
terraphim_sessions 19 42 JSONL parsing, session file import, service search/cache/statistics, model edge cases

Test plan

  • cargo test -p haystack_core -- 7 passed
  • cargo test -p terraphim_onepassword_cli -- 26 passed
  • cargo test -p terraphim_hooks -- 20 passed
  • cargo test -p terraphim_sessions -- 42 passed
  • cargo check --workspace -- clean
  • Pre-commit hooks (fmt, clippy, build, test) -- all passed

Closes #628

Generated with Terraphim AI

Add 95 new tests across four crates:
- haystack_core (0 -> 7): trait implementability, error bounds, concurrent searches
- terraphim_onepassword_cli (0 -> 26): reference parsing, env var conversion,
  config processing, error display, SecretLoader trait
- terraphim_hooks (8 -> 20): multi-match replacement, find/contains matches,
  serde round-trip, builder pattern, unicode handling
- terraphim_sessions (19 -> 42): JSONL parsing, session file import, malformed
  line handling, service search/cache/statistics, model edge cases

Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
@AlexMikhalev AlexMikhalev force-pushed the cleanup/phase-6-test-coverage branch from 0f665c4 to 5d6b394 Compare March 5, 2026 23:09
@AlexMikhalev AlexMikhalev merged commit d7c4c20 into main Mar 5, 2026
@AlexMikhalev AlexMikhalev deleted the cleanup/phase-6-test-coverage branch March 5, 2026 23:09
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.

[cleanup] Phase 6: Test coverage improvements

1 participant