Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,164 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,164
◇
Types & classes
721
↳
Endpoints
128
↓ 3 callers
Method
_draw_bits
(self, n)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1122
↓ 3 callers
Function
_draw_valid_bounds
(data, shape, max_dims, *, permit_none=True)
hypothesis/tests/numpy/test_gen_data.py:592
↓ 3 callers
Method
_ensure_thread
(self)
hypothesis/src/hypothesis/database.py:1179
↓ 3 callers
Function
_findall_from_root
(junit_xml, path)
hypothesis/tests/pytest/test_junit.py:37
↓ 3 callers
Function
_from_type
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1332
↓ 3 callers
Function
_hypothesis_parse_gufunc_signature
(signature)
hypothesis/src/hypothesis/extra/_array_helpers.py:301
↓ 3 callers
Method
_initialize_db
(self)
hypothesis/src/hypothesis/database.py:989
↓ 3 callers
Method
_note_deprecation
(self)
hypothesis/src/hypothesis/internal/observability.py:359
↓ 3 callers
Function
_position_to_float
Inverse of :func:`_float_to_position` on the integer-valued range. Always returns an integer-valued, non-negative float.
hypothesis/src/hypothesis/internal/conjecture/shrinking/floats.py:38
↓ 3 callers
Function
_rule_qualname
(f: Any)
hypothesis/src/hypothesis/stateful.py:745
↓ 3 callers
Function
_strip_typevars
(type_)
hypothesis/src/hypothesis/extra/ghostwriter.py:246
↓ 3 callers
Method
_transform
( self, # https://github.com/python/mypy/issues/7049, we're not writing `element` # an
hypothesis/src/hypothesis/strategies/_internal/strategies.py:713
↓ 3 callers
Function
_try_inline_lambda
Helper: run _try_inline_lambda and return the printer output, or None.
hypothesis/tests/cover/test_lambda_inlining.py:18
↓ 3 callers
Function
_valid_syntax_repr
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:667
↓ 3 callers
Function
_validate_enum_value
(cls: Any, value: object, *, name: str)
hypothesis/src/hypothesis/_settings.py:426
↓ 3 callers
Method
_value_path
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:476
↓ 3 callers
Function
a
(x)
hypothesis/tests/cover/test_health_checks.py:126
↓ 3 callers
Function
array_shapes
Return a strategy for array shapes (tuples of int >= 1). * ``min_dims`` is the smallest length that the generated shape can possess. * ``max_
hypothesis/src/hypothesis/extra/_array_helpers.py:93
↓ 3 callers
Function
assert_runs_to_output
(TestClass, output)
hypothesis/tests/nocover/test_stateful.py:41
↓ 3 callers
Function
badly_draw_lists
(draw, m=0)
hypothesis/tests/cover/test_composite.py:27
↓ 3 callers
Function
bits_to_bytes
The number of bytes required to represent an n-bit number. Equivalent to (n + 7) // 8, but slightly faster. This really is called enough times
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:516
↓ 3 callers
Function
bump_version_info
(version_info, release_type)
tooling/src/hypothesistooling/release.py:99
↓ 3 callers
Function
calc_label_from_callable
(f: Callable)
hypothesis/src/hypothesis/internal/conjecture/utils.py:39
↓ 3 callers
Method
cdf
(self, x: float)
hypothesis/src/hypothesis/internal/statistics.py:130
↓ 3 callers
Method
check_exhausted
Recalculates is_exhausted if necessary, and then returns it. A node is exhausted if: - Its transition is Conclusion or Kille
hypothesis/src/hypothesis/internal/conjecture/datatree.py:477
↓ 3 callers
Function
check_valid_integer
Checks that value is either unspecified, or a valid integer. Otherwise raises InvalidArgument.
hypothesis/src/hypothesis/internal/validation.py:41
↓ 3 callers
Function
choice_count
(choices: Sequence[ChoiceT | ChoiceTemplate])
hypothesis/src/hypothesis/internal/conjecture/engine.py:237
↓ 3 callers
Method
choices
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:942
↓ 3 callers
Method
conclude_test
( self, status: Status, interesting_origin: InterestingOrigin | None = None, )
hypothesis/src/hypothesis/internal/conjecture/data.py:1334
↓ 3 callers
Function
convert_kwargs
(name, kwargs)
hypothesis/src/hypothesis/strategies/_internal/random.py:356
↓ 3 callers
Function
current_version
()
tooling/src/hypothesistooling/release.py:345
↓ 3 callers
Function
datetime_does_not_exist
This function tests whether the given datetime can be round-tripped to and from UTC. It is an exact inverse of (and very similar to) the dateutil
hypothesis/src/hypothesis/strategies/_internal/datetime.py:56
↓ 3 callers
Method
debug
(self, *args: object)
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:78
↓ 3 callers
Function
deferred
A deferred strategy allows you to write a strategy that references other strategies that have not yet been defined. This allows for the easy d
hypothesis/src/hypothesis/strategies/_internal/core.py:2587
↓ 3 callers
Function
do_conversion_test
(f, args, kwargs)
hypothesis/tests/cover/test_reflection.py:43
↓ 3 callers
Function
draw_capped_multipart
( data, min_value, max_value, duration_names=DATENAMES + TIMENAMES )
hypothesis/src/hypothesis/strategies/_internal/datetime.py:102
↓ 3 callers
Method
draw_string
( self, intervals: IntervalSet, *, min_size: int = 0, max_size: int =
hypothesis/tests/conjecture/test_provider.py:146
↓ 3 callers
Function
e
(a, *args, **kwargs)
hypothesis/tests/common/arguments.py:17
↓ 3 callers
Function
elements_and_dtype
(elements, dtype, source=None)
hypothesis/src/hypothesis/extra/pandas/impl.py:57
↓ 3 callers
Method
exit_with
(self, reason: ExitReason)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1111
↓ 3 callers
Function
extract_bits
(x: int, /, width: int | None = None)
hypothesis/src/hypothesis/internal/compat.py:220
↓ 3 callers
Function
f
(x)
hypothesis/tests/nocover/test_regressions.py:29
↓ 3 callers
Function
f
()
hypothesis/tests/cover/test_random_module.py:237
↓ 3 callers
Function
f
(x)
hypothesis/tests/cover/test_reporting.py:37
↓ 3 callers
Function
f1
(n)
hypothesis/tests/nocover/test_randomization.py:36
↓ 3 callers
Method
fetch
Return an iterable over all values matching this key.
hypothesis/src/hypothesis/database.py:243
↓ 3 callers
Method
fetch
(self, key)
hypothesis/tests/cover/test_phases.py:64
↓ 3 callers
Function
float_to_lex
(f: float)
hypothesis/src/hypothesis/internal/conjecture/floats.py:193
↓ 3 callers
Function
forced_or_cached_value
(target: SearchStrategy)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:114
↓ 3 callers
Function
from_dtype
Creates a strategy which can generate any value of the given dtype. Compatible parameters are passed to the inferred strategy function while
hypothesis/src/hypothesis/extra/numpy.py:127
↓ 3 callers
Function
frozensets
This is identical to the sets function but instead returns frozensets.
hypothesis/src/hypothesis/strategies/_internal/core.py:439
↓ 3 callers
Function
gc_collect
()
hypothesis/tests/cover/test_random_module.py:34
↓ 3 callers
Function
get_recorded
(name, actual="")
hypothesis/tests/ghostwriter/test_expected_output.py:56
↓ 3 callers
Function
get_reports
(file_contents, *, testdir)
hypothesis/tests/nocover/test_scrutineer.py:56
↓ 3 callers
Function
has_a_non_zero_byte
(x)
hypothesis/tests/nocover/test_database_usage.py:31
↓ 3 callers
Function
has_release
()
tooling/src/hypothesistooling/release.py:63
↓ 3 callers
Method
index_above
(self, value: int)
hypothesis/src/hypothesis/internal/intervalsets.py:112
↓ 3 callers
Method
index_from_char_in_shrink_order
Inverse of char_in_shrink_order.
hypothesis/src/hypothesis/internal/intervalsets.py:292
↓ 3 callers
Method
initial_coarse_reduction
Performs some preliminary reductions that should not be repeated as part of the main shrink passes. The main reason why these can't b
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:695
↓ 3 callers
Function
is_annotated_type
(thing: object)
hypothesis/src/hypothesis/strategies/_internal/types.py:406
↓ 3 callers
Function
is_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:576
↓ 3 callers
Function
is_in_ci
()
hypothesis/src/hypothesis/_settings.py:409
↓ 3 callers
Function
key
Prefer known-FTZ modules, then top-level packages, then alphabetical.
hypothesis/src/_hypothesis_ftz_detector.py:107
↓ 3 callers
Function
lex_to_float
(i: int)
hypothesis/src/hypothesis/internal/conjecture/floats.py:176
↓ 3 callers
Function
make_report
(explanations, *, cap_lines_at=5)
hypothesis/src/hypothesis/internal/scrutineer.py:280
↓ 3 callers
Method
mark_changed
(self, i)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1107
↓ 3 callers
Function
nodes_to_json
(nodes: tuple[ChoiceNode, ...])
hypothesis/src/hypothesis/internal/observability.py:160
↓ 3 callers
Function
non_covering_examples
(database)
hypothesis/tests/common/utils.py:150
↓ 3 callers
Method
note
(self, value: Any)
hypothesis/src/hypothesis/internal/conjecture/data.py:1161
↓ 3 callers
Function
numeric_bounds_from_validators
( field, min_value=float("-inf"), max_value=float("inf") )
hypothesis/src/hypothesis/extra/django/_fields.py:42
↓ 3 callers
Method
pareto_optimise
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1550
↓ 3 callers
Function
parse_release
(contents)
whole_repo_tests/whole_repo/test_release_management.py:16
↓ 3 callers
Function
prefix_selection_order
Select choices starting from ``prefix```, preferring to move left then wrapping around to the right.
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:18
↓ 3 callers
Function
random_selection_order
Select choices uniformly at random.
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:38
↓ 3 callers
Method
realize
Called whenever hypothesis requires a concrete (non-symbolic) value from a potentially symbolic value. Hypothesis will not check that
hypothesis/src/hypothesis/internal/conjecture/providers.py:599
↓ 3 callers
Method
record_call
( self, obj: object, func: object, *, args: Sequence[object],
hypothesis/src/hypothesis/control.py:191
↓ 3 callers
Function
recursive
base: A strategy to start from. extend: A function which takes a strategy and returns a new strategy. min_leaves: The minimum number of elem
hypothesis/src/hypothesis/strategies/_internal/core.py:1931
↓ 3 callers
Function
recursive_property
Handle properties which may be mutually recursive among a set of strategies. These are essentially lazily cached properties, with the ability
hypothesis/src/hypothesis/strategies/_internal/strategies.py:83
↓ 3 callers
Function
regex_strategy
( regex: AnyStr | Pattern[AnyStr], fullmatch: bool, *, alphabet: SearchStrategy | None, _t
hypothesis/src/hypothesis/strategies/_internal/regex.py:259
↓ 3 callers
Function
required_args
Return a set of names of required args to target that were not supplied in args or kwargs. This is used in builds() to determine which argume
hypothesis/src/hypothesis/internal/reflection.py:174
↓ 3 callers
Function
restore_profile
()
hypothesis/tests/cover/test_settings.py:67
↓ 3 callers
Function
rude
(x)
hypothesis/tests/cover/test_flakiness.py:64
↓ 3 callers
Function
run
(command, *, cwd=None, input=None)
hypothesis/tests/codemods/test_codemod_cli.py:35
↓ 3 callers
Function
safe_draw
Set up just enough of the Hypothesis machinery to use draw on a strategy.
hypothesis/tests/nocover/test_precise_shrinking.py:76
↓ 3 callers
Method
save
Save ``value`` under ``key``. If ``value`` is already present in ``key``, silently do nothing.
hypothesis/src/hypothesis/database.py:235
↓ 3 callers
Method
save
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:734
↓ 3 callers
Function
shortlex
(s)
hypothesis/src/hypothesis/internal/conjecture/engine.py:112
↓ 3 callers
Function
skip_exceptions_to_reraise
Return a tuple of exceptions meaning 'skip this test', to re-raise. This is intended to cover most common test runners; if you would like ano
hypothesis/src/hypothesis/core.py:772
↓ 3 callers
Function
stack_depth_of_caller
Get stack size for caller's frame. From https://stackoverflow.com/a/47956089/9297601 , this is a simple but much faster alternative to `len(i
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:279
↓ 3 callers
Function
stdtrit
Inverse Student's t CDF (quantile) for integer df >= 1. df ∈ {1, 2}: closed-form analytic quantile (Shaw 2006, eq 35-36). df >= 3: bracketed
hypothesis/src/hypothesis/internal/statistics.py:63
↓ 3 callers
Function
stuff
()
hypothesis/tests/nocover/test_database_usage.py:53
↓ 3 callers
Method
sub_key
(self, sub_key: bytes | None)
hypothesis/src/hypothesis/internal/conjecture/engine.py:931
↓ 3 callers
Function
test
(seq)
hypothesis/tests/numpy/test_from_type.py:120
↓ 3 callers
Function
test
(*, x, y)
hypothesis/tests/cover/test_lookup_py38.py:169
↓ 3 callers
Function
test
(data)
hypothesis/tests/cover/test_arbitrary_data.py:26
↓ 3 callers
Function
test
(x)
hypothesis/tests/cover/test_explicit_examples.py:198
↓ 3 callers
Function
test
(x)
hypothesis/tests/cover/test_flakiness.py:153
↓ 3 callers
Function
test_blah
(x)
hypothesis/tests/cover/test_testdecorators.py:326
↓ 3 callers
Function
test_fails
(x, y)
hypothesis/tests/cover/test_observability.py:134
↓ 3 callers
Function
test_it
(a, b)
hypothesis/tests/cover/test_direct_strategies.py:623
← previous
next →
401–500 of 6,164, ranked by callers