Skip to content

Conversation

cruessler
Copy link
Contributor

This is a follow-up to #2156. It is a net reduction of about 270 lines in one test file. At the same time, it hopefully makes tests easier to understand as you can now better focus on the most important bits, i. e. the line numbers in the source file and the blamed file as well as the suspect’s ObjectId. I think this is a win.

Also, impl From<(Range<u32>, ObjectId)> for UnblamedHunk now reuses impl From<(Range<u32>, ObjectId, Range<u32>)> for UnblamedHunk, so the assert!s only have to be written once.

Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, thanks!

@Byron Byron merged commit 9222666 into GitoxideLabs:main Sep 9, 2025
25 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.

2 participants