Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,346 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,346
◇
Types & classes
724
↳
Endpoints
134
↓ 3 callers
Function
safe_draw
Set up just enough of the Hypothesis machinery to use draw on a strategy.
hypothesis/tests/nocover/test_precise_shrinking.py:76
↓ 3 callers
Method
save
Save ``value`` under ``key``. If ``value`` is already present in ``key``, silently do nothing.
hypothesis/src/hypothesis/database.py:235
↓ 3 callers
Method
save
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:734
↓ 3 callers
Function
shortlex
(s)
hypothesis/src/hypothesis/internal/conjecture/engine.py:112
↓ 3 callers
Function
skip_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 callers
Function
stack_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:286
↓ 3 callers
Function
stdtrit
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 callers
Function
stuff
()
hypothesis/tests/nocover/test_database_usage.py:53
↓ 3 callers
Method
sub_key
(self, sub_key: bytes | None)
hypothesis/src/hypothesis/internal/conjecture/engine.py:931
↓ 3 callers
Function
test
(seq)
hypothesis/tests/numpy/test_from_type.py:136
↓ 3 callers
Function
test
(*, x, y)
hypothesis/tests/cover/test_lookup_py38.py:169
↓ 3 callers
Function
test
(data)
hypothesis/tests/cover/test_arbitrary_data.py:26
↓ 3 callers
Function
test
(x)
hypothesis/tests/cover/test_explicit_examples.py:198
↓ 3 callers
Function
test
(x)
hypothesis/tests/cover/test_flakiness.py:153
↓ 3 callers
Function
test_blah
(x)
hypothesis/tests/cover/test_testdecorators.py:325
↓ 3 callers
Function
test_fails
(x, y)
hypothesis/tests/cover/test_observability.py:136
↓ 3 callers
Function
test_it
(a, b)
hypothesis/tests/cover/test_direct_strategies.py:628
↓ 3 callers
Function
test_not_long_str
(x)
hypothesis/tests/cover/test_explicit_examples.py:90
↓ 3 callers
Function
tool_path
(name)
tooling/src/hypothesistooling/scripts.py:62
↓ 3 callers
Function
try_issubclass
(thing, superclass)
hypothesis/src/hypothesis/strategies/_internal/types.py:302
↓ 3 callers
Method
update_count
(self, *, condition: bool)
hypothesis/src/hypothesis/internal/observability.py:78
↓ 3 callers
Function
validate_deprecation
()
hypothesis/tests/common/utils.py:119
↓ 3 callers
Function
values
(draw)
hypothesis/tests/conjecture/test_choice.py:591
↓ 3 callers
Function
with_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 callers
Method
__entry_was_accessed
(self, i: int)
hypothesis/src/hypothesis/internal/cache.py:212
↓ 2 callers
Method
__init__
( self, name: str, *, consume: bool = False, draw_references: bool = F
hypothesis/src/hypothesis/stateful.py:636
↓ 2 callers
Method
__init__
(self, seed, note_method_calls)
hypothesis/src/hypothesis/strategies/_internal/random.py:393
↓ 2 callers
Method
__init__
(self, conjecturedata: Optional["ConjectureData"], /)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1279
↓ 2 callers
Method
__init__
(self, poison_chance)
hypothesis/tests/quality/test_poisoned_lists.py:26
↓ 2 callers
Method
__init__
(self)
hypothesis/tests/cover/test_database_backend.py:799
↓ 2 callers
Function
__python_executable
(version)
tooling/src/hypothesistooling/installers.py:44
↓ 2 callers
Method
__update_exhausted
(self)
hypothesis/src/hypothesis/internal/conjecture/datatree.py:1199
↓ 2 callers
Method
__with_transform
(self, name, f)
hypothesis/src/hypothesis/stateful.py:680
↓ 2 callers
Method
__with_transform
(self, method, fn)
hypothesis/src/hypothesis/strategies/_internal/lazy.py:127
↓ 2 callers
Method
_add_constant
(self, value: object)
hypothesis/src/hypothesis/internal/constants_ast.py:112
↓ 2 callers
Function
_any_hypothesis_option
(config)
hypothesis/src/_hypothesis_pytestplugin.py:131
↓ 2 callers
Method
_archive_directory_db
(self)
hypothesis/tests/cover/test_database_backend.py:443
↓ 2 callers
Method
_array_or_list
( code: str, contents: Iterable[int] )
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:94
↓ 2 callers
Method
_base_repr
(self)
hypothesis/src/hypothesis/stateful.py:694
↓ 2 callers
Function
_boolean_dtypes
Return a strategy for just the boolean dtype object.
hypothesis/src/hypothesis/extra/array_api.py:598
↓ 2 callers
Function
_calc_p_continue
Return the p_continue which will generate the desired average size.
hypothesis/src/hypothesis/internal/conjecture/utils.py:364
↓ 2 callers
Function
_calling_function_location
(what: str, frame: Any)
hypothesis/src/hypothesis/control.py:37
↓ 2 callers
Function
_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 callers
Function
_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 callers
Function
_constants_file_str
(constants: Constants)
hypothesis/src/hypothesis/internal/constants_ast.py:192
↓ 2 callers
Function
_constants_from_source
(source: str | bytes, *, limit: bool)
hypothesis/src/hypothesis/internal/constants_ast.py:178
↓ 2 callers
Function
_convert_targets
Single validator and converter for target arguments.
hypothesis/src/hypothesis/stateful.py:761
↓ 2 callers
Function
_count_leaves
(tree)
hypothesis/tests/cover/test_recursive.py:127
↓ 2 callers
Function
_dedupe_exceptions
(exc: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:151
↓ 2 callers
Method
_deliver_information_message
( self, *, type: InfoObservationType, title: str, content: str | dict )
hypothesis/src/hypothesis/core.py:1394
↓ 2 callers
Method
_draw_collection
(self, min_size, max_size, *, alphabet_size)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1207
↓ 2 callers
Method
_ensure_directory_exists
(self)
hypothesis/src/hypothesis/database.py:452
↓ 2 callers
Function
_exception_string
(except_: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:179
↓ 2 callers
Method
_expect_delete
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:605
↓ 2 callers
Method
_expect_event
(self, event_type, args)
hypothesis/tests/cover/test_database_backend.py:601
↓ 2 callers
Method
_expect_save
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:610
↓ 2 callers
Function
_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 callers
Function
_from_dtype
Return a strategy for any value of the given dtype. Values generated are of the Python scalar which is :xp-ref:`promotable <type_promotion.ht
hypothesis/src/hypothesis/extra/array_api.py:175
↓ 2 callers
Function
_from_type_deferred
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1290
↓ 2 callers
Method
_get_children_cache
( self, choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *, key: ChoiceT )
hypothesis/src/hypothesis/internal/conjecture/datatree.py:903
↓ 2 callers
Function
_get_constraints
(args: tuple[Any, ...])
hypothesis/src/hypothesis/strategies/_internal/types.py:450
↓ 2 callers
Function
_get_local_constants
()
hypothesis/src/hypothesis/internal/conjecture/providers.py:325
↓ 2 callers
Function
_get_module_helper
(obj)
hypothesis/src/hypothesis/extra/ghostwriter.py:727
↓ 2 callers
Function
_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:533
↓ 2 callers
Function
_get_varnames
(funcs)
hypothesis/src/hypothesis/extra/ghostwriter.py:1536
↓ 2 callers
Function
_gitignore_storage_dir_script
(*, home_dir=None)
hypothesis/tests/cover/test_filestorage.py:56
↓ 2 callers
Function
_has_surrogate
(choice)
hypothesis/tests/cover/test_observability.py:490
↓ 2 callers
Function
_imports_for_strategy
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:611
↓ 2 callers
Method
_int_value
(value: "Verbosity")
hypothesis/src/hypothesis/_settings.py:118
↓ 2 callers
Function
_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 callers
Function
_is_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:567
↓ 2 callers
Method
_join
(self, timeout: float | None = None)
hypothesis/src/hypothesis/database.py:1199
↓ 2 callers
Function
_join_argument_annotations
( annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:963
↓ 2 callers
Function
_join_generics
( origin_type_data: tuple[str, set[str]] | None, annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:937
↓ 2 callers
Method
_log_phase_statistics
( self, phase: Literal["reuse", "generate", "shrink", "explain"] )
hypothesis/src/hypothesis/internal/conjecture/engine.py:384
↓ 2 callers
Function
_model_choice_strategy
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:284
↓ 2 callers
Function
_node_pretty
( choice_type: ChoiceTypeT, value: ChoiceT, constraints: ChoiceConstraintsT, *, forced: bo
hypothesis/src/hypothesis/internal/conjecture/datatree.py:73
↓ 2 callers
Function
_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 callers
Function
_numeric_dtypes
Return a strategy for all numeric dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:617
↓ 2 callers
Function
_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 callers
Function
_params_to_dict
( params: Iterable[inspect.Parameter], )
hypothesis/src/hypothesis/extra/ghostwriter.py:507
↓ 2 callers
Method
_publish
(self, event)
hypothesis/src/hypothesis/extra/redis.py:92
↓ 2 callers
Function
_raise_to_user
Helper function for attaching notes and grouping multiple errors.
hypothesis/src/hypothesis/core.py:1655
↓ 2 callers
Function
_real_dtypes
Return a strategy for all real-valued dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:608
↓ 2 callers
Function
_reject_dtype_class
(dtype: object)
hypothesis/src/hypothesis/extra/numpy.py:113
↓ 2 callers
Method
_remove
(self, data: ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/pareto.py:281
↓ 2 callers
Function
_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 callers
Function
_run_and_get_junit
(testdir, *args)
hypothesis/tests/pytest/test_junit.py:31
↓ 2 callers
Function
_serialize_event
( event: Any, *, allowed_types: tuple[type, ...] = (str,), avoid_realization: bool )
hypothesis/src/hypothesis/control.py:317
↓ 2 callers
Method
_setrecursionlimit
(self, new_limit: int, *, check: bool = True)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:322
↓ 2 callers
Method
_should_trace
(self)
hypothesis/src/hypothesis/core.py:971
↓ 2 callers
Function
_size_to_index
(size: int, *, alphabet_size: int)
hypothesis/src/hypothesis/internal/conjecture/choice.py:180
↓ 2 callers
Function
_st_strategy_names
Replace strategy name() with st.name(). Uses a tricky re.sub() to avoid problems with frozensets() matching sets() too.
hypothesis/src/hypothesis/extra/ghostwriter.py:807
↓ 2 callers
Method
_stop_listening
Called whenever no change listeners remain on the database. ``_stop_listening`` and ``_start_listening`` are guaranteed to alternate
hypothesis/src/hypothesis/database.py:352
↓ 2 callers
Function
_strategy
Convert SRE regex parse tree to strategy that generates strings matching that regex represented by that parse tree. `codes` is either a list
hypothesis/src/hypothesis/strategies/_internal/regex.py:335
↓ 2 callers
Function
_string_filter_rewrite
(self, kind, condition)
hypothesis/src/hypothesis/strategies/_internal/strings.py:272
↓ 2 callers
Function
_unpack_uleb128
Inverts _pack_uleb128, and also returns the index at which at which we stopped reading.
hypothesis/src/hypothesis/database.py:1252
↓ 2 callers
Function
_unsigned_integer_dtypes
Return a strategy for unsigned integer dtype objects. ``sizes`` contains the unsigned integer sizes in bits, defaulting to ``(8, 16, 32, 64)`
hypothesis/src/hypothesis/extra/array_api.py:671
↓ 2 callers
Method
_urandom
(size: int)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1248
↓ 2 callers
Function
_with_any_registered
()
hypothesis/src/hypothesis/extra/ghostwriter.py:515
← previous
next →
501–600 of 6,346, ranked by callers