Skip to content

Improve eviction strategy tests with deterministic RNG and concurrency cases#39

Closed
dave-hillier wants to merge 4 commits into
masterfrom
codex/enhance-eviction-tests-for-fairness-and-safety
Closed

Improve eviction strategy tests with deterministic RNG and concurrency cases#39
dave-hillier wants to merge 4 commits into
masterfrom
codex/enhance-eviction-tests-for-fairness-and-safety

Conversation

@dave-hillier

Copy link
Copy Markdown
Owner

Summary

  • Allow injecting a Random instance into RandomEvictionStrategy for deterministic testing
  • Extend random eviction tests with deterministic and fairness assertions
  • Cover LRU edge cases: oversized entries, concurrent access, and mixed operation eviction order
  • Prevent infinite loops when evicting with empty cache in MakeSpaceForNewEntry

Testing

  • dotnet test Src/Nemcache.Tests/Nemcache.Tests.csproj

https://chatgpt.com/codex/tasks/task_e_68a8e3abec94832793c90f5cded689df

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant