pschanely/CrossHair
소개
테스트와 타입 시스템의 경계를 흐리는 Python 분석 도구입니다.
개발 도구측정된 스타 증가
- in 24h
- +3
- in 7 days
- +8
- in 15 days
- +20
- in 1 month
- +37
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
CrossHair
An analysis tool for Python that blurs the line between testing and type systems.
THE LATEST NEWS: Python's most popular property-based testing tool, Hypothesis, now supports running CrossHair as an optional backend!
If you have a function with type annotations and add a contract in a supported syntax, CrossHair will attempt to find counterexamples for you:

CrossHair works by repeatedly calling your functions with symbolic inputs. It uses an SMT solver (a kind of theorem prover) to explore viable execution paths and find counterexamples for you. This is not a new idea; a Python approach was first described in this paper. However, to my knowledge, CrossHair is the most complete implementation: it can use symbolic reasoning for the built-in types, user-defined classes, and much of the standard library.
Try CrossHair right now, in your browser, at crosshair-web.org!
CrossHair has IDE integrations for VS Code, PyCharm, and more.
Finally, CrossHair can do more than check contracts. It can also generate unit tests and find behavioral differences between functions.
Want to help? Sign up for email or RSS updates. Star ⭐️ the repository. There are other ways to help too.
Documentation
관련 프로젝트 살펴보기
불러오는 중…