Skip to content

Marginally improve v0 error granularity and testing. #54

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

Merged
merged 7 commits into from
Jul 26, 2021

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jul 26, 2021

Most of this PR is for the v0: move the (long) fuzzer-generated testcases into a separate file. commit, which uses a separate text file for the large symbols #49 added directly to src/v0.rs.

This may be a minor inconvenience, but having the huge strings mixed in with more feature-oriented tests didn't sit right with me (it doesn't help that VSCode fails to collapse anything containing multi-line strings like that, apparently, but that's just a VSCode bug at the end of the day).

Only the v0: replace control characters with . in fuzzer-generated testcases. commit changes the actual content of any of the fuzzer-generated symbols, and in an insignificant way (the recursion limit is still hit regardless).

The last commit (Rework size limiting to not "leak" fmt::Errors to the user.) didn't end up being needed for any of the fuzzer-generated testcases, so I would be fine with splitting it into a separate PR (I don't think it even depends on any other commit in this PR, it was just something I wanted to fix).

Overall I'm not too attached to specifics of this PR, and it may be a waste of time, but I wanted to try anyway.

@alexcrichton
Copy link
Member

Seems reasonable to me, thanks!

@alexcrichton alexcrichton merged commit 8a39eeb into rust-lang:main Jul 26, 2021
@eddyb eddyb deleted the testing-overhaul branch July 27, 2021 09:07
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