MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,315 in github.com/HypothesisWorks/hypothesis

↓ 7 callersMethod__init__
(self)
hypothesis/src/hypothesis/database.py:231
↓ 7 callersFunction_are_annotations_used
(*functions: Callable)
hypothesis/src/hypothesis/extra/ghostwriter.py:1062
↓ 7 callersFunction_assert_eq
(style: str, a: str, b: str)
hypothesis/src/hypothesis/extra/ghostwriter.py:578
↓ 7 callersFunction_check_except
(except_: Except)
hypothesis/src/hypothesis/extra/ghostwriter.py:162
↓ 7 callersFunction_check_style
(style: str)
hypothesis/src/hypothesis/extra/ghostwriter.py:195
↓ 7 callersFunction_make_test
(imports: ImportSet, body: str)
hypothesis/src/hypothesis/extra/ghostwriter.py:1074
↓ 7 callersFunction_make_test_body
( *funcs: Callable, ghost: str, test_body: str, except_: tuple[type[Exception], ...], asse
hypothesis/src/hypothesis/extra/ghostwriter.py:817
↓ 7 callersFunctionbar
(x, **kwargs)
hypothesis/tests/cover/test_reflection.py:75
↓ 7 callersFunctionbc
()
hypothesis/tests/cover/test_control.py:39
↓ 7 callersFunctionbuffer_size_limit
(n)
hypothesis/tests/conjecture/common.py:77
↓ 7 callersFunctionchoice_to_index
(choice: ChoiceT, constraints: ChoiceConstraintsT)
hypothesis/src/hypothesis/internal/conjecture/choice.py:307
↓ 7 callersFunctionchoices_key
(choices: Sequence[ChoiceT])
hypothesis/src/hypothesis/internal/conjecture/choice.py:564
↓ 7 callersFunctionclamp
(lower: int, value: int, upper: int)
hypothesis/src/hypothesis/internal/floats.py:91
↓ 7 callersFunctioncleanup
Register a function to be called when the current test has finished executing. Any exceptions thrown in teardown will be printed but not rethr
hypothesis/src/hypothesis/control.py:248
↓ 7 callersFunctioncombine_labels
(*labels: int)
hypothesis/src/hypothesis/internal/conjecture/utils.py:61
↓ 7 callersMethodcreate
(self)
hypothesis/tests/cover/test_stateful.py:875
↓ 7 callersMethodcreate_if_missing
(self)
hypothesis/src/hypothesis/configuration.py:47
↓ 7 callersFunctioncurrently_in_test_context
Return ``True`` if the calling code is currently running inside an |@given| or :ref:`stateful <stateful>` test, and ``False`` otherwise. This
hypothesis/src/hypothesis/control.py:88
↓ 7 callersFunctiondates
dates(min_value=datetime.date.min, max_value=datetime.date.max) A strategy for dates between ``min_value`` and ``max_value``. Examples from
hypothesis/src/hypothesis/strategies/_internal/datetime.py:683
↓ 7 callersMethoddebug
(self, message: str)
hypothesis/src/hypothesis/internal/conjecture/engine.py:946
↓ 7 callersFunctiondecimals
Generates instances of :class:`python:decimal.Decimal`, which may be: - A finite rational number, between ``min_value`` and ``max_value``. -
hypothesis/src/hypothesis/strategies/_internal/core.py:1840
↓ 7 callersFunctionf
(v1, v2, data)
hypothesis/tests/cover/test_observability.py:114
↓ 7 callersFunctionfixed_dictionaries
( mapping: Mapping[K, SearchStrategy[V]], )
hypothesis/src/hypothesis/strategies/_internal/core.py:522
↓ 7 callersMethodfuzz_one_input
Run the test as a fuzz target, driven with the ``buffer`` of bytes. Depending on the passed ``buffer`` one of three things will happ
hypothesis/src/hypothesis/core.py:1732
↓ 7 callersFunctionga_empty_artifact
Creates an empty GitHub artifact.
hypothesis/tests/cover/test_database_backend.py:227
↓ 7 callersFunctionget_test_function
(source_code, settings_decorator=lambda fn: fn)
hypothesis/tests/ghostwriter/test_ghostwriter.py:47
↓ 7 callersMethodgetrandbits
(self, k: int)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1257
↓ 7 callersMethodreject
Reject the last example (i.e. don't count it towards our budget of elements because it's not going to go in the final collection).
hypothesis/src/hypothesis/internal/conjecture/utils.py:344
↓ 7 callersFunctionreport
(text: str)
hypothesis/src/hypothesis/reporting.py:54
↓ 7 callersMethodrun
Rerun the test case with this visitor and return the results of ``self.finish()``.
hypothesis/src/hypothesis/internal/conjecture/data.py:259
↓ 7 callersFunctionrun_tox
(task, version, *args, profile="dev")
tooling/src/hypothesistooling/__main__.py:775
↓ 7 callersFunctionsource_exec_as_module
(source: str)
hypothesis/src/hypothesis/internal/reflection.py:349
↓ 7 callersMethodstep
( self, selection_order: Callable[[int, int], Iterable[int]], f: Callable[[Chooser], N
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:130
↓ 7 callersFunctiontarget
()
hypothesis/tests/nocover/test_threading.py:191
↓ 7 callersFunctiontest_function
(data)
hypothesis/tests/nocover/test_exceptiongroup.py:32
↓ 7 callersFunctiontimezones
Any timezone from :pypi:`dateutil <python-dateutil>`. This strategy minimises to UTC, or the timezone with the smallest offset from UTC as of
hypothesis/src/hypothesis/extra/dateutil.py:44
↓ 7 callersFunctiontry_convert
(typ, value, name)
hypothesis/src/hypothesis/internal/validation.py:80
↓ 7 callersMethodutcoffset
(self, value)
hypothesis/tests/cover/test_datetimes.py:255
↓ 7 callersMethodwith_detail
(cls, detail: str)
hypothesis/src/hypothesis/errors.py:120
↓ 7 callersMethodwith_value
(self, value: T)
hypothesis/src/hypothesis/utils/dynamicvariables.py:33
↓ 6 callersMethod__init__
(self, owner: "Spans", index: int)
hypothesis/src/hypothesis/internal/conjecture/data.py:173
↓ 6 callersMethod__init__
(self, conjecturedata: "ConjectureData | None", /)
hypothesis/tests/conjecture/test_provider.py:70
↓ 6 callersFunction_get_module
(obj)
hypothesis/src/hypothesis/extra/ghostwriter.py:747
↓ 6 callersFunction_get_output
(test_fn)
hypothesis/tests/cover/test_custom_reprs.py:20
↓ 6 callersFunction_get_params
Get non-vararg parameters of `func` as an ordered dict.
hypothesis/src/hypothesis/extra/ghostwriter.py:480
↓ 6 callersFunction_hash
(key: bytes)
hypothesis/src/hypothesis/database.py:418
↓ 6 callersMethod_key_path
(self, key: bytes)
hypothesis/src/hypothesis/database.py:468
↓ 6 callersFunctionarrays
( dtype: Union["np.dtype[G]", st.SearchStrategy["np.dtype[G]"]], shape: int | st.SearchStrategy[int] |
hypothesis/src/hypothesis/extra/numpy.py:469
↓ 6 callersMethodbundle
(self, name)
hypothesis/src/hypothesis/stateful.py:374
↓ 6 callersFunctioncapture_verbosity
()
hypothesis/tests/cover/test_verbosity.py:23
↓ 6 callersFunctiondraw_value
(choice_type, constraints)
hypothesis/tests/conjecture/common.py:159
↓ 6 callersFunctionevent
Record an event that occurred during this test. Statistics on the number of test runs with each event will be reported at the end if you run Hypot
hypothesis/src/hypothesis/control.py:294
↓ 6 callersFunctionf
(x)
hypothesis/tests/conjecture/test_provider.py:696
↓ 6 callersFunctionfloor
(x)
hypothesis/src/hypothesis/internal/compat.py:206
↓ 6 callersFunctionfractions
Returns a strategy which generates Fractions. If ``min_value`` is not None then all generated values are no less than ``min_value``. If ``ma
hypothesis/src/hypothesis/strategies/_internal/core.py:1713
↓ 6 callersFunctionis_first_param_referenced_in_function
Is the given name referenced within f?
hypothesis/src/hypothesis/internal/reflection.py:256
↓ 6 callersFunctionis_identity_function
(f: Callable)
hypothesis/src/hypothesis/internal/reflection.py:533
↓ 6 callersFunctionis_negative
(x: f64)
hypothesis/rust/src/internal/floats.rs:124
↓ 6 callersFunctionmake_mock_xp
( *, exclude: tuple[str, ...] = (), exclude_methods: tuple[str, ...] = () )
hypothesis/tests/array_api/test_partial_adoptors.py:60
↓ 6 callersMethodof_length
(cls, n: int)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:90
↓ 6 callersFunctionremove_observability_callback
Removes ``f`` from the |observability| callbacks. If ``f`` is not in the list of observability callbacks, silently do nothing. If runni
hypothesis/src/hypothesis/internal/observability.py:294
↓ 6 callersFunctionrestore_callbacks
()
hypothesis/tests/cover/test_observability.py:609
↓ 6 callersMethodreuse_existing_examples
If appropriate (we have a database and have been told to use it), try to reload existing examples from the database. If there are a l
hypothesis/src/hypothesis/internal/conjecture/engine.py:1009
↓ 6 callersMethodsave
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/extra/redis.py:107
↓ 6 callersMethodseed
(self, *args: Any, **kwargs: Any)
hypothesis/src/hypothesis/internal/entropy.py:32
↓ 6 callersFunctiontest_fn
(x)
hypothesis/tests/cover/test_explicit_examples.py:270
↓ 6 callersFunctionunique_events
(stats)
hypothesis/tests/cover/test_statistical_events.py:47
↓ 6 callersMethodunpin
Undo one previous call to ``pin(key)``. The value stays the same. Once all calls are undone this key may be evicted as normal.
hypothesis/src/hypothesis/internal/cache.py:155
↓ 5 callersMethod_draw
(self, choice_type, constraints)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:400
↓ 5 callersMethod_draw
( self, choice_type: Literal["integer"], constraints: IntegerConstraints, *,
hypothesis/src/hypothesis/internal/conjecture/data.py:745
↓ 5 callersFunction_float_to_position
Map a non-negative float to a linear integer position such that adjacent representable floats correspond to adjacent integers. For ``f <= MAX
hypothesis/src/hypothesis/internal/conjecture/shrinking/floats.py:24
↓ 5 callersMethod_pooled_constraints
( self, choice_type: Literal["integer"], constraints: IntegerConstraints )
hypothesis/src/hypothesis/internal/conjecture/data.py:1007
↓ 5 callersFunctionall_children
( choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT )
hypothesis/src/hypothesis/internal/conjecture/datatree.py:286
↓ 5 callersFunctionall_files
()
tooling/src/hypothesistooling/git.py:123
↓ 5 callersFunctionassert_failing_output
( test, prefix="Failing test case", *, expected_exception=AssertionError, **kwargs, )
hypothesis/tests/common/utils.py:183
↓ 5 callersFunctionat
(day, hour, minute=0, *, key, fold=0)
hypothesis/tests/datetime/test_zoneinfo_timezones.py:111
↓ 5 callersFunctionbinary
Generates :class:`python:bytes`. The generated :class:`python:bytes` will have a length of at least ``min_size`` and at most ``max_size``. I
hypothesis/src/hypothesis/strategies/_internal/core.py:981
↓ 5 callersFunctioncheck_valid_bound
Checks that value is either unspecified, or a valid interval bound. Otherwise raises InvalidArgument.
hypothesis/src/hypothesis/internal/validation.py:52
↓ 5 callersFunctioncheck_valid_dims
(dims, name)
hypothesis/src/hypothesis/extra/_array_helpers.py:84
↓ 5 callersFunctioncheck_valid_size
Checks that value is either unspecified, or a valid non-negative size expressed as an integer. Otherwise raises InvalidArgument.
hypothesis/src/hypothesis/internal/validation.py:95
↓ 5 callersFunctioncurrent_verbosity
()
hypothesis/src/hypothesis/reporting.py:39
↓ 5 callersFunctiondedent
(text: str)
hypothesis/src/hypothesis/extra/_patching.py:61
↓ 5 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/extra/redis.py:111
↓ 5 callersFunctiondeliver_observation
(observation: Observation)
hypothesis/src/hypothesis/internal/observability.py:346
↓ 5 callersFunctiondictionaries
Generates dictionaries of type ``dict_class`` with keys drawn from the ``keys`` argument and values drawn from the ``values`` argument. The s
hypothesis/src/hypothesis/strategies/_internal/core.py:602
↓ 5 callersFunctiondo_work
(*, multiplier=1)
hypothesis/tests/nocover/test_threading.py:99
↓ 5 callersMethoddraw_value
( self, choice_type: ChoiceTypeT, value: ChoiceT, *, was_forced: bool,
hypothesis/src/hypothesis/internal/conjecture/datatree.py:1029
↓ 5 callersFunctionf
(n)
hypothesis/tests/crosshair/test_crosshair.py:35
↓ 5 callersFunctionf
(n1)
hypothesis/tests/cover/test_health_checks.py:208
↓ 5 callersFunctionf
()
hypothesis/tests/cover/test_reflection.py:215
↓ 5 callersFunctionf16_bits_to_f64
Widen the raw 16 bits of an IEEE 754 half-precision float to `f64`.
hypothesis/rust/src/internal/floats.rs:85
↓ 5 callersFunctionfrom_model
Return a strategy for examples of ``model``. .. warning:: Hypothesis creates saved models. This will run inside your testing tran
hypothesis/src/hypothesis/extra/django/_impl.py:65
↓ 5 callersFunctiongc_cumulative_time
()
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:460
↓ 5 callersMethodgenerate_novel_prefix
Generate a short random string that (after rewriting) is not a prefix of any choice sequence previously added to the tree. The result
hypothesis/src/hypothesis/internal/conjecture/datatree.py:702
↓ 5 callersFunctionget_output
(testdir, suite, *args)
hypothesis/tests/pytest/test_statistics.py:19
↓ 5 callersFunctionget_pyright_analysed_type
(fname)
whole_repo_tests/types/test_pyright.py:376
↓ 5 callersFunctionget_trimmed_traceback
Return the current traceback, minus any frames added by Hypothesis.
hypothesis/src/hypothesis/internal/escalation.py:60
↓ 5 callersFunctioninner
(a)
hypothesis/tests/cover/test_given_error_conditions.py:49
↓ 5 callersFunctionis_generic_type
Decides whether a given type is generic or not.
hypothesis/src/hypothesis/strategies/_internal/types.py:603
↓ 5 callersMethodmove
(self, src: bytes, dest: bytes, value: bytes)
hypothesis/src/hypothesis/extra/redis.py:115
← previousnext →201–300 of 6,315, ranked by callers