Skip to content
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

Move report types to lib #125

Merged
merged 7 commits into from
Oct 19, 2020

Conversation

stephaneyfx
Copy link
Contributor

Serializable types were moved to their own lib crate so that they can be deserialized in tests and other crates. The json output was made deterministic. Tests validate json reports for the exisiting crate data set.

For #117

Thank you and sorry for the long PR.

- Maps and sets are used to enfore unicity of package IDs and paths.
- Serialization is made deterministic by ordering sequences. This allows diff'ing outputs.
- Test full and quick reports with existing crate data set.
- Copy test data to allow tests to run concurrently (otherwise there would be IO errors, e.g. about file deletion).
So that they can be compared to the actual reports.
As per the `cargo` docs, they are respectively a local filesystem-based registry and a directory-based registry.
`cargo` fails to use an overriding path dependency when the manifest path given to `cargo build` is a UNC path (starting with `\\?\`).

This was causing test7 test cases to fail.
@anderejd
Copy link
Contributor

Hey, sorry for taking so long to respond, have been exceptionally busy lately.

I have briefly looked through the code and it looks good to me, let's get this merged and fix potential mistakes later.

@anderejd anderejd merged commit e3445b1 into geiger-rs:master Oct 19, 2020
@stephaneyfx
Copy link
Contributor Author

Don't be sorry. I think you respond pretty fast, especially for a project you're probably working on on your free time. Thank you for the merge and please let me know if there are areas you'd like me to change.

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