-
-
Notifications
You must be signed in to change notification settings - Fork 448
Add GIX_TEST_FIXTURE_HASH to gix-testtools #2377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7f50c30
d51b858
dc06493
5932e88
8ccd760
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,14 +162,17 @@ unit-tests: | |
| cargo nextest run -p gix-hash --no-fail-fast | ||
| cargo nextest run -p gix-hash --features sha256 --no-fail-fast | ||
| cargo nextest run -p gix-hash --no-default-features --features sha256 --no-fail-fast # TODO: make this actually work by removing 'sha1' from default features. | ||
| env GIX_TEST_FIXTURE_HASH=sha1 cargo nextest run -p gix-commitgraph --no-fail-fast | ||
| env GIX_TEST_FIXTURE_HASH=sha256 cargo nextest run -p gix-commitgraph --no-fail-fast | ||
|
Comment on lines
+165
to
+166
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Christoph Rüßler (@cruessler) I have removed the other usages of |
||
| cargo nextest run -p gix-object --no-fail-fast | ||
| cargo nextest run -p gix-object --features verbose-object-parsing-errors --no-fail-fast | ||
| cargo nextest run -p gix-tempfile --features signals --no-fail-fast | ||
| cargo nextest run -p gix-features --all-features --no-fail-fast | ||
| cargo nextest run -p gix-ref-tests --all-features --no-fail-fast | ||
| cargo nextest run -p gix-odb --all-features --no-fail-fast | ||
| cargo nextest run -p gix-odb-tests --features gix-features-parallel --no-fail-fast | ||
| cargo nextest run -p gix-pack --all-features --no-fail-fast | ||
| env GIX_TEST_FIXTURE_HASH=sha1 cargo nextest run -p gix-pack --all-features --no-fail-fast | ||
| env GIX_TEST_FIXTURE_HASH=sha256 cargo nextest run -p gix-pack --all-features --no-fail-fast | ||
| cargo nextest run -p gix-pack-tests --features all-features --no-fail-fast | ||
| cargo nextest run -p gix-pack-tests --features gix-features-parallel --no-fail-fast | ||
| cargo nextest run -p gix-index-tests --features gix-features-parallel --no-fail-fast | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What surprises me is that there is no way to check what hash format the graph is using. Could we have an implementation of
object_hash(which exists onFile) for theGraph, and assert on the value.But then we'd need a way to get the currently set hash, which had to come from
gix-testtools.I think this would be very useful to have and some assertion should definitely be made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you thinking about something like the following:
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you interested in a follow-up? There is the
nonemptycrate which I think would do wonders here (and in other places).But besides that, yes, this is what I imagined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely! I’ll have a look at
nonempty. I assume we want to wrapself.files? Or are you thinking about a more local use just inobject_hash?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve now added
Graph::object_hash.