MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,441 in github.com/HypothesisWorks/hypothesis

↓ 3 callersFunctionprefix_selection_order
Select choices starting from ``prefix```, preferring to move left then wrapping around to the right.
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:18
↓ 3 callersFunctionrandom_selection_order
Select choices uniformly at random.
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:38
↓ 3 callersMethodrealize
Called whenever hypothesis requires a concrete (non-symbolic) value from a potentially symbolic value. Hypothesis will not check that
hypothesis/src/hypothesis/internal/conjecture/providers.py:599
↓ 3 callersMethodrecord_call
( self, obj: object, func: object, *, args: Sequence[object],
hypothesis/src/hypothesis/control.py:187
↓ 3 callersFunctionrecursive
base: A strategy to start from. extend: A function which takes a strategy and returns a new strategy. min_leaves: The minimum number of elem
hypothesis/src/hypothesis/strategies/_internal/core.py:1921
↓ 3 callersFunctionrecursive_property
Handle properties which may be mutually recursive among a set of strategies. These are essentially lazily cached properties, with the ability
hypothesis/src/hypothesis/strategies/_internal/strategies.py:83
↓ 3 callersFunctionregex_strategy
( regex: AnyStr | Pattern[AnyStr], fullmatch: bool, *, alphabet: SearchStrategy | None, _t
hypothesis/src/hypothesis/strategies/_internal/regex.py:259
↓ 3 callersFunctionregister_field_strategy
Add an entry to the global field-to-strategy lookup used by :func:`~hypothesis.extra.django.from_field`. ``field_type`` must be a subtype of
hypothesis/src/hypothesis/extra/django/_fields.py:340
↓ 3 callersFunctionreplace_tzinfo
(value, timezone)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:117
↓ 3 callersFunctionrequired_args
Return a set of names of required args to target that were not supplied in args or kwargs. This is used in builds() to determine which argume
hypothesis/src/hypothesis/internal/reflection.py:174
↓ 3 callersFunctionrestore_profile
()
hypothesis/tests/cover/test_settings.py:67
↓ 3 callersFunctionrude
(x)
hypothesis/tests/cover/test_flakiness.py:64
↓ 3 callersFunctionsafe_draw
Set up just enough of the Hypothesis machinery to use draw on a strategy.
hypothesis/tests/nocover/test_precise_shrinking.py:76
↓ 3 callersMethodsave
Save ``value`` under ``key``. If ``value`` is already present in ``key``, silently do nothing.
hypothesis/src/hypothesis/database.py:235
↓ 3 callersMethodsave
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:734
↓ 3 callersFunctionshortlex
(s)
hypothesis/src/hypothesis/internal/conjecture/engine.py:112
↓ 3 callersFunctionskip_exceptions_to_reraise
Return a tuple of exceptions meaning 'skip this test', to re-raise. This is intended to cover most common test runners; if you would like ano
hypothesis/src/hypothesis/core.py:776
↓ 3 callersFunctionstack_depth_of_caller
Get stack size for caller's frame. From https://stackoverflow.com/a/47956089/9297601 , this is a simple but much faster alternative to `len(i
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:284
↓ 3 callersFunctionstdtrit
Inverse Student's t CDF (quantile) for integer df >= 1. df ∈ {1, 2}: closed-form analytic quantile (Shaw 2006, eq 35-36). df >= 3: bracketed
hypothesis/src/hypothesis/internal/statistics.py:63
↓ 3 callersFunctionstuff
()
hypothesis/tests/nocover/test_database_usage.py:53
↓ 3 callersMethodsub_key
(self, sub_key: bytes | None)
hypothesis/src/hypothesis/internal/conjecture/engine.py:931
↓ 3 callersFunctiontest
(seq)
hypothesis/tests/numpy/test_from_type.py:136
↓ 3 callersFunctiontest
(*, x, y)
hypothesis/tests/cover/test_lookup_py38.py:169
↓ 3 callersFunctiontest
(data)
hypothesis/tests/cover/test_arbitrary_data.py:26
↓ 3 callersFunctiontest
(x)
hypothesis/tests/cover/test_explicit_examples.py:198
↓ 3 callersFunctiontest
(x)
hypothesis/tests/cover/test_flakiness.py:153
↓ 3 callersFunctiontest_blah
(x)
hypothesis/tests/cover/test_testdecorators.py:325
↓ 3 callersFunctiontest_fails
(x, y)
hypothesis/tests/cover/test_observability.py:136
↓ 3 callersFunctiontest_it
(a, b)
hypothesis/tests/cover/test_direct_strategies.py:628
↓ 3 callersFunctiontest_not_long_str
(x)
hypothesis/tests/cover/test_explicit_examples.py:90
↓ 3 callersFunctiontool_path
(name)
tooling/src/hypothesistooling/scripts.py:62
↓ 3 callersFunctiontry_issubclass
(thing, superclass)
hypothesis/src/hypothesis/strategies/_internal/types.py:302
↓ 3 callersMethodupdate_count
(self, *, condition: bool)
hypothesis/src/hypothesis/internal/observability.py:78
↓ 3 callersFunctionvalidate_deprecation
()
hypothesis/tests/common/utils.py:119
↓ 3 callersFunctionvalues
(draw)
hypothesis/tests/conjecture/test_choice.py:591
↓ 3 callersFunctionwith_observability_callback
A simple context manager which calls |add_observability_callback| on ``f`` when it enters and |remove_observability_callback| on ``f`` when i
hypothesis/src/hypothesis/internal/observability.py:332
↓ 2 callersMethod__entry_was_accessed
(self, i: int)
hypothesis/src/hypothesis/internal/cache.py:212
↓ 2 callersMethod__init__
( self, name: str, *, consume: bool = False, draw_references: bool = F
hypothesis/src/hypothesis/stateful.py:636
↓ 2 callersMethod__init__
(self, seed, note_method_calls)
hypothesis/src/hypothesis/strategies/_internal/random.py:392
↓ 2 callersMethod__init__
(self, conjecturedata: Optional["ConjectureData"], /)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1279
↓ 2 callersMethod__init__
(self, poison_chance)
hypothesis/tests/quality/test_poisoned_lists.py:26
↓ 2 callersMethod__init__
(self)
hypothesis/tests/cover/test_database_backend.py:799
↓ 2 callersFunction__python_executable
(version)
tooling/src/hypothesistooling/installers.py:44
↓ 2 callersMethod__update_exhausted
(self)
hypothesis/src/hypothesis/internal/conjecture/datatree.py:1196
↓ 2 callersMethod__with_transform
(self, name, f)
hypothesis/src/hypothesis/stateful.py:680
↓ 2 callersMethod__with_transform
(self, method, fn)
hypothesis/src/hypothesis/strategies/_internal/lazy.py:127
↓ 2 callersMethod_add_constant
(self, value: object)
hypothesis/src/hypothesis/internal/constants_ast.py:112
↓ 2 callersFunction_any_hypothesis_option
(config)
hypothesis/src/_hypothesis_pytestplugin.py:133
↓ 2 callersMethod_archive_directory_db
(self)
hypothesis/tests/cover/test_database_backend.py:443
↓ 2 callersMethod_array_or_list
( code: str, contents: Iterable[int] )
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:94
↓ 2 callersMethod_base_repr
(self)
hypothesis/src/hypothesis/stateful.py:694
↓ 2 callersFunction_boolean_dtypes
Return a strategy for just the boolean dtype object.
hypothesis/src/hypothesis/extra/array_api.py:598
↓ 2 callersFunction_calc_p_continue
Return the p_continue which will generate the desired average size.
hypothesis/src/hypothesis/internal/conjecture/utils.py:364
↓ 2 callersFunction_calling_function_location
(what: str, frame: Any)
hypothesis/src/hypothesis/control.py:37
↓ 2 callersFunction_collection_constraints
( draw: DrawFn, *, forced: Any | None, use_min_size: bool | None = None, use_max_size: boo
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:167
↓ 2 callersFunction_complex_dtypes
Return a strategy for complex dtype objects. ``sizes`` contains the complex sizes in bits, defaulting to ``(64, 128)`` which covers all valid
hypothesis/src/hypothesis/extra/array_api.py:709
↓ 2 callersFunction_constants_file_str
(constants: Constants)
hypothesis/src/hypothesis/internal/constants_ast.py:196
↓ 2 callersFunction_constants_from_source
(source: str | bytes, *, limit: bool)
hypothesis/src/hypothesis/internal/constants_ast.py:182
↓ 2 callersFunction_convert_targets
Single validator and converter for target arguments.
hypothesis/src/hypothesis/stateful.py:761
↓ 2 callersFunction_count_leaves
(tree)
hypothesis/tests/cover/test_recursive.py:127
↓ 2 callersFunction_dedupe_exceptions
(exc: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:151
↓ 2 callersMethod_deliver_information_message
( self, *, type: InfoObservationType, title: str, content: str | dict )
hypothesis/src/hypothesis/core.py:1389
↓ 2 callersMethod_draw_collection
(self, min_size, max_size, *, alphabet_size)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1207
↓ 2 callersMethod_ensure_directory_exists
(self)
hypothesis/src/hypothesis/database.py:452
↓ 2 callersFunction_exception_string
(except_: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:179
↓ 2 callersMethod_expect_delete
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:605
↓ 2 callersMethod_expect_event
(self, event_type, args)
hypothesis/tests/cover/test_database_backend.py:601
↓ 2 callersMethod_expect_save
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:610
↓ 2 callersFunction_floating_dtypes
Return a strategy for real-valued floating-point dtype objects. ``sizes`` contains the floating-point sizes in bits, defaulting to ``(32, 64)
hypothesis/src/hypothesis/extra/array_api.py:691
↓ 2 callersFunction_from_type_deferred
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1296
↓ 2 callersMethod_get_children_cache
( self, choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *, key: ChoiceT )
hypothesis/src/hypothesis/internal/conjecture/datatree.py:900
↓ 2 callersFunction_get_constraints
(args: tuple[Any, ...])
hypothesis/src/hypothesis/strategies/_internal/types.py:450
↓ 2 callersFunction_get_local_constants
()
hypothesis/src/hypothesis/internal/conjecture/providers.py:325
↓ 2 callersFunction_get_module_helper
(obj)
hypothesis/src/hypothesis/extra/ghostwriter.py:733
↓ 2 callersFunction_get_strategies
Return a dict of strategies for the union of arguments to `funcs`. If `pass_result_to_next_func` is True, assume that the result of each function
hypothesis/src/hypothesis/extra/ghostwriter.py:536
↓ 2 callersFunction_get_varnames
(funcs)
hypothesis/src/hypothesis/extra/ghostwriter.py:1549
↓ 2 callersFunction_gitignore_storage_dir_script
(*, home_dir=None)
hypothesis/tests/cover/test_filestorage.py:56
↓ 2 callersFunction_has_surrogate
(choice)
hypothesis/tests/cover/test_observability.py:490
↓ 2 callersFunction_imports_for_strategy
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:617
↓ 2 callersMethod_int_value
(value: "Verbosity")
hypothesis/src/hypothesis/_settings.py:118
↓ 2 callersFunction_integer_dtypes
Return a strategy for signed integer dtype objects. ``sizes`` contains the signed integer sizes in bits, defaulting to ``(8, 16, 32, 64)`` wh
hypothesis/src/hypothesis/extra/array_api.py:653
↓ 2 callersFunction_is_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:562
↓ 2 callersMethod_join
(self, timeout: float | None = None)
hypothesis/src/hypothesis/database.py:1199
↓ 2 callersFunction_join_argument_annotations
( annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:970
↓ 2 callersFunction_join_generics
( origin_type_data: tuple[str, set[str]] | None, annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:944
↓ 2 callersMethod_log_phase_statistics
( self, phase: Literal["reuse", "generate", "shrink", "explain"] )
hypothesis/src/hypothesis/internal/conjecture/engine.py:384
↓ 2 callersFunction_model_choice_strategy
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:291
↓ 2 callersFunction_node_pretty
( choice_type: ChoiceTypeT, value: ChoiceT, constraints: ChoiceConstraintsT, *, forced: bo
hypothesis/src/hypothesis/internal/conjecture/datatree.py:73
↓ 2 callersFunction_num_days_in_month
Branchless equivalent of ``monthrange(year, month)[1]`` for valid inputs. Written using only arithmetic and (in)equality, with no branching or in
hypothesis/src/hypothesis/strategies/_internal/datetime.py:189
↓ 2 callersFunction_numeric_dtypes
Return a strategy for all numeric dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:617
↓ 2 callersFunction_pack_uleb128
Serialize an integer into variable-length bytes. For each byte, the first 7 bits represent (part of) the integer, while the last bit indicate
hypothesis/src/hypothesis/database.py:1228
↓ 2 callersFunction_params_to_dict
( params: Iterable[inspect.Parameter], )
hypothesis/src/hypothesis/extra/ghostwriter.py:510
↓ 2 callersMethod_publish
(self, event)
hypothesis/src/hypothesis/extra/redis.py:92
↓ 2 callersFunction_raise_to_user
Helper function for attaching notes and grouping multiple errors.
hypothesis/src/hypothesis/core.py:1649
↓ 2 callersFunction_real_dtypes
Return a strategy for all real-valued dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:608
↓ 2 callersFunction_reject_dtype_class
(dtype: object)
hypothesis/src/hypothesis/extra/numpy.py:113
↓ 2 callersMethod_remove
(self, data: ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/pareto.py:281
↓ 2 callersFunction_resolve_forward_ref_in_caller
Try to resolve a forward reference name by walking up the call stack. This allows us to resolve recursive forward references like: A = li
hypothesis/src/hypothesis/strategies/_internal/types.py:251
↓ 2 callersFunction_run_and_get_junit
(testdir, *args)
hypothesis/tests/pytest/test_junit.py:31
↓ 2 callersFunction_serialize_event
( event: Any, *, allowed_types: tuple[type, ...] = (str,), avoid_realization: bool )
hypothesis/src/hypothesis/control.py:317
← previousnext →501–600 of 6,441, ranked by callers