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

WIP: Inlinetestdatagen #34

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

burner
Copy link
Contributor

@burner burner commented Dec 18, 2020

No description provided.

To test the pubgrub implementation test data is needed.
It would be nice to use the real world data available from
code.dlang.org.
But reading in the multiple MB json dumb for unit testing
is likely more work than actually running the tests with that data.
Or at least hopefully that is the case.

The functionality contained in inlinetestdatagen will read in
the dump from code.dlang.org once and then generate a D source
file that contains all packages spelled out as struct constructor
calls.
A poor mans binary format so to speak.
the ignored things are printed
into a D file that builds up the same data.
When using reggae, at some build, linking in the object file
should be a lot faster than parsing the json every time.
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.

1 participant