Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,650 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,650
◇
Types & classes
740
↳
Endpoints
139
↓ 2 callers
Method
draw_string
( self, value: str, *, constraints: StringConstraints, was_forced: bool )
hypothesis/src/hypothesis/internal/conjecture/data.py:614
↓ 2 callers
Method
draw_symbol
( self, data: ConjectureData, symbol: Symbol, draw_state: list[str], )
hypothesis/src/hypothesis/extra/lark.py:186
↓ 2 callers
Function
dtype_for_elements_strategy
(s)
hypothesis/src/hypothesis/extra/pandas/impl.py:53
↓ 2 callers
Function
encode_failure
(choices: Iterable[ChoiceT])
hypothesis/src/hypothesis/core.py:422
↓ 2 callers
Method
end
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:242
↓ 2 callers
Function
endswith
(l1: Sequence[T], l2: Sequence[T])
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:539
↓ 2 callers
Method
enter_context
(self, new_limit: int, *, current_limit: int)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:360
↓ 2 callers
Function
escape_unicode_characters
(s: str)
hypothesis/src/hypothesis/internal/compat.py:95
↓ 2 callers
Function
everything_except
Recipe copied from the docstring of ``from_type``
hypothesis/tests/nocover/test_from_type_recipe.py:26
↓ 2 callers
Method
exit_context
(self, new_limit: int, *, check: bool = True)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:371
↓ 2 callers
Function
explanatory_lines
(traces, settings)
hypothesis/src/hypothesis/internal/scrutineer.py:297
↓ 2 callers
Function
f
(n)
hypothesis/tests/nocover/test_integer_ranges.py:51
↓ 2 callers
Function
f16_bits_from_f64
Narrow an `f64` to IEEE 754 half-precision, returning the raw 16 bits. Round-to-nearest-even; finite values too large for the format become infinity (
hypothesis/rust/src/internal/floats.rs:21
↓ 2 callers
Function
f2
()
hypothesis/tests/cover/test_reflection.py:737
↓ 2 callers
Method
fail
(self, source)
hypothesis/tests/cover/test_stateful.py:883
↓ 2 callers
Method
fail_fast
(self)
hypothesis/tests/cover/test_stateful.py:297
↓ 2 callers
Function
failure_exceptions_to_catch
Return a tuple of exceptions meaning 'this test has failed', to catch. This is intended to cover most common test runners; if you would like
hypothesis/src/hypothesis/core.py:796
↓ 2 callers
Method
filter
(self, condition: Callable[[Ex], Any])
hypothesis/src/hypothesis/strategies/_internal/core.py:2473
↓ 2 callers
Method
filter
(self, condition)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:722
↓ 2 callers
Method
filter
(self, condition)
hypothesis/src/hypothesis/strategies/_internal/strings.py:303
↓ 2 callers
Function
find_random
( s: st.SearchStrategy[T], condition: Callable[[T], bool], seed=None )
hypothesis/tests/nocover/test_precise_shrinking.py:226
↓ 2 callers
Function
flatten
(x)
hypothesis/tests/nocover/test_recursive.py:23
↓ 2 callers
Function
float_constr
( min_value=-math.inf, max_value=math.inf, *, allow_nan=True, smallest_nonzero_magnitude=S
hypothesis/tests/conjecture/common.py:248
↓ 2 callers
Function
flush_to_zero
()
hypothesis/src/_hypothesis_ftz_detector.py:46
↓ 2 callers
Function
flushes_to_zero
Infer whether build of array module has its float dtype of the specified width flush subnormals to zero We do this per-width because compiler
hypothesis/tests/array_api/common.py:48
↓ 2 callers
Function
foo
(draw)
hypothesis/tests/nocover/test_labels.py:28
↓ 2 callers
Function
foo
(x, y)
hypothesis/tests/cover/test_validation.py:92
↓ 2 callers
Function
foo
(x, y)
hypothesis/tests/cover/test_explicit_examples.py:68
↓ 2 callers
Function
format_exception
(err, tb)
hypothesis/src/hypothesis/internal/escalation.py:161
↓ 2 callers
Method
from_alphabet
( cls, alphabet: Collection[str] | SearchStrategy[str] )
hypothesis/src/hypothesis/strategies/_internal/strings.py:165
↓ 2 callers
Function
fulfill
Decorate ``contract_func`` to reject calls which violate preconditions, and retry them with different arguments. This is a convenience functi
hypothesis/src/hypothesis/extra/dpcontracts.py:26
↓ 2 callers
Method
generate_novel_prefix
Uses the tree to proactively generate a starting choice sequence that we haven't explored yet for this test. When this method is call
hypothesis/src/hypothesis/internal/conjecture/engine.py:808
↓ 2 callers
Function
get_executor
(runner)
hypothesis/src/hypothesis/core.py:831
↓ 2 callers
Function
get_explaining_locations
(traces)
hypothesis/src/hypothesis/internal/scrutineer.py:181
↓ 2 callers
Function
get_integer_predicate_bounds
(predicate: Predicate)
hypothesis/src/hypothesis/internal/filtering.py:304
↓ 2 callers
Function
get_mypy_output
(fname, *extra_args)
whole_repo_tests/types/test_mypy.py:40
↓ 2 callers
Function
get_numeric_predicate_bounds
Shared logic for understanding numeric bounds. We then specialise this in the other functions below, to ensure that e.g. all the values are r
hypothesis/src/hypothesis/internal/filtering.py:220
↓ 2 callers
Function
get_random_for_wrapped_test
(test, wrapped_test)
hypothesis/src/hypothesis/core.py:712
↓ 2 callers
Function
get_seeder_and_restorer
Return a pair of functions which respectively seed all and restore the state of all registered PRNGs. This is used by the core engine via `de
hypothesis/src/hypothesis/internal/entropy.py:165
↓ 2 callers
Method
getstate
(self)
hypothesis/src/hypothesis/strategies/_internal/random.py:336
↓ 2 callers
Function
guess_background_color
Returns one of "dark", "light", or "unknown". This is basically just guessing, but better than always guessing "dark"! See also https://stack
hypothesis/src/hypothesis/utils/terminal.py:15
↓ 2 callers
Function
has_changes
(files)
tooling/src/hypothesistooling/git.py:53
↓ 2 callers
Method
has_existing_test_cases
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1035
↓ 2 callers
Function
has_varargs
(*args)
hypothesis/tests/cover/test_validation.py:42
↓ 2 callers
Function
helper
()
hypothesis/tests/cover/test_lookup.py:647
↓ 2 callers
Method
href
Relative URL from a page to a target.
hypothesis/docs/_ext/hypothesis_redirects.py:189
↓ 2 callers
Function
identify_ftz_culprits
Find the modules in sys.modules which cause "mod" to be imported.
hypothesis/src/_hypothesis_ftz_detector.py:90
↓ 2 callers
Function
inner
(x)
hypothesis/tests/cover/test_random_module.py:106
↓ 2 callers
Function
inner
(x)
hypothesis/tests/cover/test_core.py:73
↓ 2 callers
Function
inner
(a: UnknownType)
hypothesis/tests/cover/test_lookup.py:510
↓ 2 callers
Function
integer_constr
(min_value=None, max_value=None, *, weights=None, shrink_towards=0)
hypothesis/tests/conjecture/common.py:263
↓ 2 callers
Function
invalid_test
(x)
hypothesis/tests/nocover/test_modify_inner_test.py:66
↓ 2 callers
Method
inverse_cdf
(self, u: float)
hypothesis/src/hypothesis/internal/statistics.py:134
↓ 2 callers
Function
is_a_type_alias_type
(thing)
hypothesis/src/hypothesis/strategies/_internal/types.py:387
↓ 2 callers
Function
is_local_module_file
(path: str)
hypothesis/src/hypothesis/internal/constants_ast.py:253
↓ 2 callers
Function
is_typed_named_tuple
Return True if cls is probably a subtype of `typing.NamedTuple`. Unfortunately types created with `class T(NamedTuple):` actually subclass `t
hypothesis/src/hypothesis/internal/compat.py:111
↓ 2 callers
Function
l
(e,n,t,r)
website/theme/static/prism.js:3
↓ 2 callers
Function
length_bounds_from_validators
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:222
↓ 2 callers
Method
make_canonical
Convert immutable value into a canonical and hashable, but not necessarily equal, representation of itself. This representation is us
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:137
↓ 2 callers
Method
make_immutable
Convert value into an immutable representation of itself. It is these immutable versions that the shrinker will work on. Defaults to
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:148
↓ 2 callers
Method
minimize_nodes
(self, nodes)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1687
↓ 2 callers
Function
nameless_const
(x)
hypothesis/tests/cover/test_searchstrategy.py:77
↓ 2 callers
Function
new_score
(key)
hypothesis/tests/cover/test_cache_implementation.py:137
↓ 2 callers
Method
new_shrinker
( self, initial: ConjectureData | ConjectureResult, predicate: ShrinkPredicateT | None
hypothesis/src/hypothesis/internal/conjecture/engine.py:1777
↓ 2 callers
Function
next_down_normal
(value: f64, width: u32, allow_subnormal: bool)
hypothesis/rust/src/internal/floats.rs:212
↓ 2 callers
Function
next_up_n
(f, n)
hypothesis/tests/conjecture/test_data_tree.py:501
↓ 2 callers
Function
normalize_zero
(f: float)
hypothesis/src/hypothesis/strategies/_internal/random.py:169
↓ 2 callers
Method
note
(self, value: str)
hypothesis/src/hypothesis/internal/conjecture/data.py:1246
↓ 2 callers
Method
observe_information_messages
Called at the end of each |test case| and again at end of the test function. Return an iterable of ``{type: info/alert/error, title: str, con
hypothesis/src/hypothesis/internal/conjecture/providers.py:639
↓ 2 callers
Method
observe_test_case
Called at the end of the |test case| when :ref:`observability <observability>` is enabled. The return value should be a non-symbolic
hypothesis/src/hypothesis/internal/conjecture/providers.py:630
↓ 2 callers
Function
output
(s)
hypothesis/src/hypothesis/stateful.py:135
↓ 2 callers
Function
parse_release_file
()
tooling/src/hypothesistooling/release.py:73
↓ 2 callers
Function
parse_release_file_contents
(release_contents, filename)
tooling/src/hypothesistooling/release.py:79
↓ 2 callers
Method
per_test_case_context_manager
Returns a context manager which will be entered each time Hypothesis starts generating and executing one |test case|, and exited when
hypothesis/src/hypothesis/internal/conjecture/providers.py:582
↓ 2 callers
Function
point_of_divergence
()
tooling/src/hypothesistooling/git.py:49
↓ 2 callers
Method
populate_bundle
(self)
hypothesis/tests/cover/test_stateful.py:293
↓ 2 callers
Function
pred
(s)
hypothesis/tests/cover/test_regex.py:107
↓ 2 callers
Function
print_command
(command, args)
tooling/src/hypothesistooling/scripts.py:20
↓ 2 callers
Function
process_arguments_to_given
( wrapped_test: Any, arguments: Sequence[object], kwargs: dict[str, object], given_kwargs: dic
hypothesis/src/hypothesis/core.py:740
↓ 2 callers
Function
randoms
Generates instances of ``random.Random``. The generated Random instances are of a special HypothesisRandom subclass. - If ``note_method_calls
hypothesis/src/hypothesis/strategies/_internal/core.py:1002
↓ 2 callers
Function
range_indexes
Provides a strategy which generates an :class:`~pandas.Index` whose values are 0, 1, ..., n for some n. Arguments: * min_size is the sma
hypothesis/src/hypothesis/extra/pandas/impl.py:277
↓ 2 callers
Function
release_date_string
Returns a date string that represents what should be considered "today" for the purposes of releasing, and ensure that we don't change part way
tooling/src/hypothesistooling/release.py:51
↓ 2 callers
Method
remove_listener
Removes ``f`` from the list of change listeners. If ``f`` is not in the list of change listeners, silently do nothing.
hypothesis/src/hypothesis/database.py:295
↓ 2 callers
Function
reproduction_decorator
(choices: Iterable[ChoiceT])
hypothesis/src/hypothesis/core.py:418
↓ 2 callers
Function
restore_recursion_limit
()
hypothesis/tests/common/utils.py:306
↓ 2 callers
Function
run
()
hypothesis/tests/common/setup.py:26
↓ 2 callers
Method
run
Run for an appropriate number of steps to improve the current value. If self.full is True, will run until no further improvements can
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:93
↓ 2 callers
Function
run_conformance_test
Test that the given ``Provider`` class conforms to the |PrimitiveProvider| interface. For instance, this tests that ``Provider`` does no
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:338
↓ 2 callers
Function
run_language_test_for
(root, data, seed)
hypothesis/tests/nocover/test_explore_arbitrary_languages.py:70
↓ 2 callers
Function
rust_msrv
()
tooling/src/hypothesistooling/cargo.py:33
↓ 2 callers
Function
s
(draw)
hypothesis/tests/conjecture/test_engine.py:474
↓ 2 callers
Method
save
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:795
↓ 2 callers
Method
score_function
(self, data: ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/optimiser.py:55
↓ 2 callers
Function
seed_all
()
hypothesis/src/hypothesis/internal/entropy.py:187
↓ 2 callers
Function
separated_sum
(draw)
hypothesis/tests/quality/test_shrink_quality.py:369
↓ 2 callers
Method
setup_state
(cls)
hypothesis/src/hypothesis/stateful.py:379
↓ 2 callers
Function
shared
Returns a strategy that draws a single shared value per run, drawn from base. Any two shared instances with the same key will share the same value
hypothesis/src/hypothesis/strategies/_internal/core.py:2319
↓ 2 callers
Method
should_generate_more
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1146
↓ 2 callers
Function
should_trace_file
(fname: str)
hypothesis/src/hypothesis/internal/scrutineer.py:39
↓ 2 callers
Method
shrink
( self, initial: ConjectureData | ConjectureResult, predicate: ShrinkPredicateT | None
hypothesis/src/hypothesis/internal/conjecture/engine.py:1765
← previous
next →
701–800 of 6,650, ranked by callers