MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,838 in github.com/HypothesisWorks/hypothesis

↓ 2 callersFunctionchoice_size
Equivalent to ``choices_size([choice])``, without serializing ``choice``.
hypothesis/src/hypothesis/internal/conjecture/choice.py:659
↓ 2 callersFunctionchoice_types_constraints
(strategy_constraints=None, *, use_forced=False)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:361
↓ 2 callersFunctionchoices_size
(choices: Iterable[ChoiceT])
hypothesis/src/hypothesis/internal/conjecture/choice.py:653
↓ 2 callersFunctionchoices_to_json
(choices: tuple[ChoiceT, ...])
hypothesis/src/hypothesis/internal/observability.py:106
↓ 2 callersFunctionclamped_shrink_towards
(constraints)
hypothesis/tests/conjecture/common.py:150
↓ 2 callersMethodclear_change_tracking
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1128
↓ 2 callersFunctioncodespell
(*files)
tooling/src/hypothesistooling/__main__.py:102
↓ 2 callersFunctioncompile_requirements
(*, upgrade=False)
tooling/src/hypothesistooling/__main__.py:389
↓ 2 callersMethodcomplex_dtypes
(self)
hypothesis/src/hypothesis/extra/array_api.py:1014
↓ 2 callersMethodcompress
(self, values)
hypothesis/tests/django/toystore/forms.py:216
↓ 2 callersFunctioncompute_new_version
()
tooling/src/hypothesistooling/release.py:347
↓ 2 callersMethodconclude_test
Called when ``conclude_test`` is called on the observed ``ConjectureData``, with the same arguments. Note that this is called after `
hypothesis/src/hypothesis/internal/conjecture/data.py:606
↓ 2 callersFunctioncond
(x)
hypothesis/tests/nocover/test_sampled_from.py:31
↓ 2 callersFunctioncondition
(x)
hypothesis/tests/nocover/test_database_usage.py:88
↓ 2 callersMethodcondition
(self)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:1407
↓ 2 callersFunctionconstraints_strategy
(choice_type, strategy_constraints=None, *, use_forced=False)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:348
↓ 2 callersFunctionconvert
(node: ast.AST, argname: str)
hypothesis/src/hypothesis/internal/filtering.py:83
↓ 2 callersFunctioncount
()
hypothesis/tests/cover/test_slippage.py:183
↓ 2 callersFunctioncount_between_floats
(x: f64, y: f64, width: u32)
hypothesis/rust/src/internal/floats.rs:130
↓ 2 callersMethoddebug_data
(self, data: ConjectureData | ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/engine.py:982
↓ 2 callersFunctiondebug_report
(text: str)
hypothesis/src/hypothesis/reporting.py:49
↓ 2 callersMethoddefault
(cls)
hypothesis/src/hypothesis/_settings.py:543
↓ 2 callersMethoddelete
Remove ``value`` from ``key``. If ``value`` is not present in ``key``, silently do nothing.
hypothesis/src/hypothesis/database.py:246
↓ 2 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:735
↓ 2 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:797
↓ 2 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/tests/cover/test_database_backend.py:806
↓ 2 callersFunctiondeprecate_random_in_strategy
(fmt: str, *args: Any)
hypothesis/src/hypothesis/control.py:113
↓ 2 callersFunctiondepth
(x)
hypothesis/tests/nocover/test_recursive.py:43
↓ 2 callersFunctiondescribe_targets
Return a list of lines describing the results of `target`, if any.
hypothesis/src/hypothesis/statistics.py:32
↓ 2 callersFunctiondistinct_int64_integers
(draw)
hypothesis/tests/array_api/test_arrays.py:493
↓ 2 callersMethoddo_filtered_draw
(self, data: ConjectureData)
hypothesis/src/hypothesis/strategies/_internal/misc.py:60
↓ 2 callersMethoddo_filtered_draw
(self, data: ConjectureData)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:1436
↓ 2 callersMethoddraw_boolean
(self, constraints)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:970
↓ 2 callersMethoddraw_boolean
( self, p: float = 0.5, *, forced: bool | None = None, observe: bool =
hypothesis/src/hypothesis/internal/conjecture/data.py:1090
↓ 2 callersMethoddraw_bytes
( self, value: bytes, *, constraints: BytesConstraints, was_forced: bool )
hypothesis/src/hypothesis/internal/conjecture/data.py:635
↓ 2 callersFunctiondraw_choice
( choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *, random: Random )
hypothesis/src/hypothesis/internal/conjecture/data.py:1554
↓ 2 callersMethoddraw_string
( self, value: str, *, constraints: StringConstraints, was_forced: bool )
hypothesis/src/hypothesis/internal/conjecture/data.py:630
↓ 2 callersMethoddraw_symbol
( self, data: ConjectureData, symbol: Symbol, draw_state: list[str], )
hypothesis/src/hypothesis/extra/lark.py:186
↓ 2 callersFunctiondtype_for_elements_strategy
(s)
hypothesis/src/hypothesis/extra/pandas/impl.py:53
↓ 2 callersFunctionencode_failure
(choices: Iterable[ChoiceT])
hypothesis/src/hypothesis/core.py:425
↓ 2 callersMethodend
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:245
↓ 2 callersFunctionendswith
(l1: Sequence[T], l2: Sequence[T])
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:539
↓ 2 callersMethodenter_context
(self, new_limit: int, *, current_limit: int)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:360
↓ 2 callersFunctionescape_unicode_characters
(s: str)
hypothesis/src/hypothesis/internal/compat.py:60
↓ 2 callersFunctioneverything_except
Recipe copied from the docstring of ``from_type``
hypothesis/tests/nocover/test_from_type_recipe.py:26
↓ 2 callersMethodexit_context
(self, new_limit: int, *, check: bool = True)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:371
↓ 2 callersFunctionexplanatory_lines
(traces, settings)
hypothesis/src/hypothesis/internal/scrutineer.py:294
↓ 2 callersFunctionextract_bits
(x: int, /, width: int | None = None)
hypothesis/src/hypothesis/internal/compat.py:185
↓ 2 callersFunctionf
(n)
hypothesis/tests/nocover/test_integer_ranges.py:51
↓ 2 callersFunctionf16_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 callersFunctionf2
()
hypothesis/tests/cover/test_reflection.py:720
↓ 2 callersMethodfail
(self, source)
hypothesis/tests/cover/test_stateful.py:883
↓ 2 callersMethodfail_fast
(self)
hypothesis/tests/cover/test_stateful.py:297
↓ 2 callersFunctionfailure_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:799
↓ 2 callersMethodfilter
(self, condition: Callable[[Ex], Any])
hypothesis/src/hypothesis/strategies/_internal/core.py:2474
↓ 2 callersMethodfilter
(self, condition)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:973
↓ 2 callersMethodfilter
(self, condition)
hypothesis/src/hypothesis/strategies/_internal/strings.py:303
↓ 2 callersFunctionfind_random
( s: st.SearchStrategy[T], condition: Callable[[T], bool], seed=None )
hypothesis/tests/nocover/test_precise_shrinking.py:226
↓ 2 callersFunctionflatten
(x)
hypothesis/tests/nocover/test_recursive.py:23
↓ 2 callersFunctionfloat_constr
( min_value=-math.inf, max_value=math.inf, *, allow_nan=True, smallest_nonzero_magnitude=S
hypothesis/tests/conjecture/common.py:248
↓ 2 callersFunctionflush_to_zero
()
hypothesis/src/_hypothesis_ftz_detector.py:46
↓ 2 callersFunctionflushes_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 callersFunctionfoo
(draw)
hypothesis/tests/nocover/test_labels.py:28
↓ 2 callersFunctionfoo
(x, y)
hypothesis/tests/cover/test_validation.py:92
↓ 2 callersFunctionfoo
(x, y)
hypothesis/tests/cover/test_explicit_examples.py:67
↓ 2 callersFunctionformat_exception
(err, tb)
hypothesis/src/hypothesis/internal/escalation.py:168
↓ 2 callersMethodfrom_alphabet
( cls, alphabet: Collection[str] | SearchStrategy[str] )
hypothesis/src/hypothesis/strategies/_internal/strings.py:165
↓ 2 callersFunctionfulfill
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:32
↓ 2 callersMethodgenerate_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:811
↓ 2 callersFunctionget_executor
(runner)
hypothesis/src/hypothesis/core.py:834
↓ 2 callersFunctionget_explaining_locations
(traces)
hypothesis/src/hypothesis/internal/scrutineer.py:178
↓ 2 callersFunctionget_integer_predicate_bounds
(predicate: Predicate)
hypothesis/src/hypothesis/internal/filtering.py:304
↓ 2 callersFunctionget_mypy_output
(fname, *extra_args)
whole_repo_tests/types/test_mypy.py:40
↓ 2 callersFunctionget_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 callersFunctionget_random_for_wrapped_test
(test, wrapped_test)
hypothesis/src/hypothesis/core.py:715
↓ 2 callersFunctionget_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:172
↓ 2 callersMethodgetstate
(self)
hypothesis/src/hypothesis/strategies/_internal/random.py:346
↓ 2 callersFunctionguess_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 callersFunctionhas_changes
(files)
tooling/src/hypothesistooling/git.py:53
↓ 2 callersMethodhas_existing_test_cases
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1034
↓ 2 callersFunctionhas_varargs
(*args)
hypothesis/tests/cover/test_validation.py:42
↓ 2 callersFunctionhelper
()
hypothesis/tests/cover/test_lookup.py:640
↓ 2 callersMethodhref
Relative URL from a page to a target.
hypothesis/docs/_ext/hypothesis_redirects.py:189
↓ 2 callersFunctionidentify_ftz_culprits
Find the modules in sys.modules which cause "mod" to be imported.
hypothesis/src/_hypothesis_ftz_detector.py:90
↓ 2 callersFunctioninner
(x)
hypothesis/tests/cover/test_random_module.py:106
↓ 2 callersFunctioninner
(x)
hypothesis/tests/cover/test_core.py:73
↓ 2 callersFunctioninner
(a: UnknownType)
hypothesis/tests/cover/test_lookup.py:503
↓ 2 callersFunctioninteger_constr
(min_value=None, max_value=None, *, weights=None, shrink_towards=0)
hypothesis/tests/conjecture/common.py:263
↓ 2 callersFunctioninvalid_test
(x)
hypothesis/tests/nocover/test_modify_inner_test.py:66
↓ 2 callersMethodinverse_cdf
(self, u: float)
hypothesis/src/hypothesis/internal/statistics.py:134
↓ 2 callersFunctionis_a_type_alias_type
(thing)
hypothesis/src/hypothesis/strategies/_internal/types.py:350
↓ 2 callersFunctionis_local_module_file
(path: str)
hypothesis/src/hypothesis/internal/constants_ast.py:260
↓ 2 callersFunctionis_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:76
↓ 2 callersFunctionl
(e,n,t,r)
website/theme/static/prism.js:3
↓ 2 callersFunctionlength_bounds_from_validators
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:221
↓ 2 callersMethodmake_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 callersMethodmake_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 callersFunctionmany_span_discards
(data)
hypothesis/tests/conjecture/test_utils.py:177
↓ 2 callersMethodminimize_nodes
(self, nodes)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1689
↓ 2 callersFunctionnameless_const
(x)
hypothesis/tests/cover/test_searchstrategy.py:77
← previousnext →701–800 of 6,838, ranked by callers