Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,291 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,291
◇
Types & classes
723
↳
Endpoints
134
↓ 1 callers
Method
reduce_each_alternative
This is a pass that is designed to rerandomise use of the one_of strategy or things that look like it, in order to try to move from la
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:736
↓ 1 callers
Function
register_for
(field_type)
hypothesis/src/hypothesis/extra/django/_fields.py:113
↓ 1 callers
Function
register_type_strategy
Add an entry to the global type-to-strategy lookup. This lookup is used in :func:`~hypothesis.strategies.builds` and |@given|. :func:`~h
hypothesis/src/hypothesis/strategies/_internal/core.py:2503
↓ 1 callers
Function
remove_consecutive_newlines_in_rst
(path: Path)
tooling/src/hypothesistooling/__main__.py:232
↓ 1 callers
Method
replay_choices
Called when Hypothesis has discovered a |choice sequence| which the provider may wish to enqueue to replay under its own instrumentat
hypothesis/src/hypothesis/internal/conjecture/providers.py:618
↓ 1 callers
Function
reqs_kwonly
(*, a, b)
hypothesis/tests/cover/test_annotations.py:61
↓ 1 callers
Function
requires_arg
Similar to the enum.Enum.__call__ method.
hypothesis/tests/cover/test_direct_strategies.py:571
↓ 1 callers
Function
resolve_strategies
(typ)
hypothesis/src/hypothesis/strategies/_internal/types.py:1351
↓ 1 callers
Function
restore_all
()
hypothesis/src/hypothesis/internal/entropy.py:228
↓ 1 callers
Function
result
(draw)
hypothesis/src/hypothesis/extra/pandas/impl.py:324
↓ 1 callers
Function
reuse_group
(draw, group_name)
hypothesis/src/hypothesis/strategies/_internal/regex.py:84
↓ 1 callers
Function
reverse64
Reverse a 64-bit integer bitwise. We do this by breaking it up into 8 bytes. The 64-bit integer is then the concatenation of each of these by
hypothesis/src/hypothesis/internal/conjecture/floats.py:131
↓ 1 callers
Function
reverse_bits
(x: int, n: int)
hypothesis/src/hypothesis/internal/conjecture/floats.py:158
↓ 1 callers
Function
row
()
hypothesis/src/hypothesis/extra/pandas/impl.py:543
↓ 1 callers
Function
rows_only
(draw)
hypothesis/src/hypothesis/extra/pandas/impl.py:540
↓ 1 callers
Method
rule_label
(self, name: str)
hypothesis/src/hypothesis/extra/lark.py:178
↓ 1 callers
Function
run
()
hypothesis/src/hypothesis/entry_points.py:22
↓ 1 callers
Method
run
(self)
hypothesis/src/hypothesis/internal/conjecture/optimiser.py:52
↓ 1 callers
Method
run_engine
Run the test function many times, on database input and generated input, using the Conjecture engine.
hypothesis/src/hypothesis/core.py:1407
↓ 1 callers
Function
run_in_process
(fn: Callable[..., FTZCulprits], *args: object)
hypothesis/src/_hypothesis_ftz_detector.py:51
↓ 1 callers
Function
run_locally
()
hypothesis/tests/nocover/test_cacheable.py:60
↓ 1 callers
Method
run_node_program
Node programs are a mini-DSL for node rewriting, defined as a sequence of commands that can be run at some index into the nodes Comma
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1876
↓ 1 callers
Method
run_step
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/ordering.py:40
↓ 1 callers
Method
run_step
Run a single step of the main shrink loop, attempting to improve the current value.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:177
↓ 1 callers
Function
run_test
()
hypothesis/tests/cover/test_testdecorators.py:355
↓ 1 callers
Function
run_to_data
(f)
hypothesis/tests/conjecture/common.py:55
↓ 1 callers
Function
run_to_notes
(TestClass)
hypothesis/tests/nocover/test_stateful.py:29
↓ 1 callers
Method
save
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:1209
↓ 1 callers
Method
save
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:461
↓ 1 callers
Function
save_patch
(patch: str, *, slug: str = "")
hypothesis/src/hypothesis/extra/_patching.py:335
↓ 1 callers
Function
score
(enabled)
hypothesis/tests/nocover/test_targeting.py:66
↓ 1 callers
Function
seed
Seed the randomness for this test. ``seed`` may be any hashable object. No exact meaning for ``seed`` is provided other than that for a
hypothesis/src/hypothesis/core.py:342
↓ 1 callers
Function
series
Provides a strategy for producing a :class:`pandas.Series`. Arguments: * elements: a strategy that will be used to generate the individual
hypothesis/src/hypothesis/extra/pandas/impl.py:257
↓ 1 callers
Method
set_element
(self, val, result, idx, *, fill=False)
hypothesis/src/hypothesis/extra/numpy.py:276
↓ 1 callers
Method
setstate
(self, state)
hypothesis/src/hypothesis/strategies/_internal/random.py:349
↓ 1 callers
Method
setstate
(self, state)
hypothesis/src/hypothesis/strategies/_internal/random.py:425
↓ 1 callers
Function
setup
(app)
hypothesis/docs/conf.py:111
↓ 1 callers
Method
setup
Runs initial setup code. Convenience function for children that doesn't require messing with the signature of init.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:52
↓ 1 callers
Method
setup
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/floats.py:47
↓ 1 callers
Function
setup_pyodide
()
tooling/src/hypothesistooling/__main__.py:881
↓ 1 callers
Method
shift_right
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/integer.py:48
↓ 1 callers
Method
short_circuit
Possibly attempt to do some shrinking. If this returns True, the ``run`` method will terminate early without doing any more work.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:164
↓ 1 callers
Method
shrink_by_multiples
(self, k)
hypothesis/src/hypothesis/internal/conjecture/shrinking/integer.py:67
↓ 1 callers
Function
sig_of
(name)
hypothesis/src/hypothesis/strategies/_internal/random.py:113
↓ 1 callers
Function
simplest_failure
(x)
hypothesis/tests/cover/test_traceback_elision.py:25
↓ 1 callers
Method
size
(self, tree)
hypothesis/tests/nocover/test_stateful.py:71
↓ 1 callers
Function
slow_once
(i)
hypothesis/tests/cover/test_deadline.py:119
↓ 1 callers
Function
slow_shrinker
()
hypothesis/tests/conjecture/test_engine.py:108
↓ 1 callers
Method
sort_regions
Guarantees that for each i we have tried to swap index i with index i + 1. This uses an adaptive algorithm that works by sorting cont
hypothesis/src/hypothesis/internal/conjecture/shrinking/ordering.py:44
↓ 1 callers
Method
sort_regions_with_gaps
Guarantees that for each i we have tried to swap index i with index i + 2. This uses an adaptive algorithm that works by sorting cont
hypothesis/src/hypothesis/internal/conjecture/shrinking/ordering.py:64
↓ 1 callers
Method
span_end
Marks the end of a semantically meaningful span of choices. ``discard`` is ``True`` when the draw was filtered out or otherwise marked
hypothesis/src/hypothesis/internal/conjecture/providers.py:745
↓ 1 callers
Method
span_start
Marks the beginning of a semantically meaningful span of choices. Spans are a depth-first tree structure. A span is opened by a call to
hypothesis/src/hypothesis/internal/conjecture/providers.py:687
↓ 1 callers
Method
split_at
Splits the tree so that it can incorporate a decision at the draw call corresponding to the node at position i. Raises Flaky
hypothesis/src/hypothesis/internal/conjecture/datatree.py:438
↓ 1 callers
Method
st_classmethod_then_composite
(draw, cls)
hypothesis/tests/cover/test_composite.py:150
↓ 1 callers
Method
st_composite_method
(draw, self)
hypothesis/tests/cover/test_composite.py:169
↓ 1 callers
Method
st_composite_then_classmethod
(draw, cls)
hypothesis/tests/cover/test_composite.py:155
↓ 1 callers
Method
st_composite_then_staticmethod
(draw)
hypothesis/tests/cover/test_composite.py:165
↓ 1 callers
Method
st_staticmethod_then_composite
(draw)
hypothesis/tests/cover/test_composite.py:160
↓ 1 callers
Function
standard_tox_task
(name, py=ci_version_python)
tooling/src/hypothesistooling/__main__.py:819
↓ 1 callers
Method
start_span
Called at the start of each span, with ``i`` the index of the span and ``label_index`` the index of its label in ``self.spans.labels``
hypothesis/src/hypothesis/internal/conjecture/data.py:286
↓ 1 callers
Method
start_span
(self, i: int, label_index: int)
hypothesis/src/hypothesis/internal/conjecture/data.py:399
↓ 1 callers
Function
state_for_seed
(data, seed)
hypothesis/src/hypothesis/strategies/_internal/random.py:155
↓ 1 callers
Method
step
(self, shrink_pass: ShrinkPass, *, random_order: bool = False)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:832
↓ 1 callers
Method
stop_span
Called at the end of each span, with ``i`` the index of the span and ``discarded`` being ``True`` if ``stop_span`` was called with ``d
hypothesis/src/hypothesis/internal/conjecture/data.py:291
↓ 1 callers
Method
stop_span
(self, *, discard: bool)
hypothesis/src/hypothesis/internal/conjecture/data.py:345
↓ 1 callers
Function
strat_one
(draw)
hypothesis/tests/cover/test_regressions.py:38
↓ 1 callers
Function
strat_two
(draw)
hypothesis/tests/cover/test_regressions.py:43
↓ 1 callers
Function
strip_trailing_whitespace
Patches have whitespace-only lines; strip that out.
hypothesis/tests/patching/test_patching.py:63
↓ 1 callers
Function
stuff
(*args)
hypothesis/tests/cover/test_composite.py:95
↓ 1 callers
Method
swap
Swap the elements ls[i], ls[j].
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:227
↓ 1 callers
Function
t
()
hypothesis/tests/conjecture/test_shrinker.py:427
↓ 1 callers
Function
t
(s)
hypothesis/tests/cover/test_explicit_examples.py:335
↓ 1 callers
Function
tags
()
tooling/src/hypothesistooling/git.py:17
↓ 1 callers
Function
task
(if_changed=())
tooling/src/hypothesistooling/__main__.py:73
↓ 1 callers
Function
task1
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:156
↓ 1 callers
Function
task2
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:159
↓ 1 callers
Function
task_invalid_argument
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:117
↓ 1 callers
Function
task_stoptest
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:112
↓ 1 callers
Function
tasks
Print a list of all task names supported by the build system.
tooling/src/hypothesistooling/__main__.py:1064
↓ 1 callers
Method
teardown
Called after a run has finished executing to clean up any necessary state. Does nothing by default.
hypothesis/src/hypothesis/stateful.py:490
↓ 1 callers
Method
teardown
(self)
hypothesis/tests/nocover/test_strategy_state.py:49
↓ 1 callers
Function
temp_register_profile
(name, parent, **kwargs)
hypothesis/tests/cover/test_settings.py:54
↓ 1 callers
Function
test
(n)
hypothesis/tests/crosshair/test_crosshair.py:215
↓ 1 callers
Function
test
(value)
hypothesis/tests/conjecture/test_provider.py:200
↓ 1 callers
Function
test
(i)
hypothesis/tests/nocover/test_database_usage.py:153
↓ 1 callers
Function
test
(x)
hypothesis/tests/nocover/test_integer_ranges.py:24
↓ 1 callers
Function
test
(x)
hypothesis/tests/nocover/test_deferred_errors.py:37
↓ 1 callers
Function
test
(ls)
hypothesis/tests/nocover/test_targeting.py:75
↓ 1 callers
Function
test
(rnd, i)
hypothesis/tests/nocover/test_limits.py:19
↓ 1 callers
Function
test
(x)
hypothesis/tests/nocover/test_modify_inner_test.py:99
↓ 1 callers
Function
test
(x)
hypothesis/tests/array_api/test_arrays.py:259
↓ 1 callers
Function
test
(i)
hypothesis/tests/cover/test_debug_information.py:26
↓ 1 callers
Function
test
(s)
hypothesis/tests/cover/test_fuzz_one_input.py:39
↓ 1 callers
Function
test
(s)
hypothesis/tests/cover/test_regex.py:510
↓ 1 callers
Function
test
(d)
hypothesis/tests/cover/test_error_in_draw.py:22
↓ 1 callers
Function
test
(f)
hypothesis/tests/cover/test_float_nastiness.py:127
↓ 1 callers
Function
test
(e)
hypothesis/tests/cover/test_deferred_strategies.py:101
↓ 1 callers
Function
test
(x, y)
hypothesis/tests/cover/test_failing_test_case_output.py:27
↓ 1 callers
Function
test
(v)
hypothesis/tests/cover/test_regressions.py:60
↓ 1 callers
Method
test
(self, i)
hypothesis/tests/nocover/test_cacheable.py:64
← previous
next →
1,301–1,400 of 6,291, ranked by callers