Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,609 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,609
◇
Types & classes
739
↳
Endpoints
139
↓ 3 callers
Method
incorporate_test_data
Takes a ConjectureData or Overrun object updates the current shrink_target if this data represents an improvement over it.
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:421
↓ 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:717
↓ 3 callers
Function
is_annotated_type
(thing: object)
hypothesis/src/hypothesis/strategies/_internal/types.py:428
↓ 3 callers
Function
is_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:591
↓ 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
Method
mark_changed
(self, i)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1129
↓ 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:156
↓ 3 callers
Function
non_roundtrip_chars
(codec)
hypothesis/tests/nocover/test_characters.py:60
↓ 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:1626
↓ 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:187
↓ 3 callers
Function
record_optimise_passes
Record runner.valid_test_cases at the start of each optimisation pass.
hypothesis/tests/conjecture/test_optimiser.py:221
↓ 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:1957
↓ 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:86
↓ 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
register_field_strategy
Add an entry to the global field-to-strategy lookup used by :func:`~hypothesis.extra.django.from_field`. ``field_type`` must be a subtype of
hypothesis/src/hypothesis/extra/django/_fields.py:340
↓ 3 callers
Function
replace_tzinfo
(value, timezone)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:119
↓ 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
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
scheduler_state_runner
A runner in the state just after an optimisation pass has finished.
hypothesis/tests/conjecture/test_optimiser.py:259
↓ 3 callers
Function
shortlex
(s)
hypothesis/src/hypothesis/internal/conjecture/engine.py:113
↓ 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:776
↓ 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:308
↓ 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:955
↓ 3 callers
Function
test
(seq)
hypothesis/tests/numpy/test_from_type.py:136
↓ 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:325
↓ 3 callers
Function
test_fails
(x, y)
hypothesis/tests/cover/test_observability.py:136
↓ 3 callers
Function
test_it
(a, b)
hypothesis/tests/cover/test_direct_strategies.py:628
↓ 3 callers
Function
test_not_long_str
(x)
hypothesis/tests/cover/test_explicit_examples.py:90
↓ 3 callers
Function
tool_path
(name)
tooling/src/hypothesistooling/scripts.py:62
↓ 3 callers
Function
try_issubclass
(thing, superclass)
hypothesis/src/hypothesis/strategies/_internal/types.py:302
↓ 3 callers
Method
update_count
(self, *, condition: bool)
hypothesis/src/hypothesis/internal/observability.py:78
↓ 3 callers
Function
validate_deprecation
()
hypothesis/tests/common/utils.py:119
↓ 3 callers
Function
values
(draw)
hypothesis/tests/conjecture/test_choice.py:591
↓ 3 callers
Function
with_observability_callback
A simple context manager which calls |add_observability_callback| on ``f`` when it enters and |remove_observability_callback| on ``f`` when i
hypothesis/src/hypothesis/internal/observability.py:332
↓ 2 callers
Method
__entry_was_accessed
(self, i: int)
hypothesis/src/hypothesis/internal/cache.py:212
↓ 2 callers
Method
__init__
( self, name: str, *, consume: bool = False, draw_references: bool = F
hypothesis/src/hypothesis/stateful.py:636
↓ 2 callers
Method
__init__
(self, seed, note_method_calls)
hypothesis/src/hypothesis/strategies/_internal/random.py:392
↓ 2 callers
Method
__init__
(self, conjecturedata: Optional["ConjectureData"], /)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1279
↓ 2 callers
Method
__init__
(self, poison_chance)
hypothesis/tests/quality/test_poisoned_lists.py:26
↓ 2 callers
Method
__init__
(self)
hypothesis/tests/cover/test_database_backend.py:799
↓ 2 callers
Function
__python_executable
(version)
tooling/src/hypothesistooling/installers.py:44
↓ 2 callers
Method
__update_exhausted
(self)
hypothesis/src/hypothesis/internal/conjecture/datatree.py:1196
↓ 2 callers
Method
__with_transform
(self, name, f)
hypothesis/src/hypothesis/stateful.py:680
↓ 2 callers
Method
__with_transform
(self, method, fn)
hypothesis/src/hypothesis/strategies/_internal/lazy.py:128
↓ 2 callers
Method
_add_constant
(self, value: object)
hypothesis/src/hypothesis/internal/constants_ast.py:112
↓ 2 callers
Function
_any_hypothesis_option
(config)
hypothesis/src/_hypothesis_pytestplugin.py:133
↓ 2 callers
Method
_archive_directory_db
(self)
hypothesis/tests/cover/test_database_backend.py:443
↓ 2 callers
Method
_array_or_list
( code: str, contents: Iterable[int] )
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:118
↓ 2 callers
Method
_base_repr
(self)
hypothesis/src/hypothesis/stateful.py:694
↓ 2 callers
Function
_boolean_dtypes
Return a strategy for just the boolean dtype object.
hypothesis/src/hypothesis/extra/array_api.py:598
↓ 2 callers
Function
_calc_p_continue
Return the p_continue which will generate the desired average size.
hypothesis/src/hypothesis/internal/conjecture/utils.py:382
↓ 2 callers
Function
_calling_function_location
(what: str, frame: Any)
hypothesis/src/hypothesis/control.py:37
↓ 2 callers
Function
_collection_constraints
( draw: DrawFn, *, forced: Any | None, use_min_size: bool | None = None, use_max_size: boo
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:167
↓ 2 callers
Function
_complex_dtypes
Return a strategy for complex dtype objects. ``sizes`` contains the complex sizes in bits, defaulting to ``(64, 128)`` which covers all valid
hypothesis/src/hypothesis/extra/array_api.py:709
↓ 2 callers
Function
_constants_file_str
(constants: Constants)
hypothesis/src/hypothesis/internal/constants_ast.py:196
↓ 2 callers
Function
_constants_from_source
(source: str | bytes, *, limit: bool)
hypothesis/src/hypothesis/internal/constants_ast.py:182
↓ 2 callers
Function
_convert_targets
Single validator and converter for target arguments.
hypothesis/src/hypothesis/stateful.py:761
↓ 2 callers
Function
_count_leaves
(tree)
hypothesis/tests/cover/test_recursive.py:127
↓ 2 callers
Function
_dedupe_exceptions
(exc: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:151
↓ 2 callers
Method
_deliver_information_message
( self, *, type: InfoObservationType, title: str, content: str | dict )
hypothesis/src/hypothesis/core.py:1389
↓ 2 callers
Method
_draw_collection
(self, min_size, max_size, *, alphabet_size)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1207
↓ 2 callers
Method
_ensure_directory_exists
(self)
hypothesis/src/hypothesis/database.py:452
↓ 2 callers
Function
_exception_string
(except_: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:179
↓ 2 callers
Method
_expect_delete
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:605
↓ 2 callers
Method
_expect_event
(self, event_type, args)
hypothesis/tests/cover/test_database_backend.py:601
↓ 2 callers
Method
_expect_save
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:610
↓ 2 callers
Function
_floating_dtypes
Return a strategy for real-valued floating-point dtype objects. ``sizes`` contains the floating-point sizes in bits, defaulting to ``(32, 64)
hypothesis/src/hypothesis/extra/array_api.py:691
↓ 2 callers
Function
_from_type_deferred
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1332
↓ 2 callers
Method
_get_children_cache
( self, choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *, key: ChoiceT )
hypothesis/src/hypothesis/internal/conjecture/datatree.py:900
↓ 2 callers
Function
_get_constraints
(args: tuple[Any, ...])
hypothesis/src/hypothesis/strategies/_internal/types.py:450
↓ 2 callers
Function
_get_local_constants
()
hypothesis/src/hypothesis/internal/conjecture/providers.py:325
↓ 2 callers
Function
_get_module_helper
(obj)
hypothesis/src/hypothesis/extra/ghostwriter.py:733
↓ 2 callers
Function
_get_strategies
Return a dict of strategies for the union of arguments to `funcs`. If `pass_result_to_next_func` is True, assume that the result of each function
hypothesis/src/hypothesis/extra/ghostwriter.py:536
↓ 2 callers
Function
_get_varnames
(funcs)
hypothesis/src/hypothesis/extra/ghostwriter.py:1549
↓ 2 callers
Function
_gitignore_storage_dir_script
(*, home_dir=None)
hypothesis/tests/cover/test_filestorage.py:56
↓ 2 callers
Function
_has_surrogate
(choice)
hypothesis/tests/cover/test_observability.py:490
↓ 2 callers
Function
_imports_for_strategy
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:617
↓ 2 callers
Method
_int_value
(value: "Verbosity")
hypothesis/src/hypothesis/_settings.py:118
↓ 2 callers
Function
_integer_dtypes
Return a strategy for signed integer dtype objects. ``sizes`` contains the signed integer sizes in bits, defaulting to ``(8, 16, 32, 64)`` wh
hypothesis/src/hypothesis/extra/array_api.py:653
↓ 2 callers
Method
_invert
(self, value: Any)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:908
← previous
next →
501–600 of 6,609, ranked by callers