MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,593 in github.com/HypothesisWorks/hypothesis

↓ 2 callersFunction_join_generics
( origin_type_data: tuple[str, set[str]] | None, annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:944
↓ 2 callersMethod_log_phase_statistics
( self, phase: Literal["reuse", "generate", "shrink", "explain"] )
hypothesis/src/hypothesis/internal/conjecture/engine.py:390
↓ 2 callersFunction_model_choice_strategy
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:291
↓ 2 callersFunction_node_pretty
( choice_type: ChoiceTypeT, value: ChoiceT, constraints: ChoiceConstraintsT, *, forced: bo
hypothesis/src/hypothesis/internal/conjecture/datatree.py:73
↓ 2 callersFunction_num_days_in_month
Branchless equivalent of ``monthrange(year, month)[1]`` for valid inputs. Written using only arithmetic and (in)equality, with no branching or in
hypothesis/src/hypothesis/strategies/_internal/datetime.py:191
↓ 2 callersFunction_numeric_dtypes
Return a strategy for all numeric dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:617
↓ 2 callersFunction_pack_uleb128
Serialize an integer into variable-length bytes. For each byte, the first 7 bits represent (part of) the integer, while the last bit indicate
hypothesis/src/hypothesis/database.py:1228
↓ 2 callersFunction_params_to_dict
( params: Iterable[inspect.Parameter], )
hypothesis/src/hypothesis/extra/ghostwriter.py:510
↓ 2 callersMethod_publish
(self, event)
hypothesis/src/hypothesis/extra/redis.py:92
↓ 2 callersFunction_raise_to_user
Helper function for attaching notes and grouping multiple errors.
hypothesis/src/hypothesis/core.py:1649
↓ 2 callersFunction_real_dtypes
Return a strategy for all real-valued dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:608
↓ 2 callersFunction_reject_dtype_class
(dtype: object)
hypothesis/src/hypothesis/extra/numpy.py:113
↓ 2 callersMethod_remove
(self, data: ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/pareto.py:281
↓ 2 callersFunction_resolve_forward_ref_in_caller
Try to resolve a forward reference name by walking up the call stack. This allows us to resolve recursive forward references like: A = li
hypothesis/src/hypothesis/strategies/_internal/types.py:251
↓ 2 callersFunction_run_and_get_junit
(testdir, *args)
hypothesis/tests/pytest/test_junit.py:31
↓ 2 callersFunction_serialize_event
( event: Any, *, allowed_types: tuple[type, ...] = (str,), avoid_realization: bool )
hypothesis/src/hypothesis/control.py:317
↓ 2 callersMethod_setrecursionlimit
(self, new_limit: int, *, check: bool = True)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:344
↓ 2 callersMethod_should_trace
(self)
hypothesis/src/hypothesis/core.py:971
↓ 2 callersFunction_size_to_index
(size: int, *, alphabet_size: int)
hypothesis/src/hypothesis/internal/conjecture/choice.py:198
↓ 2 callersMethod_split_suffixed
(self, value: Any)
hypothesis/src/hypothesis/strategies/_internal/collections.py:385
↓ 2 callersFunction_st_strategy_names
Replace strategy name() with st.name(). Uses a tricky re.sub() to avoid problems with frozensets() matching sets() too.
hypothesis/src/hypothesis/extra/ghostwriter.py:815
↓ 2 callersMethod_stop_listening
Called whenever no change listeners remain on the database. ``_stop_listening`` and ``_start_listening`` are guaranteed to alternate
hypothesis/src/hypothesis/database.py:352
↓ 2 callersFunction_strategy
Convert SRE regex parse tree to strategy that generates strings matching that regex represented by that parse tree. `codes` is either a list
hypothesis/src/hypothesis/strategies/_internal/regex.py:335
↓ 2 callersFunction_string_filter_rewrite
(self, kind, condition)
hypothesis/src/hypothesis/strategies/_internal/strings.py:330
↓ 2 callersFunction_timezone_key_strategies
SampledFromStrategy branches for IANA keys: plain keys first, then one branch per allowed prefix, with the prefix applied as a sampled_from tr
hypothesis/src/hypothesis/strategies/_internal/datetime.py:906
↓ 2 callersFunction_unpack_uleb128
Inverts _pack_uleb128, and also returns the index at which at which we stopped reading.
hypothesis/src/hypothesis/database.py:1252
↓ 2 callersFunction_unsigned_integer_dtypes
Return a strategy for unsigned integer dtype objects. ``sizes`` contains the unsigned integer sizes in bits, defaulting to ``(8, 16, 32, 64)`
hypothesis/src/hypothesis/extra/array_api.py:671
↓ 2 callersMethod_urandom
(size: int)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1248
↓ 2 callersMethod_wall_clock_window
The naive (min, max) wall-clock bounds for drawing in ``tz``, or None to draw in UTC and convert. A pure function of (bounds, tz), sh
hypothesis/src/hypothesis/strategies/_internal/datetime.py:345
↓ 2 callersFunction_with_any_registered
()
hypothesis/src/hypothesis/extra/ghostwriter.py:518
↓ 2 callersMethodadd_listener
Add a change listener. ``f`` will be called whenever a value is saved, deleted, or moved in the database. ``f`` can be calle
hypothesis/src/hypothesis/database.py:271
↓ 2 callersFunctionany_call_of_method
(draw, method)
hypothesis/tests/cover/test_randoms.py:85
↓ 2 callersFunctionargument_validation_test
(bad_args)
hypothesis/tests/common/arguments.py:28
↓ 2 callersFunctionarray_dtypes
Return a strategy for generating array (compound) dtypes, with members drawn from the given subtype strategy.
hypothesis/src/hypothesis/extra/numpy.py:1004
↓ 2 callersFunctionas_general_categories
Return a tuple of Unicode categories in a normalised order. This function expands one-letter designations of a major class to include all sub
hypothesis/src/hypothesis/internal/charmap.py:218
↓ 2 callersFunctionassert_can_release
()
tooling/src/hypothesistooling/git.py:94
↓ 2 callersFunctionassert_narrowing_matches
(x: f64)
hypothesis/rust/tests/embedded/internal/test_floats.rs:14
↓ 2 callersFunctionassert_outcomes
(result, *, errors=0, failed=0)
hypothesis/tests/pytest/test_fixtures.py:194
↓ 2 callersFunctionassert_output_contains_failure
(output, test, **kwargs)
hypothesis/tests/common/utils.py:177
↓ 2 callersFunctionassert_reordered_exponents
(res)
hypothesis/tests/conjecture/test_float_encoding.py:28
↓ 2 callersFunctionassert_valid_range_list
(ls)
hypothesis/tests/cover/test_charmap.py:44
↓ 2 callersFunctionbar
(μ)
hypothesis/tests/cover/test_unicode_identifiers.py:20
↓ 2 callersFunctionbatched
(iterable, n, *, strict=False)
hypothesis/src/hypothesis/internal/compat.py:299
↓ 2 callersFunctionbuild_docs
(*, builder="html", only=(), to=None)
tooling/src/hypothesistooling/release.py:141
↓ 2 callersFunctioncalc_label_from_cls
(cls: type)
hypothesis/src/hypothesis/internal/conjecture/utils.py:54
↓ 2 callersFunctioncalc_label_from_hash
(obj: object)
hypothesis/src/hypothesis/internal/conjecture/utils.py:58
↓ 2 callersMethodcall_shrinker
Calls another shrinker class, passing through the relevant context variables. Note we explicitly do not pass through full.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:69
↓ 2 callersFunctioncallback
(observation)
hypothesis/tests/crosshair/test_crosshair.py:202
↓ 2 callersMethodcan_trace
()
hypothesis/src/hypothesis/internal/scrutineer.py:71
↓ 2 callersFunctioncharmap
Return a dict that maps a Unicode category, to a tuple of 2-tuples covering the codepoint intervals for characters in that category. >>> char
hypothesis/src/hypothesis/internal/charmap.py:81
↓ 2 callersFunctioncharmap_file
(fname: str = "charmap")
hypothesis/src/hypothesis/internal/charmap.py:72
↓ 2 callersFunctioncheck_block
(name, depth)
hypothesis/src/hypothesis/internal/coverage.py:70
↓ 2 callersFunctioncheck_sample
( values: type[enum.Enum] | Sequence[T], strategy_name: str )
hypothesis/src/hypothesis/internal/conjecture/utils.py:94
↓ 2 callersMethodcheck_set_value
(self, val, val_0d, strategy)
hypothesis/src/hypothesis/extra/array_api.py:322
↓ 2 callersMethodcheck_valid
(self)
hypothesis/src/hypothesis/internal/cache.py:348
↓ 2 callersFunctioncheck_xp_attributes
(xp: Any, attributes: list[str])
hypothesis/src/hypothesis/extra/array_api.py:81
↓ 2 callersFunctionchoice_types_constraints
(strategy_constraints=None, *, use_forced=False)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:327
↓ 2 callersFunctionchoices_size
(choices: Iterable[ChoiceT])
hypothesis/src/hypothesis/internal/conjecture/choice.py:634
↓ 2 callersFunctionchoices_to_json
(choices: tuple[ChoiceT, ...])
hypothesis/src/hypothesis/internal/observability.py:105
↓ 2 callersFunctionclamped_shrink_towards
(constraints)
hypothesis/tests/conjecture/common.py:150
↓ 2 callersMethodclear_change_tracking
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1125
↓ 2 callersFunctioncodespell
(*files)
tooling/src/hypothesistooling/__main__.py:101
↓ 2 callersFunctioncompile_requirements
(*, upgrade=False)
tooling/src/hypothesistooling/__main__.py:379
↓ 2 callersMethodcomplex_dtypes
(self)
hypothesis/src/hypothesis/extra/array_api.py:1015
↓ 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:587
↓ 2 callersFunctioncondition
(x)
hypothesis/tests/nocover/test_database_usage.py:88
↓ 2 callersFunctionconstraints_strategy
(choice_type, strategy_constraints=None, *, use_forced=False)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:314
↓ 2 callersFunctionconvert
(node: ast.AST, argname: str)
hypothesis/src/hypothesis/internal/filtering.py:83
↓ 2 callersFunctioncount
()
hypothesis/tests/cover/test_slippage.py:184
↓ 2 callersFunctioncount_between_floats
(x: f64, y: f64, width: u32)
hypothesis/rust/src/internal/floats.rs:130
↓ 2 callersMethoddebug
(self, msg: str)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:433
↓ 2 callersMethoddebug_data
(self, data: ConjectureData | ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/engine.py:970
↓ 2 callersFunctiondebug_report
(text: str)
hypothesis/src/hypothesis/reporting.py:49
↓ 2 callersMethoddefault
(cls)
hypothesis/src/hypothesis/_settings.py:541
↓ 2 callersMethoddelete
Remove ``value`` from ``key``. If ``value`` is not present in ``key``, silently do nothing.
hypothesis/src/hypothesis/database.py:248
↓ 2 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:737
↓ 2 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:799
↓ 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:107
↓ 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:31
↓ 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:63
↓ 2 callersMethoddo_filtered_draw
(self, data: ConjectureData)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:1321
↓ 2 callersMethoddraw_bytes
( self, value: bytes, *, constraints: BytesConstraints, was_forced: bool )
hypothesis/src/hypothesis/internal/conjecture/data.py:616
↓ 2 callersFunctiondraw_choice
( choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *, random: Random )
hypothesis/src/hypothesis/internal/conjecture/data.py:1467
↓ 2 callersMethoddraw_string
( self, value: str, *, constraints: StringConstraints, was_forced: bool )
hypothesis/src/hypothesis/internal/conjecture/data.py:611
↓ 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:422
↓ 2 callersMethodend
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:239
↓ 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:95
↓ 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:297
↓ 2 callersFunctionf
(n)
hypothesis/tests/nocover/test_integer_ranges.py:51
← previousnext →601–700 of 6,593, ranked by callers