MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,441 in github.com/HypothesisWorks/hypothesis

↓ 4 callersMethodshow_changed
(self)
hypothesis/src/hypothesis/_settings.py:1110
↓ 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:33
↓ 4 callersFunctiontest
(i)
hypothesis/tests/cover/test_seed_printing.py:52
↓ 4 callersMethodtest_function
(self, data: ConjectureData)
hypothesis/src/hypothesis/internal/conjecture/engine.py:531
↓ 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:835
↓ 4 callersMethodtrack_arg_label
(self, label: str)
hypothesis/src/hypothesis/control.py:168
↓ 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:1163
↓ 3 callersMethod__exit__
(self, *args, **kwargs)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:406
↓ 3 callersMethod__init__
(self, testcounter: int)
hypothesis/src/hypothesis/errors.py:311
↓ 3 callersMethod__init__
(self, min_value, max_value, timezones_strat)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:583
↓ 3 callersMethod__init__
( self, elements: SearchStrategy[Ex], min_size: int = 0, max_size: float | int
hypothesis/src/hypothesis/strategies/_internal/collections.py:161
↓ 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:246
↓ 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:314
↓ 3 callersFunction_callbacks
()
hypothesis/tests/cover/test_observability.py:631
↓ 3 callersFunction_choice_to_json
(choice: ChoiceT | None)
hypothesis/src/hypothesis/internal/observability.py:85
↓ 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:51
↓ 3 callersFunction_db_for_path
( path: StrPathT | UniqueIdentifier | Literal[":memory:"] | None = None, )
hypothesis/src/hypothesis/database.py:85
↓ 3 callersFunction_decode_choice
(value)
hypothesis/tests/cover/test_observability.py:418
↓ 3 callersMethod_draw_bits
(self, n)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1122
↓ 3 callersFunction_draw_valid_bounds
(data, shape, max_dims, *, permit_none=True)
hypothesis/tests/numpy/test_gen_data.py:592
↓ 3 callersMethod_ensure_thread
(self)
hypothesis/src/hypothesis/database.py:1179
↓ 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:175
↓ 3 callersFunction_from_type
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1322
↓ 3 callersFunction_hypothesis_parse_gufunc_signature
(signature)
hypothesis/src/hypothesis/extra/_array_helpers.py:301
↓ 3 callersMethod_initialize_db
(self)
hypothesis/src/hypothesis/database.py:989
↓ 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:64
↓ 3 callersMethod_note_deprecation
(self)
hypothesis/src/hypothesis/internal/observability.py:361
↓ 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:808
↓ 3 callersFunction_strip_typevars
(type_)
hypothesis/src/hypothesis/extra/ghostwriter.py:246
↓ 3 callersFunction_timezones_kind
Classify the values a timezones= strategy can generate: "none" if only None, "aware" if only tzinfo instances, or "unknown" if we can't tell.
hypothesis/src/hypothesis/strategies/_internal/datetime.py:92
↓ 3 callersMethod_transform
( self, # https://github.com/python/mypy/issues/7049, we're not writing `element` # an
hypothesis/src/hypothesis/strategies/_internal/strategies.py:708
↓ 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:673
↓ 3 callersFunction_validate_enum_value
(cls: Any, value: object, *, name: str)
hypothesis/src/hypothesis/_settings.py:426
↓ 3 callersMethod_value_path
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:476
↓ 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:521
↓ 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:39
↓ 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 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])
hypothesis/src/hypothesis/internal/conjecture/engine.py:237
↓ 3 callersMethodchoices
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:961
↓ 3 callersMethodconclude_test
( self, status: Status, interesting_origin: InterestingOrigin | None = None, )
hypothesis/src/hypothesis/internal/conjecture/data.py:1344
↓ 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:725
↓ 3 callersFunctionconvert_kwargs
(name, kwargs)
hypothesis/src/hypothesis/strategies/_internal/random.py:355
↓ 3 callersFunctioncurrent_version
()
tooling/src/hypothesistooling/release.py:355
↓ 3 callersFunctiondatetime_does_not_exist
This function tests whether the given datetime can be round-tripped to and from UTC. It is an exact inverse of (and very similar to) the dateutil
hypothesis/src/hypothesis/strategies/_internal/datetime.py:155
↓ 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:2577
↓ 3 callersFunctiondo_conversion_test
(f, args, kwargs)
hypothesis/tests/cover/test_reflection.py:50
↓ 3 callersMethoddraw_string
( self, intervals: IntervalSet, *, min_size: int = 0, max_size: int =
hypothesis/tests/conjecture/test_provider.py:152
↓ 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:1107
↓ 3 callersFunctionextract_bits
(x: int, /, width: int | None = None)
hypothesis/src/hypothesis/internal/compat.py:220
↓ 3 callersFunctionf
(x)
hypothesis/tests/nocover/test_regressions.py:27
↓ 3 callersFunctionf
()
hypothesis/tests/cover/test_random_module.py:237
↓ 3 callersFunctionf
(x)
hypothesis/tests/cover/test_reporting.py:37
↓ 3 callersFunctionf
(u, v)
hypothesis/tests/cover/test_testdecorators.py:439
↓ 3 callersFunctionf1
(n)
hypothesis/tests/nocover/test_randomization.py:36
↓ 3 callersFunctionfailing_output
(test)
hypothesis/tests/cover/test_functions.py:258
↓ 3 callersMethodfetch
Return an iterable over all values matching this key.
hypothesis/src/hypothesis/database.py:243
↓ 3 callersMethodfetch
(self, key)
hypothesis/tests/cover/test_phases.py:64
↓ 3 callersFunctionfloat_to_lex
(f: float)
hypothesis/src/hypothesis/internal/conjecture/floats.py:193
↓ 3 callersFunctionforced_or_cached_value
(target: SearchStrategy)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:114
↓ 3 callersFunctionfrom_dtype
Creates a strategy which can generate any value of the given dtype. Compatible parameters are passed to the inferred strategy function while
hypothesis/src/hypothesis/extra/numpy.py:127
↓ 3 callersMethodfrom_path
(cls, path: str)
hypothesis/src/hypothesis/internal/scrutineer.py:267
↓ 3 callersFunctionfrozensets
This is identical to the sets function but instead returns frozensets.
hypothesis/src/hypothesis/strategies/_internal/core.py:450
↓ 3 callersFunctiongc_collect
()
hypothesis/tests/cover/test_random_module.py:34
↓ 3 callersFunctionget_recorded
(name, actual="")
hypothesis/tests/ghostwriter/test_expected_output.py:56
↓ 3 callersFunctionget_reports
(file_contents, *, testdir)
hypothesis/tests/nocover/test_scrutineer.py:64
↓ 3 callersFunctionhas_a_non_zero_byte
(x)
hypothesis/tests/nocover/test_database_usage.py:31
↓ 3 callersFunctionhas_release
()
tooling/src/hypothesistooling/release.py:65
↓ 3 callersMethodindex_above
(self, value: int)
hypothesis/src/hypothesis/internal/intervalsets.py:112
↓ 3 callersMethodindex_from_char_in_shrink_order
Inverse of char_in_shrink_order.
hypothesis/src/hypothesis/internal/intervalsets.py:292
↓ 3 callersMethodinitial_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:714
↓ 3 callersFunctionis_annotated_type
(thing: object)
hypothesis/src/hypothesis/strategies/_internal/types.py:428
↓ 3 callersFunctionis_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:571
↓ 3 callersFunctionis_in_ci
()
hypothesis/src/hypothesis/_settings.py:409
↓ 3 callersFunctionkey
Prefer known-FTZ modules, then top-level packages, then alphabetical.
hypothesis/src/_hypothesis_ftz_detector.py:107
↓ 3 callersFunctionlex_to_float
(i: int)
hypothesis/src/hypothesis/internal/conjecture/floats.py:176
↓ 3 callersMethodmark_changed
(self, i)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1126
↓ 3 callersFunctionnodes_to_json
(nodes: tuple[ChoiceNode, ...])
hypothesis/src/hypothesis/internal/observability.py:160
↓ 3 callersFunctionnon_covering_examples
(database)
hypothesis/tests/common/utils.py:156
↓ 3 callersFunctionnumeric_bounds_from_validators
( field, min_value=float("-inf"), max_value=float("inf") )
hypothesis/src/hypothesis/extra/django/_fields.py:42
↓ 3 callersMethodpareto_optimise
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1546
↓ 3 callersFunctionparse_release
(contents)
whole_repo_tests/whole_repo/test_release_management.py:16
← previousnext →401–500 of 6,441, ranked by callers