Closed ThomasWaldmann closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.72%. Comparing base (
1ec66ed
) to head (de1b7e0
). Report is 17 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
If we have an entry for a chunk id in the ChunkIndex, it means that this chunk exists in the repository.
The code was a bit over-complicated and used entry.refcount only to detect whether .get(id, default) actually got something from the ChunkIndex or used the provided default value.
The code does the same now, but in a simpler way. Additionally, it checks for size consistency if a size is provided by the caller and a size is already present in the entry.