MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,291 in github.com/HypothesisWorks/hypothesis

↓ 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:736
↓ 1 callersFunctionregister_for
(field_type)
hypothesis/src/hypothesis/extra/django/_fields.py:113
↓ 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:2503
↓ 1 callersFunctionremove_consecutive_newlines_in_rst
(path: Path)
tooling/src/hypothesistooling/__main__.py:232
↓ 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:571
↓ 1 callersFunctionresolve_strategies
(typ)
hypothesis/src/hypothesis/strategies/_internal/types.py:1351
↓ 1 callersFunctionrestore_all
()
hypothesis/src/hypothesis/internal/entropy.py:228
↓ 1 callersFunctionresult
(draw)
hypothesis/src/hypothesis/extra/pandas/impl.py:324
↓ 1 callersFunctionreuse_group
(draw, group_name)
hypothesis/src/hypothesis/strategies/_internal/regex.py:84
↓ 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:543
↓ 1 callersFunctionrows_only
(draw)
hypothesis/src/hypothesis/extra/pandas/impl.py:540
↓ 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:1407
↓ 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:1876
↓ 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:461
↓ 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:257
↓ 1 callersMethodset_element
(self, val, result, idx, *, fill=False)
hypothesis/src/hypothesis/extra/numpy.py:276
↓ 1 callersMethodsetstate
(self, state)
hypothesis/src/hypothesis/strategies/_internal/random.py:349
↓ 1 callersMethodsetstate
(self, state)
hypothesis/src/hypothesis/strategies/_internal/random.py:425
↓ 1 callersFunctionsetup
(app)
hypothesis/docs/conf.py:111
↓ 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:881
↓ 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
↓ 1 callersFunctionsig_of
(name)
hypothesis/src/hypothesis/strategies/_internal/random.py:113
↓ 1 callersFunctionsimplest_failure
(x)
hypothesis/tests/cover/test_traceback_elision.py:25
↓ 1 callersMethodsize
(self, tree)
hypothesis/tests/nocover/test_stateful.py:71
↓ 1 callersFunctionslow_once
(i)
hypothesis/tests/cover/test_deadline.py:119
↓ 1 callersFunctionslow_shrinker
()
hypothesis/tests/conjecture/test_engine.py:108
↓ 1 callersMethodsort_regions
Guarantees that for each i we have tried to swap index i with index i + 1. This uses an adaptive algorithm that works by sorting cont
hypothesis/src/hypothesis/internal/conjecture/shrinking/ordering.py:44
↓ 1 callersMethodsort_regions_with_gaps
Guarantees that for each i we have tried to swap index i with index i + 2. This uses an adaptive algorithm that works by sorting cont
hypothesis/src/hypothesis/internal/conjecture/shrinking/ordering.py:64
↓ 1 callersMethodspan_end
Marks the end of a semantically meaningful span of choices. ``discard`` is ``True`` when the draw was filtered out or otherwise marked
hypothesis/src/hypothesis/internal/conjecture/providers.py:745
↓ 1 callersMethodspan_start
Marks the beginning of a semantically meaningful span of choices. Spans are a depth-first tree structure. A span is opened by a call to
hypothesis/src/hypothesis/internal/conjecture/providers.py:687
↓ 1 callersMethodsplit_at
Splits the tree so that it can incorporate a decision at the draw call corresponding to the node at position i. Raises Flaky
hypothesis/src/hypothesis/internal/conjecture/datatree.py:438
↓ 1 callersMethodst_classmethod_then_composite
(draw, cls)
hypothesis/tests/cover/test_composite.py:150
↓ 1 callersMethodst_composite_method
(draw, self)
hypothesis/tests/cover/test_composite.py:169
↓ 1 callersMethodst_composite_then_classmethod
(draw, cls)
hypothesis/tests/cover/test_composite.py:155
↓ 1 callersMethodst_composite_then_staticmethod
(draw)
hypothesis/tests/cover/test_composite.py:165
↓ 1 callersMethodst_staticmethod_then_composite
(draw)
hypothesis/tests/cover/test_composite.py:160
↓ 1 callersFunctionstandard_tox_task
(name, py=ci_version_python)
tooling/src/hypothesistooling/__main__.py:819
↓ 1 callersMethodstart_span
Called at the start of each span, with ``i`` the index of the span and ``label_index`` the index of its label in ``self.spans.labels``
hypothesis/src/hypothesis/internal/conjecture/data.py:286
↓ 1 callersMethodstart_span
(self, i: int, label_index: int)
hypothesis/src/hypothesis/internal/conjecture/data.py:399
↓ 1 callersFunctionstate_for_seed
(data, seed)
hypothesis/src/hypothesis/strategies/_internal/random.py:155
↓ 1 callersMethodstep
(self, shrink_pass: ShrinkPass, *, random_order: bool = False)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:832
↓ 1 callersMethodstop_span
Called at the end of each span, with ``i`` the index of the span and ``discarded`` being ``True`` if ``stop_span`` was called with ``d
hypothesis/src/hypothesis/internal/conjecture/data.py:291
↓ 1 callersMethodstop_span
(self, *, discard: bool)
hypothesis/src/hypothesis/internal/conjecture/data.py:345
↓ 1 callersFunctionstrat_one
(draw)
hypothesis/tests/cover/test_regressions.py:38
↓ 1 callersFunctionstrat_two
(draw)
hypothesis/tests/cover/test_regressions.py:43
↓ 1 callersFunctionstrip_trailing_whitespace
Patches have whitespace-only lines; strip that out.
hypothesis/tests/patching/test_patching.py:63
↓ 1 callersFunctionstuff
(*args)
hypothesis/tests/cover/test_composite.py:95
↓ 1 callersMethodswap
Swap the elements ls[i], ls[j].
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:227
↓ 1 callersFunctiont
()
hypothesis/tests/conjecture/test_shrinker.py:427
↓ 1 callersFunctiont
(s)
hypothesis/tests/cover/test_explicit_examples.py:335
↓ 1 callersFunctiontags
()
tooling/src/hypothesistooling/git.py:17
↓ 1 callersFunctiontask
(if_changed=())
tooling/src/hypothesistooling/__main__.py:73
↓ 1 callersFunctiontask1
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:156
↓ 1 callersFunctiontask2
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:159
↓ 1 callersFunctiontask_invalid_argument
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:117
↓ 1 callersFunctiontask_stoptest
(d: DataObject)
hypothesis/tests/nocover/test_exceptiongroup.py:112
↓ 1 callersFunctiontasks
Print a list of all task names supported by the build system.
tooling/src/hypothesistooling/__main__.py:1064
↓ 1 callersMethodteardown
Called after a run has finished executing to clean up any necessary state. Does nothing by default.
hypothesis/src/hypothesis/stateful.py:490
↓ 1 callersMethodteardown
(self)
hypothesis/tests/nocover/test_strategy_state.py:49
↓ 1 callersFunctiontemp_register_profile
(name, parent, **kwargs)
hypothesis/tests/cover/test_settings.py:54
↓ 1 callersFunctiontest
(n)
hypothesis/tests/crosshair/test_crosshair.py:215
↓ 1 callersFunctiontest
(value)
hypothesis/tests/conjecture/test_provider.py:200
↓ 1 callersFunctiontest
(i)
hypothesis/tests/nocover/test_database_usage.py:153
↓ 1 callersFunctiontest
(x)
hypothesis/tests/nocover/test_integer_ranges.py:24
↓ 1 callersFunctiontest
(x)
hypothesis/tests/nocover/test_deferred_errors.py:37
↓ 1 callersFunctiontest
(ls)
hypothesis/tests/nocover/test_targeting.py:75
↓ 1 callersFunctiontest
(rnd, i)
hypothesis/tests/nocover/test_limits.py:19
↓ 1 callersFunctiontest
(x)
hypothesis/tests/nocover/test_modify_inner_test.py:99
↓ 1 callersFunctiontest
(x)
hypothesis/tests/array_api/test_arrays.py:259
↓ 1 callersFunctiontest
(i)
hypothesis/tests/cover/test_debug_information.py:26
↓ 1 callersFunctiontest
(s)
hypothesis/tests/cover/test_fuzz_one_input.py:39
↓ 1 callersFunctiontest
(s)
hypothesis/tests/cover/test_regex.py:510
↓ 1 callersFunctiontest
(d)
hypothesis/tests/cover/test_error_in_draw.py:22
↓ 1 callersFunctiontest
(f)
hypothesis/tests/cover/test_float_nastiness.py:127
↓ 1 callersFunctiontest
(e)
hypothesis/tests/cover/test_deferred_strategies.py:101
↓ 1 callersFunctiontest
(x, y)
hypothesis/tests/cover/test_failing_test_case_output.py:27
↓ 1 callersFunctiontest
(v)
hypothesis/tests/cover/test_regressions.py:60
↓ 1 callersMethodtest
(self, i)
hypothesis/tests/nocover/test_cacheable.py:64
← previousnext →1,301–1,400 of 6,291, ranked by callers