Comments (2)
Thank you for the quick response and the pointer on how to go about implementing it.
I'll put it in my own personal backlog, though I don't suppose that PR is happening this week.
from hypothesmith.
Hi Julian! This is definitely something that I'd like to work, but as the readme says
This is definitely pre-alpha, but if you want to play with it feel free! You can even keep the shiny pieces when - not if - it breaks.
so I think the answer is just that we're currently defaulting to a pretty poor/narrow automatically-inferred strategy for FunctionDef
nodes. The obvious solution is just to add a hand-written strategy to https://github.com/Zac-HD/hypothesmith/blob/master/src/hypothesmith/cst.py - want to open a PR?
Unfortunately hypothesmith
is currently a tier-three oss project for me - priority is something like {work, phd}, {hypothesis}, {hypofuzz, shed, pytest, flake8-trio}, {hypothesmith, hypothesis-jsonschema, ......}, so I'm unlikely to write it myself any time soon; very happy to review and help with PRs though!
from hypothesmith.
Related Issues (20)
- FailedHealthCheck when generating eval_input
- Python3.9 related bug. HOT 2
- New failure on Python3.9 HOT 11
- No git version tags HOT 4
- Generated programs are missing spaces HOT 17
- Failure on py3.9: SystemError: Negative size passed to PyUnicode_New HOT 7
- Generate names which collide when NFKC-normalized
- Register a strategy for `libcst.MatchSingleton` HOT 2
- libcst version requirement should be updated HOT 1
- Grammar definition file handling is broken HOT 1
- hypothesmith on PyPI breaks with FileNotFoundError when importing from_grammar or from_node HOT 3
- Generate programs matching a syntatic pattern... using `libcst` matchers
- can pysource-codegen be used to generate code with hypothesmith HOT 3
- hypothesmith-inspired compiler fuzzer used to validate PEP 709 implementation HOT 1
- Broken with `hypothesis==6.84.0` HOT 2
- Use `from_regex(..., alphabet=st.characters(min_codepoint=1, codec="utf-8"))` to reduce rejection sampling HOT 1
- 0.3.1: no git tag and no commits HOT 3
- Cannot import on 3.13, importlib.resources.read_text is removed HOT 1
- 0.3.3: pytest fails in `tests/test_syntactic.py::test_black_autoformatter_from_grammar` unit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hypothesmith.