Skip to content

test: cover memory cache lookup and media kind classification - #84

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-4203
Draft

test: cover memory cache lookup and media kind classification#84
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-4203

Conversation

@cursor

@cursor cursor Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds direct unit tests for hash cache lookup and media type classification.

Risky behavior now covered

  • MemoryBank::lookup primary hit, filename move hit, and miss paths
  • media_kind_for_name photo/video/other classification

Test files

  • src-tauri/src/memory.rs (test module)
  • src-tauri/src/scanner.rs (test module)

Testing performed

  • cargo test --workspace — not run locally (Cargo 1.83 on Ubuntu VM); macOS CI authoritative

Safety notes

Test-only changes.

Open in Web View Automation 

Co-authored-by: k2gwv6rzf6 <k2gwv6rzf6@privaterelay.appleid.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