Debian Codegraph @

hypothesis-python/docs/reference/internals.rst

raw
1 Hypothesis internals
2 ====================
3
4 .. warning::
5
6 This page documents internal Hypothesis interfaces. Some are fairly stable, while others are still experimental. In either case, they are not subject to our standard :ref:`deprecation policy <deprecation-policy>`, and we might make breaking changes in minor or patch releases.
7
8 This page is intended for people building tools, libraries, or research on top of Hypothesis. If that includes you, please get in touch! We'd love to hear what you're doing, or explore more stable ways to support your use-case.
9
10 .. _alternative-backends-internals:
11
12 Alternative backends
13 --------------------
14
15 .. seealso::
16
17 See also the user-facing :ref:`alternative-backends` documentation.
18
19 .. autoclass:: hypothesis.internal.conjecture.providers.PrimitiveProvider
20 :members:
21
22 .. autodata:: hypothesis.internal.conjecture.providers.AVAILABLE_PROVIDERS
23 :no-value:
24
25 .. autofunction:: hypothesis.internal.conjecture.provider_conformance.run_conformance_test
26
27 .. autoclass:: hypothesis.errors.BackendCannotProceed
28 .. autoclass:: hypothesis.internal.intervalsets.IntervalSet
29
30 Observability
31 -------------
32
33 .. autofunction:: hypothesis.internal.observability.add_observability_callback
34 .. autofunction:: hypothesis.internal.observability.remove_observability_callback
35 .. autofunction:: hypothesis.internal.observability.with_observability_callback
36 .. autofunction:: hypothesis.internal.observability.observability_enabled
37
38 .. autodata:: hypothesis.internal.observability.TESTCASE_CALLBACKS
39 .. autodata:: hypothesis.internal.observability.OBSERVABILITY_COLLECT_COVERAGE
40 .. autodata:: hypothesis.internal.observability.OBSERVABILITY_CHOICES
41
42 Engine constants
43 ----------------
44
45 We pick reasonable values for these constants, but if you must, you can monkeypatch them. (Hypothesis is not responsible for any performance degradation that may result).
46
47 .. autodata:: hypothesis.internal.conjecture.engine.MAX_SHRINKS
48 .. autodata:: hypothesis.internal.conjecture.engine.MAX_SHRINKING_SECONDS
49 .. autodata:: hypothesis.internal.conjecture.engine.BUFFER_SIZE