You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add tests for TTLCache.GetOrCreate with maxSize <= 0
Cover the uncovered branch where maxSize is zero or negative causes
GetOrCreate to bypass the cache entirely and call create() on every
invocation. This brings syncutil package coverage from 97.7% to 100%.
The passthrough-cache behaviour (maxSize <= 0) is a deliberate design
choice that lets callers disable caching without changing call-sites.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments