MCPcopy Create free account

hub / github.com/HypothesisWorks/hypothesis / functions

Functions6,609 in github.com/HypothesisWorks/hypothesis

↓ 2 callersMethodexit_context
(self, new_limit: int, *, check: bool = True)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:371
↓ 2 callersFunctionexplanatory_lines
(traces, settings)
hypothesis/src/hypothesis/internal/scrutineer.py:297
↓ 2 callersFunctionf
(n)
hypothesis/tests/nocover/test_integer_ranges.py:51
↓ 2 callersFunctionf16_bits_from_f64
Narrow an `f64` to IEEE 754 half-precision, returning the raw 16 bits. Round-to-nearest-even; finite values too large for the format become infinity (
hypothesis/rust/src/internal/floats.rs:21
↓ 2 callersFunctionf2
()
hypothesis/tests/cover/test_reflection.py:737
↓ 2 callersMethodfail
(self, source)
hypothesis/tests/cover/test_stateful.py:883
↓ 2 callersMethodfail_fast
(self)
hypothesis/tests/cover/test_stateful.py:297
↓ 2 callersFunctionfailure_exceptions_to_catch
Return a tuple of exceptions meaning 'this test has failed', to catch. This is intended to cover most common test runners; if you would like
hypothesis/src/hypothesis/core.py:796
↓ 2 callersMethodfilter
(self, condition: Callable[[Ex], Any])
hypothesis/src/hypothesis/strategies/_internal/core.py:2468
↓ 2 callersMethodfilter
(self, condition)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:719
↓ 2 callersMethodfilter
(self, condition)
hypothesis/src/hypothesis/strategies/_internal/strings.py:303
↓ 2 callersFunctionfind_random
( s: st.SearchStrategy[T], condition: Callable[[T], bool], seed=None )
hypothesis/tests/nocover/test_precise_shrinking.py:226
↓ 2 callersFunctionflatten
(x)
hypothesis/tests/nocover/test_recursive.py:23
↓ 2 callersFunctionflush_to_zero
()
hypothesis/src/_hypothesis_ftz_detector.py:46
↓ 2 callersFunctionflushes_to_zero
Infer whether build of array module has its float dtype of the specified width flush subnormals to zero We do this per-width because compiler
hypothesis/tests/array_api/common.py:48
↓ 2 callersFunctionfoo
(draw)
hypothesis/tests/nocover/test_labels.py:28
↓ 2 callersFunctionfoo
(x, y)
hypothesis/tests/cover/test_validation.py:92
↓ 2 callersFunctionfoo
(x, y)
hypothesis/tests/cover/test_explicit_examples.py:68
↓ 2 callersFunctionformat_exception
(err, tb)
hypothesis/src/hypothesis/internal/escalation.py:161
↓ 2 callersMethodfrom_alphabet
( cls, alphabet: Collection[str] | SearchStrategy[str] )
hypothesis/src/hypothesis/strategies/_internal/strings.py:165
↓ 2 callersFunctionfulfill
Decorate ``contract_func`` to reject calls which violate preconditions, and retry them with different arguments. This is a convenience functi
hypothesis/src/hypothesis/extra/dpcontracts.py:26
↓ 2 callersMethodgenerate_novel_prefix
Uses the tree to proactively generate a starting choice sequence that we haven't explored yet for this test. When this method is call
hypothesis/src/hypothesis/internal/conjecture/engine.py:803
↓ 2 callersFunctionget_executor
(runner)
hypothesis/src/hypothesis/core.py:831
↓ 2 callersFunctionget_explaining_locations
(traces)
hypothesis/src/hypothesis/internal/scrutineer.py:181
↓ 2 callersFunctionget_integer_predicate_bounds
(predicate: Predicate)
hypothesis/src/hypothesis/internal/filtering.py:304
↓ 2 callersFunctionget_mypy_output
(fname, *extra_args)
whole_repo_tests/types/test_mypy.py:40
↓ 2 callersFunctionget_numeric_predicate_bounds
Shared logic for understanding numeric bounds. We then specialise this in the other functions below, to ensure that e.g. all the values are r
hypothesis/src/hypothesis/internal/filtering.py:220
↓ 2 callersFunctionget_random_for_wrapped_test
(test, wrapped_test)
hypothesis/src/hypothesis/core.py:712
↓ 2 callersFunctionget_seeder_and_restorer
Return a pair of functions which respectively seed all and restore the state of all registered PRNGs. This is used by the core engine via `de
hypothesis/src/hypothesis/internal/entropy.py:165
↓ 2 callersMethodgetstate
(self)
hypothesis/src/hypothesis/strategies/_internal/random.py:336
↓ 2 callersMethodgrab_redirects
Inspect redirects option in conf.py and returns dict mapping docname to target (with expanded placeholder).
hypothesis/docs/_ext/hypothesis_redirects.py:74
↓ 2 callersFunctionguess_background_color
Returns one of "dark", "light", or "unknown". This is basically just guessing, but better than always guessing "dark"! See also https://stack
hypothesis/src/hypothesis/utils/terminal.py:15
↓ 2 callersFunctionhas_changes
(files)
tooling/src/hypothesistooling/git.py:53
↓ 2 callersMethodhas_existing_examples
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1030
↓ 2 callersFunctionhas_varargs
(*args)
hypothesis/tests/cover/test_validation.py:42
↓ 2 callersFunctionhelper
()
hypothesis/tests/cover/test_lookup.py:649
↓ 2 callersFunctionidentify_ftz_culprits
Find the modules in sys.modules which cause "mod" to be imported.
hypothesis/src/_hypothesis_ftz_detector.py:90
↓ 2 callersFunctioninner
(x)
hypothesis/tests/cover/test_random_module.py:106
↓ 2 callersFunctioninner
(x)
hypothesis/tests/cover/test_core.py:73
↓ 2 callersFunctioninner
(a: UnknownType)
hypothesis/tests/cover/test_lookup.py:512
↓ 2 callersFunctionint_to_byte
(i: int)
hypothesis/src/hypothesis/internal/compat.py:107
↓ 2 callersFunctioninvalid_test
(x)
hypothesis/tests/nocover/test_modify_inner_test.py:66
↓ 2 callersMethodinverse_cdf
(self, u: float)
hypothesis/src/hypothesis/internal/statistics.py:134
↓ 2 callersFunctionis_a_type_alias_type
(thing)
hypothesis/src/hypothesis/strategies/_internal/types.py:387
↓ 2 callersFunctionis_local_module_file
(path: str)
hypothesis/src/hypothesis/internal/constants_ast.py:253
↓ 2 callersFunctionis_typed_named_tuple
Return True if cls is probably a subtype of `typing.NamedTuple`. Unfortunately types created with `class T(NamedTuple):` actually subclass `t
hypothesis/src/hypothesis/internal/compat.py:111
↓ 2 callersFunctionl
(e,n,t,r)
website/theme/static/prism.js:3
↓ 2 callersFunctionlength_bounds_from_validators
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:222
↓ 2 callersMethodmake_canonical
Convert immutable value into a canonical and hashable, but not necessarily equal, representation of itself. This representation is us
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:137
↓ 2 callersMethodmake_immutable
Convert value into an immutable representation of itself. It is these immutable versions that the shrinker will work on. Defaults to
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:148
↓ 2 callersMethodminimize_nodes
(self, nodes)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1686
↓ 2 callersFunctionnameless_const
(x)
hypothesis/tests/cover/test_searchstrategy.py:77
↓ 2 callersFunctionnew_score
(key)
hypothesis/tests/cover/test_cache_implementation.py:137
↓ 2 callersMethodnew_shrinker
( self, example: ConjectureData | ConjectureResult, predicate: ShrinkPredicateT | None
hypothesis/src/hypothesis/internal/conjecture/engine.py:1771
↓ 2 callersFunctionnext_down_normal
(value: f64, width: u32, allow_subnormal: bool)
hypothesis/rust/src/internal/floats.rs:212
↓ 2 callersFunctionnext_up_n
(f, n)
hypothesis/tests/conjecture/test_data_tree.py:501
↓ 2 callersFunctionnormalize_zero
(f: float)
hypothesis/src/hypothesis/strategies/_internal/random.py:169
↓ 2 callersMethodnote
(self, value: str)
hypothesis/src/hypothesis/internal/conjecture/data.py:1238
↓ 2 callersMethodobserve_information_messages
Called at the end of each |test case| and again at end of the test function. Return an iterable of ``{type: info/alert/error, title: str, con
hypothesis/src/hypothesis/internal/conjecture/providers.py:639
↓ 2 callersMethodobserve_test_case
Called at the end of the |test case| when :ref:`observability <observability>` is enabled. The return value should be a non-symbolic
hypothesis/src/hypothesis/internal/conjecture/providers.py:630
↓ 2 callersFunctionoutput
(s)
hypothesis/src/hypothesis/stateful.py:134
↓ 2 callersFunctionparse_release_file
()
tooling/src/hypothesistooling/release.py:73
↓ 2 callersFunctionparse_release_file_contents
(release_contents, filename)
tooling/src/hypothesistooling/release.py:79
↓ 2 callersMethodper_test_case_context_manager
Returns a context manager which will be entered each time Hypothesis starts generating and executing one |test case|, and exited when
hypothesis/src/hypothesis/internal/conjecture/providers.py:582
↓ 2 callersFunctionpoint_of_divergence
()
tooling/src/hypothesistooling/git.py:49
↓ 2 callersMethodpopulate_bundle
(self)
hypothesis/tests/cover/test_stateful.py:293
↓ 2 callersFunctionpred
(s)
hypothesis/tests/cover/test_regex.py:98
↓ 2 callersFunctionprint_command
(command, args)
tooling/src/hypothesistooling/scripts.py:20
↓ 2 callersFunctionprocess_arguments_to_given
( wrapped_test: Any, arguments: Sequence[object], kwargs: dict[str, object], given_kwargs: dic
hypothesis/src/hypothesis/core.py:740
↓ 2 callersFunctionrandoms
Generates instances of ``random.Random``. The generated Random instances are of a special HypothesisRandom subclass. - If ``note_method_calls
hypothesis/src/hypothesis/strategies/_internal/core.py:1002
↓ 2 callersFunctionrange_indexes
Provides a strategy which generates an :class:`~pandas.Index` whose values are 0, 1, ..., n for some n. Arguments: * min_size is the sma
hypothesis/src/hypothesis/extra/pandas/impl.py:277
↓ 2 callersFunctionrelease_date_string
Returns a date string that represents what should be considered "today" for the purposes of releasing, and ensure that we don't change part way
tooling/src/hypothesistooling/release.py:51
↓ 2 callersMethodremove_listener
Removes ``f`` from the list of change listeners. If ``f`` is not in the list of change listeners, silently do nothing.
hypothesis/src/hypothesis/database.py:295
↓ 2 callersFunctionreproduction_decorator
(choices: Iterable[ChoiceT])
hypothesis/src/hypothesis/core.py:418
↓ 2 callersFunctionrestore_recursion_limit
()
hypothesis/tests/common/utils.py:306
↓ 2 callersFunctionrun
()
hypothesis/tests/common/setup.py:26
↓ 2 callersMethodrun
Run for an appropriate number of steps to improve the current value. If self.full is True, will run until no further improvements can
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:93
↓ 2 callersFunctionrun_conformance_test
Test that the given ``Provider`` class conforms to the |PrimitiveProvider| interface. For instance, this tests that ``Provider`` does no
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:338
↓ 2 callersFunctionrun_language_test_for
(root, data, seed)
hypothesis/tests/nocover/test_explore_arbitrary_languages.py:70
↓ 2 callersFunctionrust_msrv
()
tooling/src/hypothesistooling/cargo.py:33
↓ 2 callersFunctions
(draw)
hypothesis/tests/conjecture/test_engine.py:474
↓ 2 callersMethodsave
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:795
↓ 2 callersMethodscore_function
(self, data: ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/optimiser.py:55
↓ 2 callersFunctionseed_all
()
hypothesis/src/hypothesis/internal/entropy.py:187
↓ 2 callersFunctionseparated_sum
(draw)
hypothesis/tests/quality/test_shrink_quality.py:369
↓ 2 callersMethodsetup_state
(cls)
hypothesis/src/hypothesis/stateful.py:378
↓ 2 callersFunctionshared
Returns a strategy that draws a single shared value per run, drawn from base. Any two shared instances with the same key will share the same value
hypothesis/src/hypothesis/strategies/_internal/core.py:2319
↓ 2 callersMethodshould_generate_more
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1141
↓ 2 callersFunctionshould_trace_file
(fname: str)
hypothesis/src/hypothesis/internal/scrutineer.py:39
↓ 2 callersMethodshrink
( self, example: ConjectureData | ConjectureResult, predicate: ShrinkPredicateT | None
hypothesis/src/hypothesis/internal/conjecture/engine.py:1759
↓ 2 callersMethodshrink
Shrink the value ``initial`` subject to the constraint that it satisfies ``predicate``. Returns the shrunk value.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:83
↓ 2 callersFunctionshrinks
(strategy, nodes, *, allow_sloppy=True, seed=0)
hypothesis/tests/nocover/test_precise_shrinking.py:242
↓ 2 callersFunctionslow
(i)
hypothesis/tests/cover/test_deadline.py:31
↓ 2 callersFunctionslow_test
(n)
hypothesis/tests/nocover/test_threading.py:187
↓ 2 callersMethodstart_span
(self, label: int)
hypothesis/src/hypothesis/internal/conjecture/data.py:1346
↓ 2 callersMethodstop_span
(self, *, discard: bool = False)
hypothesis/src/hypothesis/internal/conjecture/data.py:1361
↓ 2 callersFunctionstoptest_and_hypothesisexception
(data: DataObject)
hypothesis/tests/cover/test_exceptiongroup.py:140
↓ 2 callersFunctionstrat
(draw, x=0, /)
hypothesis/tests/cover/test_posonly_args_py38.py:17
↓ 2 callersFunctionsuite_properties_ok
(junit_xml)
hypothesis/tests/pytest/test_junit.py:45
↓ 2 callersFunctiontag_name
()
tooling/src/hypothesistooling/release.py:359
← previousnext →701–800 of 6,609, ranked by callers