MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,441 in github.com/HypothesisWorks/hypothesis

↓ 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
↓ 5 callersMethodnode_program
(self, program: str)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1359
↓ 5 callersFunctionpartition_attributes_and_stubs
( xp: Any, attributes: Iterable[str] )
hypothesis/src/hypothesis/extra/array_api.py:90
↓ 5 callersFunctionprecisely_shrink
Generates a random value from the strategy and then precisely shrinks it, by shrinking it with some value immediately afterwards that is not allow
hypothesis/tests/nocover/test_precise_shrinking.py:86
↓ 5 callersMethodremove_discarded
Try removing all nodes marked as discarded. This is primarily to deal with data that has been ignored while doing rejection sampling
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1308
↓ 5 callersMethodrewrite
Use previously seen ConjectureData objects to return a tuple of the rewritten choice sequence and the status we would get from running
hypothesis/src/hypothesis/internal/conjecture/datatree.py:814
↓ 5 callersFunctionrun
(command, *, cwd=None, input=None)
hypothesis/tests/codemods/test_codemod_cli.py:39
↓ 5 callersMethodsave
(self, key: bytes, value: bytes)
hypothesis/tests/cover/test_database_backend.py:804
↓ 5 callersMethodshrink_interesting_examples
If we've found interesting examples, try to replace each of them with a minimal interesting example with the same interesting_origin.
hypothesis/src/hypothesis/internal/conjecture/engine.py:1598
↓ 5 callersMethodsimulate_test_function
Run a simulated version of the test function recorded by this tree. Note that this does not currently call ``stop_span`` or ``start_sp
hypothesis/src/hypothesis/internal/conjecture/datatree.py:826
↓ 5 callersFunctionstartswith
(l1: Sequence[T], l2: Sequence[T])
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:509
↓ 5 callersFunctionstrat
(draw, arg)
hypothesis/tests/cover/test_composite.py:139
↓ 5 callersFunctionstructural_coverage
(label: int)
hypothesis/src/hypothesis/internal/conjecture/data.py:131
↓ 5 callersFunctiontest
(x)
hypothesis/tests/nocover/test_health_checks.py:34
↓ 5 callersFunctiontest
(x)
hypothesis/tests/cover/test_health_checks.py:39
↓ 5 callersFunctiontest
()
hypothesis/tests/cover/test_validation.py:74
↓ 5 callersFunctionverbose_report
(text: str)
hypothesis/src/hypothesis/reporting.py:44
↓ 5 callersFunctionwait_for
(condition, *, timeout=1, interval=0.01)
hypothesis/tests/common/utils.py:337
↓ 4 callersMethod__balance
When we have made a modification to the heap such that the heap property has been violated locally around i but previously held for al
hypothesis/src/hypothesis/internal/cache.py:229
↓ 4 callersMethod__init__
(self)
hypothesis/src/hypothesis/strategies/_internal/core.py:2010
↓ 4 callersMethod__init__
(self, strategies: Sequence[SearchStrategy[Ex]])
hypothesis/src/hypothesis/strategies/_internal/strategies.py:815
↓ 4 callersMethod__init__
(self)
hypothesis/tests/nocover/test_stateful.py:162
↓ 4 callersMethod__not_a_first_class_strategy
(self, name: str)
hypothesis/src/hypothesis/strategies/_internal/core.py:2419
↓ 4 callersMethod_cache_key
(self, choices: Sequence[ChoiceT])
hypothesis/src/hypothesis/internal/conjecture/engine.py:446
↓ 4 callersFunction_database_conforms_to_listener_api
( create_db, *, flush=None, supports_value_delete=True, parent_settings=None, )
hypothesis/tests/cover/test_database_backend.py:558
↓ 4 callersFunction_from_hashable_type
(type_)
hypothesis/src/hypothesis/strategies/_internal/types.py:1173
↓ 4 callersFunction_function_key
Returns a digest that differentiates functions that have different sources. Either a function or a code object may be passed. If code object, def
hypothesis/src/hypothesis/internal/lambda_sources.py:68
↓ 4 callersFunction_is_probably_ufunc
(obj)
hypothesis/src/hypothesis/extra/ghostwriter.py:1112
↓ 4 callersMethod_maybe_draw_constant
( self, choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *,
hypothesis/src/hypothesis/internal/conjecture/providers.py:769
↓ 4 callersMethod_pipeline
( self, *reset_expire_keys, execute_and_publish=True, event_type=None,
hypothesis/src/hypothesis/extra/redis.py:69
↓ 4 callersFunction_union_intervals
(x, y)
hypothesis/tests/cover/test_charmap.py:131
↓ 4 callersFunctionall_values
(db)
hypothesis/tests/common/utils.py:152
↓ 4 callersFunctionattach_timezone
Interpret a naive datetime64 :class:`~pandas.Series` or :class:`~pandas.Index` as UTC instants and convert it to ``tz``. We build timezone-aw
hypothesis/src/hypothesis/extra/pandas/impl.py:122
↓ 4 callersFunctionbase_regex_strategy
( regex: Pattern[AnyStr], *, parsed: sre_parse.SubPattern | None = None, alphabet: SearchStrat
hypothesis/src/hypothesis/strategies/_internal/regex.py:238
↓ 4 callersFunctionbase_report
(text: str)
hypothesis/src/hypothesis/reporting.py:59
↓ 4 callersFunctioncapture_reports
(test)
hypothesis/tests/cover/test_slippage.py:28
↓ 4 callersFunctioncargo
(toolchain, args, *, components=(), targets=())
tooling/src/hypothesistooling/cargo.py:39
↓ 4 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:184
↓ 4 callersMethodchar_in_shrink_order
(self, i: int)
hypothesis/src/hypothesis/internal/intervalsets.py:268
↓ 4 callersFunctioncheck_dtypes
(xp: Any, dtypes: list[DataType], stubs: list[str])
hypothesis/src/hypothesis/extra/array_api.py:581
↓ 4 callersFunctioncheck_sideeffect_during_initialization
Called from locations that should not be executed during initialization, for example touching disk or materializing lazy/deferred strategies from
hypothesis/src/hypothesis/configuration.py:78
↓ 4 callersFunctioncheck_valid_sizes
( category: str, sizes: Sequence[int], valid_sizes: Sequence[int] )
hypothesis/src/hypothesis/extra/array_api.py:628
↓ 4 callersFunctioncheck_valid_sizes
(min_size, max_size)
hypothesis/src/hypothesis/internal/validation.py:124
↓ 4 callersFunctionchoice_constraints_key
( choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT )
hypothesis/src/hypothesis/internal/conjecture/choice.py:594
↓ 4 callersFunctionchoice_key
(choice: ChoiceT)
hypothesis/src/hypothesis/internal/conjecture/choice.py:568
↓ 4 callersMethodclear_secondary_key
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1649
↓ 4 callersFunctioncollect_async_gen
(agen)
hypothesis/tests/cover/test_functions.py:45
↓ 4 callersFunctionconstants_from_ast
(tree)
hypothesis/tests/cover/test_constants_ast.py:51
↓ 4 callersFunctionconstants_from_module
(module: ModuleType, *, limit: bool = True)
hypothesis/src/hypothesis/internal/constants_ast.py:201
↓ 4 callersFunctiondatetime_tz_dtype
Return a normalised :class:`~pandas.DatetimeTZDtype` if ``dtype`` is a timezone-aware datetime dtype (e.g. ``"datetime64[ns, UTC]"``), else None.
hypothesis/src/hypothesis/extra/pandas/impl.py:66
↓ 4 callersFunctiondecode_failure
(blob: bytes)
hypothesis/src/hypothesis/core.py:432
↓ 4 callersMethoddelete
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:550
↓ 4 callersFunctiondeterministic_PRNG
Context manager that handles random.seed without polluting global state. See issue #1266 and PR #1295 for details and motivation - in short,
hypothesis/src/hypothesis/internal/entropy.py:244
↓ 4 callersMethoddifference
Set difference for lists of intervals. That is, returns a list of intervals that bounds all values bounded by x that are not also bounded by
hypothesis/src/hypothesis/internal/intervalsets.py:171
↓ 4 callersMethoddo_draw
(self, data)
hypothesis/tests/cover/test_direct_strategies.py:532
↓ 4 callersFunctiondomains
Generate :rfc:`1035` compliant fully qualified domain names.
hypothesis/src/hypothesis/provisional.py:154
↓ 4 callersFunctiondominance
Returns the dominance relation between ``left`` and ``right``, according to the rules that one ConjectureResult dominates another if and only if i
hypothesis/src/hypothesis/internal/conjecture/pareto.py:41
↓ 4 callersFunctiondraw_capped_multipart
( data, min_value, max_value, duration_names=DATENAMES + TIMENAMES )
hypothesis/src/hypothesis/strategies/_internal/datetime.py:201
↓ 4 callersFunctiondtype_from_name
(xp: Any, name: str)
hypothesis/src/hypothesis/extra/array_api.py:160
↓ 4 callersMethodexecute_once
Run the test function once, using ``data`` as input. If the test raises an exception, it will propagate through to the caller of this
hypothesis/src/hypothesis/core.py:984
↓ 4 callersMethodfetch
(self, key: bytes)
hypothesis/src/hypothesis/extra/redis.py:102
↓ 4 callersMethodfilter
( self, condition: Callable[[Ex], TypeGuard[T]] )
hypothesis/src/hypothesis/strategies/_internal/strategies.py:898
↓ 4 callersMethodflatmap
(self, f)
hypothesis/src/hypothesis/strategies/_internal/core.py:2413
↓ 4 callersFunctionfloat_of
(x: f64, width: u32)
hypothesis/rust/src/internal/floats.rs:115
↓ 4 callersMethodfreeze
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:1314
↓ 4 callersMethodfrom_string
Return a tuple of intervals, covering the codepoints of characters in `s`. >>> IntervalSet.from_string('abcdef0123456789') ((48, 57),
hypothesis/src/hypothesis/internal/intervalsets.py:37
↓ 4 callersMethodgenerate_new_examples
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1157
↓ 4 callersFunctiongit
(*args)
tooling/src/hypothesistooling/git.py:71
↓ 4 callersMethodgive_me_an_int
(self, x)
hypothesis/tests/cover/test_setup_teardown.py:32
↓ 4 callersFunctioninstall_hypothesis_editable
()
tooling/src/hypothesistooling/release.py:129
↓ 4 callersFunctionint_to_bytes
(i: int, size: int)
hypothesis/src/hypothesis/internal/compat.py:103
↓ 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:405
↓ 4 callersFunctionis_a_union
Return True if thing is a typing.Union or types.UnionType (in py310).
hypothesis/src/hypothesis/strategies/_internal/types.py:400
↓ 4 callersFunctionis_mock
Determine if the given argument is a mock type.
hypothesis/src/hypothesis/internal/reflection.py:44
↓ 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:1042
↓ 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:294
↓ 4 callersFunctionmake_report
(explanations, *, cap_lines_at=5)
hypothesis/src/hypothesis/internal/scrutineer.py:283
↓ 4 callersFunctionmake_testcase
( *, run_start: float, property: str, data: "ConjectureData", how_generated: str, repr
hypothesis/src/hypothesis/internal/observability.py:395
↓ 4 callersMethodmark_overrun
(self)
hypothesis/src/hypothesis/internal/conjecture/data.py:1364
↓ 4 callersMethodmove
(self, src: bytes, dest: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:532
↓ 4 callersMethodmove
(self, k1, k2, v)
hypothesis/tests/cover/test_database_backend.py:663
↓ 4 callersMethodnew_conjecture_data
( self, prefix: Sequence[ChoiceT | ChoiceTemplate], *, observer: DataObserver
hypothesis/src/hypothesis/internal/conjecture/engine.py:1576
↓ 4 callersFunctionnumeric_dtype_names
(base_name: str, sizes: Sequence[int])
hypothesis/src/hypothesis/extra/array_api.py:643
↓ 4 callersFunctionone_of
( __args: Sequence[SearchStrategy[Ex]], )
hypothesis/src/hypothesis/strategies/_internal/strategies.py:911
↓ 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:1964
↓ 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:39
↓ 4 callersFunctionresolve_Dict
(thing)
hypothesis/src/hypothesis/strategies/_internal/types.py:1192
↓ 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:917
↓ 4 callersFunctionscalar_dtypes
Return a strategy that can return any non-flexible scalar dtype.
hypothesis/src/hypothesis/extra/numpy.py:616
↓ 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:49
↓ 4 callersMethodsetstate
(self, *args: Any, **kwargs: Any)
hypothesis/src/hypothesis/internal/entropy.py:34
↓ 4 callersFunctionshould_note
()
hypothesis/src/hypothesis/control.py:263
← previousnext →301–400 of 6,441, ranked by callers