Why two size_of_entry
tests for gix_index
?
#1685
-
This is the Lines 241 to 248 in 9ab86a2 While is the gitoxide/gix-index/tests/index/mod.rs Lines 26 to 33 in 9ab86a2 Is there a need for this pair of separate but identical tests? (They are effectively identical because Edit: There is a similar situation in These are the gitoxide/gix-pack/src/cache/delta/mod.rs Lines 29 to 33 in 9ab86a2 gitoxide/gix-pack/src/cache/delta/mod.rs Lines 35 to 49 in 9ab86a2 While these are the gitoxide/gix-pack/src/cache/delta/tree.rs Lines 229 to 233 in 9ab86a2 gitoxide/gix-pack/src/cache/delta/tree.rs Lines 235 to 249 in 9ab86a2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for bringing this up! And even though I could have thought that maybe I had the same idea, twice, in the case of My answer is that this must have been some sort of accident causing the duplication, I wouldn't see a reason them to exist twice. |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up!
And even though I could have thought that maybe I had the same idea, twice, in the case of
gix-index
, it's hard to imagine that happened with the much more complex duplicated tests ingix-pack
.My answer is that this must have been some sort of accident causing the duplication, I wouldn't see a reason them to exist twice.