chore: Add more tests for Cache, fix edge case in Cache::get(server_name) #29
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/resolvematrix!29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "zoe/additional-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
More tests added to reach 100% line coverage when running tests with coverage. Also adds some more doc comments on methods.
The edgecase fix is that
.get()would previously remove a cached entry if it was expired, without removing the associated hostname mapping. This could possibly result in aCacheLookup::ExpiredOverridebeing returned when there is no cache entry at all, and the correct return value isCacheLookup::Miss.The fix here is to also remove the hostname mapping, correctly making
CacheLookup::Missbe returned.Cache, fix edge case inCache::get(server_name)