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

Write stress tests #20

Open
200sc opened this issue Dec 4, 2021 · 0 comments
Open

Write stress tests #20

200sc opened this issue Dec 4, 2021 · 0 comments

Comments

@200sc
Copy link
Owner

200sc commented Dec 4, 2021

Write a test harness which will repeatedly:

  1. Generate a random, arbitrarily large bebop.File structure
  2. Write this structure out to a bop file (with formatting tooling)
    2a. Randomly adjust this file in ways that maintain it as a valid bebop file (newlines and other whitespace, comments, etc)
  3. Read this structure back in
  4. Confirm that read structure matches the original structure
  5. Generate a go file from this new structure
  6. Confirm this go file compiles
  7. Confirm this go file contains a type definition for every type in the bebop definition

A harness like this would have detected #18 sooner.

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

No branches or pull requests

1 participant