Skip to content

test: fill 5 coverage gaps before 1.0 #50

Description

@sfegette

Summary

Five test coverage gaps identified in the 2026-05-22 review. All should be filled before 1.0.

Gaps

  1. ConversationStore.applyRetentionMode().lastNTurns and .unlimited paths are untested
  2. ConversationStore.save() when setAttributes throws but write succeeded — covers the M1 fix; stub setAttributes to throw and assert in-memory state is still updated
  3. ConversationStore.delete() while a stream send is in-flight — race condition path
  4. ApfelServerManager.handleCrash crash→restart cycle — currently no test exercises the crash recovery path
  5. HomebrewInstaller.brewURL / canInstallApfel — directly relevant to the auto-install feature; should be covered when that feature lands

Notes

Gap #2 is coupled to the M1 fix — add the test in the same PR. Gap #5 should land with the auto-install feature PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions