-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fuzz all pure functions #3556
Comments
Just to make sure I understand correctly, would this be an appropriate rephrase? |
More like "Fuzz all pure functions, taking care to also test the functions marked ImpurePreviewable". So what I'm thinking is:
|
Here's an analysis of all Dark fns, noting which ones can/can't be fuzztested. I gathered the list by writing a a variant of Some notes:
If there are any fns in that document out of place, please let me know as I'm working my way through them. Edit: I hadn't previously studied the |
"Pure" doesn't actually mean pure, it means "this can be run in the editor via js_of_ocaml". Some things were impure in the OCaml version as they were not runnable in the editor, mostly because of their use of C/native bindings. "ImpurePreviewable" means "this can only run on the server but is actually pure" (eg |
These look right. The DB ones could possibly be fuzztested:
However, probably a lower priority than other stuff.
Agreed.
These should remain the same as OCaml until we've removed OCaml, so I'd add a CLEANUP comment to them instead. If you're using "change them to
Only if it doesn't change their behaviour with respect to OCaml. Otherwise I'd add a CLEANUP to do it. |
Closing stale PR #3654 now, but wanted to extract two threads/todos so I don't forget: |
Should we declare this done? |
Yeah I'd say so. Always more fuzztesting to do, but separate from this specific scope. |
Mark LibJwt, x509 and crypto functions as ImpurePreviewable to run in the fuzzer
The text was updated successfully, but these errors were encountered: