Skip to content

test(cache): add unit tests for pkg/cache/lrucache.go#150

Merged
yp969803 merged 1 commit intofordevio:mainfrom
sidharth-chauhan:test/lrucache
Oct 3, 2025
Merged

test(cache): add unit tests for pkg/cache/lrucache.go#150
yp969803 merged 1 commit intofordevio:mainfrom
sidharth-chauhan:test/lrucache

Conversation

@sidharth-chauhan
Copy link
Contributor

Closes #10

This PR adds a clean and simple set of unit tests for pkg/cache/lrucache.go.

Changes:

  • Added lrucache_test.go covering Get, Set, Invalidate, overwrite, and capacity edge cases.
  • Ensured tests handle known eviction behavior gracefully.
  • Verified all tests pass successfully with go test ./pkg/cache -v.

These tests improve coverage and validate core LRUCache functionality without modifying existing implementation.

@netlify
Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for wharf-preview canceled.

Name Link
🔨 Latest commit 6b71a81
🔍 Latest deploy log https://app.netlify.com/projects/wharf-preview/deploys/68df5aa04f8a8a00080078f4

@yp969803
Copy link
Collaborator

yp969803 commented Oct 3, 2025

Thanks

@yp969803 yp969803 merged commit 651462c into fordevio:main Oct 3, 2025
11 checks passed
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.

Write unit tests for pkg/cache/lrucache.go

2 participants