MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,708 in github.com/HypothesisWorks/hypothesis

↓ 1 callersMethodmask_high_bits
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/integer.py:52
↓ 1 callersFunctionmatrix
(draw)
hypothesis/tests/cover/test_composite.py:112
↓ 1 callersFunctionmaybe_pad
Attempt to insert padding around the result of a regex draw while preserving the match.
hypothesis/src/hypothesis/strategies/_internal/regex.py:246
↓ 1 callersFunctionmerge_base
(a, b)
tooling/src/hypothesistooling/git.py:45
↓ 1 callersFunctionmerge_preds
(*con_predicates: ConstructivePredicate)
hypothesis/src/hypothesis/internal/filtering.py:134
↓ 1 callersFunctionminimal_for_strategy
(s)
hypothesis/tests/nocover/test_precise_shrinking.py:150
↓ 1 callersFunctionminimal_nodes_for_strategy
(s)
hypothesis/tests/nocover/test_precise_shrinking.py:154
↓ 1 callersFunctionmodified_files
()
tooling/src/hypothesistooling/git.py:98
↓ 1 callersMethodmove
Move ``value`` from key ``src`` to key ``dest``. Equivalent to ``delete(src, value)`` followed by ``save(src, value)``, but
hypothesis/src/hypothesis/database.py:255
↓ 1 callersMethodmove
(self, src: bytes, dest: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:803
↓ 1 callersMethodmove
(self, src: bytes, dest: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:1217
↓ 1 callersFunctionmultiple_stoptest
(data: DataObject)
hypothesis/tests/cover/test_exceptiongroup.py:118
↓ 1 callersFunctionmultiple_stoptest_2
(data: DataObject)
hypothesis/tests/cover/test_exceptiongroup.py:129
↓ 1 callersFunctionnaive_datetime64_dtype
The underlying timezone-naive ``datetime64[unit]`` dtype that backs a :class:`~pandas.DatetimeTZDtype`.
hypothesis/src/hypothesis/extra/pandas/impl.py:94
↓ 1 callersFunctionnested_dtypes
Return the most-general dtype strategy. Elements drawn from this strategy may be simple (from the subtype_strategy), or several such values d
hypothesis/src/hypothesis/extra/numpy.py:1040
↓ 1 callersFunctionnested_stoptest
(data: DataObject)
hypothesis/tests/cover/test_exceptiongroup.py:94
↓ 1 callersMethodnew_entry
Called when a key is written that does not currently appear in the map. Returns the score to associate with the key.
hypothesis/src/hypothesis/internal/cache.py:219
↓ 1 callersFunctionnew_given_signature
Make an updated signature for the wrapped test.
hypothesis/src/hypothesis/core.py:812
↓ 1 callersFunctionnext_up_normal
(value: f64, width: u32, allow_subnormal: bool)
hypothesis/rust/src/internal/floats.rs:226
↓ 1 callersFunctionnodes
(draw, *, was_forced=None, choice_types=None)
hypothesis/tests/conjecture/common.py:171
↓ 1 callersFunctionnodes_inline
For inline-creating a choice node or list of choice nodes, where you don't care about the constraints. This uses maximally-permissable constr
hypothesis/tests/conjecture/common.py:187
↓ 1 callersFunctionnote_statistics
(stats_dict: "StatisticsDict")
hypothesis/src/hypothesis/statistics.py:26
↓ 1 callersFunctionnotice_initialization_restarted
Reset _first_postinit_what, so that we don't think we're in post-init. Additionally, if it was set that means that there has been a sideeffect tha
hypothesis/src/hypothesis/configuration.py:124
↓ 1 callersFunctionnumeric_bounds_from_ast
Take an AST; return a ConstructivePredicate. >>> lambda x: x >= 0 {"min_value": 0}, None >>> lambda x: x < 10 {"max_value": 10, "excl
hypothesis/src/hypothesis/internal/filtering.py:178
↓ 1 callersFunctiono
(e,n,t,r,s,g)
website/theme/static/prism.js:3
↓ 1 callersMethodobserve_for_provider
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:996
↓ 1 callersFunctionoffset
(timezone)
hypothesis/tests/datetime/test_dateutil_timezones.py:92
↓ 1 callersMethodon_access
Called every time a key that is already in the map is read or written. Returns the new score for the key.
hypothesis/src/hypothesis/internal/cache.py:227
↓ 1 callersMethodon_evict
Called after a key has been evicted, with the score it had had at the point of eviction.
hypothesis/src/hypothesis/internal/cache.py:235
↓ 1 callersMethodon_evict
Register a listener function that will be called with data when it gets removed from the front because something else dominates it.
hypothesis/src/hypothesis/internal/conjecture/pareto.py:257
↓ 1 callersFunctionoops
(*args)
hypothesis/tests/cover/test_validation.py:101
↓ 1 callersFunctionoops
(s)
hypothesis/tests/cover/test_flakiness.py:132
↓ 1 callersFunctionoptional_union_parameter
(a: float, b: float | int | None)
hypothesis/tests/ghostwriter/test_expected_output.py:106
↓ 1 callersFunctionordered_intersection
Set union of n sequences, ordered for reproducibility across runs.
hypothesis/src/hypothesis/strategies/_internal/attrs.py:201
↓ 1 callersMethodpassing_choice_sequences
Return a collection of choice sequence nodes which cause the test to pass. Optionally restrict this by a certain prefix, which is useful for e
hypothesis/src/hypothesis/internal/conjecture/engine.py:1794
↓ 1 callersMethodpdf
(self, x: float)
hypothesis/src/hypothesis/internal/statistics.py:138
↓ 1 callersMethodper_test_case_context_manager
(self)
hypothesis/tests/conjecture/test_provider.py:779
↓ 1 callersFunctionplot
(data, out)
hypothesis/benchmark/graph.py:114
↓ 1 callersFunctionplot_vega
(vega_spec, data, *, to, parameters=None)
hypothesis/benchmark/graph.py:19
↓ 1 callersFunctionpop
(l)
hypothesis/tests/conjecture/test_junkdrawer.py:114
↓ 1 callersMethodprep_args_kwargs_from_strategies
( self, kwarg_strategies: dict[str, Any], )
hypothesis/src/hypothesis/control.py:194
↓ 1 callersFunctionpretty_file_name
(f: str)
hypothesis/src/hypothesis/internal/coverage.py:37
↓ 1 callersFunctionpush_tag
(tagname)
tooling/src/hypothesistooling/git.py:88
↓ 1 callersFunctionraise_hypothesis_usage_error
(msg)
hypothesis/src/_hypothesis_pytestplugin.py:211
↓ 1 callersFunctionrandom
(self)
hypothesis/src/hypothesis/strategies/_internal/random.py:99
↓ 1 callersFunctionrandom_func
(x)
hypothesis/tests/cover/test_regressions.py:111
↓ 1 callersMethodrealize
(self, value, *, for_failure=False)
hypothesis/tests/conjecture/test_provider.py:427
↓ 1 callersFunctionrealize_choices
(data: ConjectureData, *, for_failure: bool)
hypothesis/src/hypothesis/internal/conjecture/engine.py:261
↓ 1 callersFunctionrecord_and_test_size
(xs)
hypothesis/tests/nocover/test_flatmap.py:59
↓ 1 callersFunctionrecord_branch
(name, value)
hypothesis/src/hypothesis/internal/coverage.py:61
↓ 1 callersMethodrecord_choice
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:373
↓ 1 callersMethodrecord_for_health_check
(self, data: ConjectureData)
hypothesis/src/hypothesis/internal/conjecture/engine.py:818
↓ 1 callersFunctionrecur
(i)
hypothesis/tests/conjecture/test_junkdrawer.py:200
↓ 1 callersFunctionrecur
(i, data)
hypothesis/tests/conjecture/test_engine.py:163
↓ 1 callersFunctionrecur2
(strat: SearchStrategy)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:196
↓ 1 callersFunctionrecurse
(codes)
hypothesis/src/hypothesis/strategies/_internal/regex.py:390
↓ 1 callersMethodreduce_each_alternative
This is a pass that is designed to rerandomise use of the one_of strategy or things that look like it, in order to try to move from la
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:740
↓ 1 callersFunctionregister_for
(field_type)
hypothesis/src/hypothesis/extra/django/_fields.py:115
↓ 1 callersFunctionregister_type_strategy
Add an entry to the global type-to-strategy lookup. This lookup is used in :func:`~hypothesis.strategies.builds` and |@given|. :func:`~h
hypothesis/src/hypothesis/strategies/_internal/core.py:2556
↓ 1 callersFunctionremove_consecutive_newlines_in_rst
(path: Path)
tooling/src/hypothesistooling/__main__.py:234
↓ 1 callersMethodreplay_choices
Called when Hypothesis has discovered a |choice sequence| which the provider may wish to enqueue to replay under its own instrumentat
hypothesis/src/hypothesis/internal/conjecture/providers.py:618
↓ 1 callersFunctionreqs_kwonly
(*, a, b)
hypothesis/tests/cover/test_annotations.py:61
↓ 1 callersFunctionrequires_arg
Similar to the enum.Enum.__call__ method.
hypothesis/tests/cover/test_direct_strategies.py:576
↓ 1 callersFunctionresolve_strategies
(typ)
hypothesis/src/hypothesis/strategies/_internal/types.py:1356
↓ 1 callersFunctionrestore_all
()
hypothesis/src/hypothesis/internal/entropy.py:228
↓ 1 callersFunctionresult
(draw)
hypothesis/src/hypothesis/extra/pandas/impl.py:436
↓ 1 callersFunctionreuse_group
(draw, group_name)
hypothesis/src/hypothesis/strategies/_internal/regex.py:94
↓ 1 callersFunctionreverse64
Reverse a 64-bit integer bitwise. We do this by breaking it up into 8 bytes. The 64-bit integer is then the concatenation of each of these by
hypothesis/src/hypothesis/internal/conjecture/floats.py:131
↓ 1 callersFunctionreverse_bits
(x: int, n: int)
hypothesis/src/hypothesis/internal/conjecture/floats.py:158
↓ 1 callersFunctionrow
()
hypothesis/src/hypothesis/extra/pandas/impl.py:657
↓ 1 callersFunctionrows_only
(draw)
hypothesis/src/hypothesis/extra/pandas/impl.py:654
↓ 1 callersMethodrule_label
(self, name: str)
hypothesis/src/hypothesis/extra/lark.py:178
↓ 1 callersFunctionrun
()
hypothesis/src/hypothesis/entry_points.py:22
↓ 1 callersMethodrun
(self)
hypothesis/src/hypothesis/internal/conjecture/optimiser.py:52
↓ 1 callersMethodrun_engine
Run the test function many times, on database input and generated input, using the Conjecture engine.
hypothesis/src/hypothesis/core.py:1402
↓ 1 callersFunctionrun_in_process
(fn: Callable[..., FTZCulprits], *args: object)
hypothesis/src/_hypothesis_ftz_detector.py:51
↓ 1 callersFunctionrun_locally
()
hypothesis/tests/nocover/test_cacheable.py:60
↓ 1 callersMethodrun_node_program
Node programs are a mini-DSL for node rewriting, defined as a sequence of commands that can be run at some index into the nodes Comma
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1925
↓ 1 callersMethodrun_step
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/ordering.py:40
↓ 1 callersMethodrun_step
Run a single step of the main shrink loop, attempting to improve the current value.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:177
↓ 1 callersFunctionrun_test
()
hypothesis/tests/cover/test_testdecorators.py:355
↓ 1 callersFunctionrun_to_data
(f)
hypothesis/tests/conjecture/common.py:55
↓ 1 callersFunctionrun_to_notes
(TestClass)
hypothesis/tests/nocover/test_stateful.py:29
↓ 1 callersMethodsave
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:1209
↓ 1 callersMethodsave
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:462
↓ 1 callersFunctionsave_patch
(patch: str, *, slug: str = "")
hypothesis/src/hypothesis/extra/_patching.py:335
↓ 1 callersFunctionscore
(enabled)
hypothesis/tests/nocover/test_targeting.py:66
↓ 1 callersFunctionseed
Seed the randomness for this test. ``seed`` may be any hashable object. No exact meaning for ``seed`` is provided other than that for a
hypothesis/src/hypothesis/core.py:342
↓ 1 callersFunctionseries
Provides a strategy for producing a :class:`pandas.Series`. Arguments: * elements: a strategy that will be used to generate the individual
hypothesis/src/hypothesis/extra/pandas/impl.py:353
↓ 1 callersMethodset_element
(self, val, result, idx, *, fill=False)
hypothesis/src/hypothesis/extra/numpy.py:276
↓ 1 callersFunctionset_hypothesis_home_dir
(directory: str | Path | None)
hypothesis/src/hypothesis/configuration.py:24
↓ 1 callersMethodsetstate
(self, state)
hypothesis/src/hypothesis/strategies/_internal/random.py:348
↓ 1 callersMethodsetstate
(self, state)
hypothesis/src/hypothesis/strategies/_internal/random.py:424
↓ 1 callersFunctionsetup
(app)
hypothesis/docs/conf.py:206
↓ 1 callersMethodsetup
Runs initial setup code. Convenience function for children that doesn't require messing with the signature of init.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:52
↓ 1 callersMethodsetup
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/floats.py:47
↓ 1 callersFunctionsetup_pyodide
()
tooling/src/hypothesistooling/__main__.py:969
↓ 1 callersMethodshift_right
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinking/integer.py:48
↓ 1 callersMethodshort_circuit
Possibly attempt to do some shrinking. If this returns True, the ``run`` method will terminate early without doing any more work.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:164
↓ 1 callersMethodshrink_by_multiples
(self, k)
hypothesis/src/hypothesis/internal/conjecture/shrinking/integer.py:67
← previousnext →1,301–1,400 of 6,708, ranked by callers