MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,838 in github.com/HypothesisWorks/hypothesis

↓ 4 callersMethodin_bounds
(self, value)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:557
↓ 4 callersFunctioninstall_hypothesis_editable
()
tooling/src/hypothesistooling/release.py:129
↓ 4 callersFunctionint_to_bytes
(i: int, size: int)
hypothesis/src/hypothesis/internal/compat.py:68
↓ 4 callersFunctionis_a_type
Return True if thing is a type or a typing-like thing (union, generic type, etc).
hypothesis/src/hypothesis/strategies/_internal/types.py:368
↓ 4 callersFunctionis_a_union
Return True if thing is a typing.Union or types.UnionType.
hypothesis/src/hypothesis/strategies/_internal/types.py:363
↓ 4 callersFunctionis_mock
Determine if the given argument is a mock type.
hypothesis/src/hypothesis/internal/reflection.py:43
↓ 4 callersMethodlast_rejected_filter_location
The location of the most recently rejected filter.
hypothesis/src/hypothesis/internal/conjecture/data.py:1545
↓ 4 callersMethodlower_common_node_offset
Sometimes we find ourselves in a situation where changes to one part of the choice sequence unlock changes to other parts. Sometimes this is
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1048
↓ 4 callersFunctionmake_float_clamper
Return a function that clamps positive floats into the given bounds.
hypothesis/src/hypothesis/internal/floats.py:34
↓ 4 callersFunctionmake_gen_like
(annotation, *, is_async=False)
hypothesis/tests/cover/test_functions.py:482
↓ 4 callersFunctionmake_patch
Create a patch for (fname, before, after) triples.
hypothesis/src/hypothesis/extra/_patching.py:297
↓ 4 callersFunctionmake_report
(explanations, *, cap_lines_at=5)
hypothesis/src/hypothesis/internal/scrutineer.py:280
↓ 4 callersMethodmark_overrun
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:1542
↓ 4 callersMethodmove
(self, src: bytes, dest: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:530
↓ 4 callersMethodmove
(self, k1, k2, v)
hypothesis/tests/cover/test_database_backend.py:663
↓ 4 callersMethodnew_conjecture_data
( self, prefix: Sequence[ChoiceT | ChoiceTemplate | ValueHole], *, observer: D
hypothesis/src/hypothesis/internal/conjecture/engine.py:1664
↓ 4 callersFunctionnumeric_dtype_names
(base_name: str, sizes: Sequence[int])
hypothesis/src/hypothesis/extra/array_api.py:642
↓ 4 callersFunctionpermutations
Return a strategy which returns permutations of the ordered collection ``values``. Examples from this strategy shrink by trying to become clo
hypothesis/src/hypothesis/strategies/_internal/core.py:2020
↓ 4 callersMethodrecord_value_for_span
(self, span_index: int, value: Any)
hypothesis/src/hypothesis/internal/conjecture/data.py:395
↓ 4 callersFunctionreplace_all
Substitute multiple replacement values into a list. Replacements is a list of (start, end, value) triples.
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:63
↓ 4 callersFunctionreplace_tzinfo
(value, timezone)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:120
↓ 4 callersFunctionresolve_Dict
(thing)
hypothesis/src/hypothesis/strategies/_internal/types.py:1156
↓ 4 callersFunctionrun_validate_branch_check
(tmp_path, *, check, **kwargs)
whole_repo_tests/whole_repo/test_validate_branch_check.py:27
↓ 4 callersMethodsave_choices
( self, choices: Sequence[ChoiceT], sub_key: bytes | None = None )
hypothesis/src/hypothesis/internal/conjecture/engine.py:949
↓ 4 callersFunctionscalar_dtypes
Return a strategy that can return any non-flexible scalar dtype.
hypothesis/src/hypothesis/extra/numpy.py:614
↓ 4 callersFunctionselect
(*args)
hypothesis/tests/conjecture/test_choice_tree.py:21
↓ 4 callersMethodset_for_type
( self, constant_type: type[ConstantT] | ChoiceTypeT )
hypothesis/src/hypothesis/internal/constants_ast.py:51
↓ 4 callersFunctionshould_note
()
hypothesis/src/hypothesis/control.py:246
↓ 4 callersMethodshow_changed
(self)
hypothesis/src/hypothesis/_settings.py:1111
↓ 4 callersFunctionstdtr
Student's t CDF for integer df >= 1, evaluated at t. Closed-form finite sum from Abramowitz & Stegun 26.7.7-8.
hypothesis/src/hypothesis/internal/statistics.py:24
↓ 4 callersFunctiontest
(ls)
hypothesis/tests/cover/test_replay_logic.py:32
↓ 4 callersFunctiontest
(i)
hypothesis/tests/cover/test_seed_printing.py:52
↓ 4 callersMethodtest_function
(self, data: ConjectureData)
hypothesis/src/hypothesis/internal/conjecture/engine.py:555
↓ 4 callersFunctiontimezones
A strategy for :class:`python:zoneinfo.ZoneInfo` objects. If ``no_cache=True``, the generated instances are constructed using :meth:`ZoneInfo
hypothesis/src/hypothesis/strategies/_internal/datetime.py:1233
↓ 4 callersMethodtrack_arg_label
(self, label: str)
hypothesis/src/hypothesis/internal/conjecture/data.py:1412
↓ 4 callersFunctionwith_register_backend
(name, provider_cls)
hypothesis/src/hypothesis/internal/conjecture/providers.py:384
↓ 4 callersFunctionwrite_entries
(tmp_path, entries)
whole_repo_tests/whole_repo/test_validate_branch_check.py:22
↓ 3 callersMethod__assert_not_frozen
(self, name: str)
hypothesis/src/hypothesis/internal/conjecture/data.py:1282
↓ 3 callersMethod__init__
(self, testcounter: int)
hypothesis/src/hypothesis/errors.py:333
↓ 3 callersMethod__init__
(self, min_value, max_value, timezones_strat)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:943
↓ 3 callersMethod__init__
( self, elements: SearchStrategy[Ex], min_size: int = 0, max_size: float | int
hypothesis/src/hypothesis/strategies/_internal/collections.py:180
↓ 3 callersMethod__init__
(self, field_count=5, **kwargs)
hypothesis/tests/django/toystore/forms.py:84
↓ 3 callersMethod__underlying_index
(self, i: int)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:270
↓ 3 callersMethod_broadcast_change
Called when a value has been either added to or deleted from a key in the underlying database store. The possible values for ``event`
hypothesis/src/hypothesis/database.py:312
↓ 3 callersFunction_choice_to_json
(choice: ChoiceT | None)
hypothesis/src/hypothesis/internal/observability.py:86
↓ 3 callersFunction_comparator_bound
Return ``(op, bound)`` for filter conditions like ``partial(op, bound)``, with a single positional argument to one of the five comparison operator
hypothesis/src/hypothesis/strategies/_internal/datetime.py:54
↓ 3 callersFunction_constants_from_source
(source: str | bytes, *, limit: bool)
hypothesis/src/hypothesis/internal/constants_ast.py:184
↓ 3 callersFunction_db_for_path
( path: StrPathT | UniqueIdentifier | Literal[":memory:"] | None = None, )
hypothesis/src/hypothesis/database.py:83
↓ 3 callersFunction_decode_choice
(value)
hypothesis/tests/cover/test_observability.py:588
↓ 3 callersFunction_draw_valid_bounds
(data, shape, max_dims, *, permit_none=True)
hypothesis/tests/numpy/test_gen_data.py:592
↓ 3 callersMethod_end_test_case
(self, exception=None, *, expected=True)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:827
↓ 3 callersMethod_ensure_thread
(self)
hypothesis/src/hypothesis/database.py:1184
↓ 3 callersFunction_findall_from_root
(junit_xml, path)
hypothesis/tests/pytest/test_junit.py:37
↓ 3 callersFunction_from_dtype
Return a strategy for any value of the given dtype. Values generated are of the Python scalar which is :xp-ref:`promotable <type_promotion.ht
hypothesis/src/hypothesis/extra/array_api.py:176
↓ 3 callersFunction_from_type
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1355
↓ 3 callersFunction_get_redirects
(app: Sphinx)
hypothesis/docs/_ext/hypothesis_redirects.py:206
↓ 3 callersFunction_hypothesis_parse_gufunc_signature
(signature)
hypothesis/src/hypothesis/extra/_array_helpers.py:301
↓ 3 callersFunction_info_observation
(title)
hypothesis/tests/cover/test_observability.py:995
↓ 3 callersMethod_initialize_db
(self)
hypothesis/src/hypothesis/database.py:988
↓ 3 callersMethod_int_value
(value: "Verbosity")
hypothesis/src/hypothesis/_settings.py:118
↓ 3 callersFunction_last_frame_location
(tb: TracebackType)
hypothesis/src/hypothesis/internal/escalation.py:59
↓ 3 callersFunction_narrowed_bounds
Narrow [min_value, max_value] to satisfy the condition ``func(arg, x)``. ``shift(value, steps)`` moves value by that many of the smallest represe
hypothesis/src/hypothesis/strategies/_internal/datetime.py:67
↓ 3 callersMethod_note_deprecation
(self)
hypothesis/src/hypothesis/internal/observability.py:364
↓ 3 callersFunction_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 callersFunction_rule_qualname
(f: Any)
hypothesis/src/hypothesis/stateful.py:907
↓ 3 callersFunction_strip_typevars
(type_)
hypothesis/src/hypothesis/extra/ghostwriter.py:248
↓ 3 callersFunction_try_inline_lambda
Helper: run _try_inline_lambda and return the printer output, or None.
hypothesis/tests/cover/test_lambda_inlining.py:18
↓ 3 callersFunction_valid_syntax_repr
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:675
↓ 3 callersFunction_validate_enum_value
(cls: Any, value: object, *, name: str)
hypothesis/src/hypothesis/_settings.py:428
↓ 3 callersMethod_value_path
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:474
↓ 3 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:585
↓ 3 callersFunction_xp_without
A copy of mock_xp with the given attributes removed.
hypothesis/tests/array_api/test_from_dtype.py:40
↓ 3 callersFunctiona
(x)
hypothesis/tests/cover/test_health_checks.py:126
↓ 3 callersFunctionarray_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 callersFunctionassert_runs_to_output
(TestClass, output)
hypothesis/tests/nocover/test_stateful.py:41
↓ 3 callersFunctionbadly_draw_lists
(draw, m=0)
hypothesis/tests/cover/test_composite.py:27
↓ 3 callersFunctionbits_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:545
↓ 3 callersFunctionbump_version_info
(version_info, release_type)
tooling/src/hypothesistooling/release.py:101
↓ 3 callersFunctioncalc_label_from_callable
(f: Callable)
hypothesis/src/hypothesis/internal/conjecture/utils.py:40
↓ 3 callersFunctioncategories
Return a tuple of Unicode categories in a normalised order. >>> categories() # doctest: +ELLIPSIS ('Zl', 'Zp', 'Co', 'Me', 'Pc', ..., 'Cc', '
hypothesis/src/hypothesis/internal/charmap.py:200
↓ 3 callersMethodcdf
(self, x: float)
hypothesis/src/hypothesis/internal/statistics.py:130
↓ 3 callersFunctioncheck
()
hypothesis/tests/nocover/test_threading.py:175
↓ 3 callersMethodcheck_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 callersMethodcheck_valid
(self)
hypothesis/src/hypothesis/internal/cache.py:388
↓ 3 callersFunctioncheck_valid_integer
Checks that value is either unspecified, or a valid integer. Otherwise raises InvalidArgument.
hypothesis/src/hypothesis/internal/validation.py:41
↓ 3 callersFunctionchoice_count
( choices: Sequence[ChoiceT | ChoiceTemplate | ValueHole], )
hypothesis/src/hypothesis/internal/conjecture/engine.py:238
↓ 3 callersMethodchoices
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:967
↓ 3 callersMethodconclude_test
( self, status: Status, interesting_origin: InterestingOrigin | None = None, )
hypothesis/src/hypothesis/internal/conjecture/data.py:1519
↓ 3 callersFunctioncondition
(values, expected_type=expected_type, predicate=predicate)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:588
↓ 3 callersFunctionconsumes
When introducing a rule in a RuleBasedStateMachine, this function can be used to mark bundles from which each value used in a step with the gi
hypothesis/src/hypothesis/stateful.py:824
↓ 3 callersFunctionconvert_kwargs
(name, kwargs)
hypothesis/src/hypothesis/strategies/_internal/random.py:365
↓ 3 callersFunctioncount_many
(*args, **kwargs)
hypothesis/tests/conjecture/test_utils.py:138
↓ 3 callersFunctioncurrent_version
()
tooling/src/hypothesistooling/release.py:355
↓ 3 callersMethoddebug
(self, *args: object)
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:78
↓ 3 callersFunctiondeferred
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:2641
↓ 3 callersFunctiondo_conversion_test
(f, args, kwargs)
hypothesis/tests/cover/test_reflection.py:50
↓ 3 callersFunctione
(a, *args, **kwargs)
hypothesis/tests/common/arguments.py:17
↓ 3 callersFunctionelements_and_dtype
(elements, dtype, source=None)
hypothesis/src/hypothesis/extra/pandas/impl.py:137
↓ 3 callersMethodexit_with
(self, reason: ExitReason)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1138
↓ 3 callersFunctionf
(x)
hypothesis/tests/nocover/test_regressions.py:27
← previousnext →401–500 of 6,838, ranked by callers