Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aio-libs/multidict
/ functions
Functions
2,179 in github.com/aio-libs/multidict
⨍
Functions
2,179
◇
Types & classes
153
↳
Endpoints
27
Method
test_reversed_raises_on_mutation_items
( self, case_sensitive_multidict_class: type[MultiDict[int]], )
tests/test_mutable_multidict.py:222
Method
test_reversed_raises_on_mutation_keys
( self, case_sensitive_multidict_class: type[MultiDict[int]], )
tests/test_mutable_multidict.py:212
Method
test_reversed_raises_on_mutation_values
( self, case_sensitive_multidict_class: type[MultiDict[int]], )
tests/test_mutable_multidict.py:232
Method
test_reversed_values
( self, cls: type[MultiDict[int | str]] | type[CIMultiDict[int | str]], )
tests/test_multidict.py:768
Function
test_rewatching_overwrites_user_data
(watcher: Watcher)
tests/test_capi.py:817
Function
test_run_op_covers_every_op
Deterministic coverage for every `_run_op` branch: which one `test_concurrent_op_sequence_fuzz` below exercises on a given run depends on Hypo
tests/test_hypothesis_concurrency.py:104
Function
test_scan_raises_when_resized_by_an_entry
A resize made by any entry's own Python code, the last one included, must stop the scan before it reads the freed table again.
tests/test_multidict.py:1881
Function
test_self_check_selected_cells
( driver: ModuleType, capsys: pytest.CaptureFixture[str] )
tests/test_callgrind_driver.py:17
Function
test_self_check_unimportable_impl
(driver: ModuleType)
tests/test_callgrind_driver.py:25
Method
test_set_default
( self, case_sensitive_multidict_class: type[MultiDict[str]], )
tests/test_mutable_multidict.py:242
Method
test_set_default
( self, case_insensitive_multidict_class: type[CIMultiDict[str]], )
tests/test_mutable_multidict.py:816
Method
test_set_default_single_arg
( self, case_sensitive_multidict_class: type[MultiDict[str]], )
tests/test_mutable_multidict.py:252
Function
test_setdefault
( any_multidict_class: type[MultiDict[str]], any_multidict_proxy_class: type[MultiDictProxy[str]],
tests/test_version.py:126
Function
test_setdefault_adds_only_when_absent
(watcher: Watcher)
tests/test_capi.py:951
Function
test_setdefault_args
( multidict_object: MultiDict[int], tested_method_args: InvalidTestedMethodArgs, )
tests/test_incorrect_args.py:90
Function
test_setdefault_vs_update_same_key_thread_safety
Same family as #1483/#1489: setdefault() racing update() on the same key must not insert a duplicate. setdefault()'s masked-comparison fix (no
tests/test_multidict.py:2507
Function
test_setitem
()
tests/test_mypy.py:185
Function
test_setitem
( any_multidict_class: type[MultiDict[str]], any_multidict_proxy_class: type[MultiDictProxy[str]],
tests/test_version.py:78
Method
test_setitem
( self, case_insensitive_multidict_class: type[CIMultiDict[str]], )
tests/test_mutable_multidict.py:668
Function
test_setitem_collapses_duplicates
( any_multidict_class: _MD_Classes, pairs: _Pairs, key: str, v1: object, v2: object, )
tests/test_hypothesis_multidict.py:193
Function
test_setitem_duplicates_no_refleak_on_memory_error
d[key] = v with later matches of key allocates where it collects their refs; failing that allocation must not leak the replaced or the removed
tests/test_mutable_multidict.py:1254
Function
test_setitem_large_table
(any_multidict_class: type[MultiDict[int]])
tests/test_update_marks.py:79
Function
test_setitem_not_found
( any_multidict_class: type[MultiDict[str]], any_multidict_proxy_class: type[MultiDictProxy[str]],
tests/test_version.py:94
Function
test_setitem_on_a_new_key_adds
(watcher: Watcher)
tests/test_capi.py:859
Function
test_setitem_out_of_memory_reports_no_kept_duplicate_as_deleted
( watcher: Watcher, monkeypatch: pytest.MonkeyPatch )
tests/test_capi.py:1403
Function
test_setitem_replaces_the_first_and_deletes_the_rest
(watcher: Watcher)
tests/test_capi.py:866
Function
test_setitem_update_thread_safety
Concurrent __setitem__()/update() on colliding keys, alongside concurrent add()/pop() churn that drives frequent resizes, must not corrupt sta
tests/test_multidict.py:3046
Function
test_single_item_ops_thread_safety
Concurrent add()/__setitem__/__delitem__/pop()/popitem()/setdefault() alongside __getitem__/__contains__/len()/iteration must not crash. Regr
tests/test_multidict.py:2148
Method
test_sizeof
( self, case_insensitive_multidict_class: type[CIMultiDict[str]], )
tests/test_mutable_multidict.py:951
Function
test_sizing_argument_does_not_swallow_exceptions
Estimating the size of the positional argument must not discard a ``MemoryError`` or ``KeyboardInterrupt`` raised by its ``__len__``.
tests/test_multidict.py:3787
Function
test_stateful_multidict
( any_multidict_class: _MD_Classes, any_multidict_class_name: str, )
tests/test_hypothesis_multidict.py:167
Function
test_str
(case_insensitive_str_class: type[str])
tests/test_istr.py:91
Method
test_str_derived_key
( self, case_sensitive_multidict_class: type[MultiDict[str]], )
tests/test_mutable_multidict.py:400
Method
test_str_derived_key_add
( self, case_sensitive_multidict_class: type[MultiDict[str]], )
tests/test_mutable_multidict.py:420
Function
test_str_keys_use_the_compact_table
()
tests/test_table_kinds.py:36
Function
test_str_subclass_keys_from_dict_keep_refcounts
( case_insensitive_multidict_class: type[CIMultiDict[object]], op: str, )
tests/test_update.py:502
Method
test_str_subclass_lower_override_is_ignored
( self, cls: type[CIMultiDict[str]] )
tests/test_multidict.py:1496
Function
test_str_subclass_overriding_str_dunder_lookup
( any_multidict_class: type[MultiDict[int]], )
tests/test_multidict.py:4176
Method
test_sub
(self, cls: type[MultiDict[str]])
tests/test_multidict.py:608
Method
test_sub2
(self, cls: type[MultiDict[str]])
tests/test_multidict.py:613
Method
test_sub_iterable_not_set
(self, cls: type[MultiDict[str]])
tests/test_multidict.py:630
Method
test_sub_not_implemented
(self, cls: type[MultiDict[str]])
tests/test_multidict.py:618
Function
test_subclass_construction_does_not_swallow_exceptions
A subclass runs through ``tp_init()`` rather than the constructor vectorcall, so it sizes its argument and must not discard the error.
tests/test_multidict.py:3802
Function
test_subclass_rejected
(case_insensitive_str_class: type[str])
tests/test_istr.py:76
Function
test_subclassed_multidict
Test that subclassed MultiDicts work as expected.
tests/test_multidict.py:3578
Function
test_subclasses_do_not_take_pooled_shells
()
tests/test_freelist.py:176
Function
test_table_shrinks_after_deletions_once_adds_resume
( any_multidict_class: type[MultiDict[int]], )
tests/test_mutable_multidict.py:1351
Function
test_to_dict
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], items: list[tuple[str, str]],
tests/test_to_dict.py:34
Function
test_to_dict_abc_default
The ABC supplies to_dict() so subclasses outside this project get one.
tests/test_to_dict.py:197
Function
test_to_dict_case_insensitive_grouping
Every spelling groups under the first one seen.
tests/test_to_dict.py:96
Function
test_to_dict_ci_proxy_case_insensitive_grouping
( case_insensitive_multidict_class: type[CIMultiDict[str]], case_insensitive_multidict_proxy_class: ty
tests/test_to_dict.py:130
Function
test_to_dict_empty
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:43
Function
test_to_dict_key_hash_sees_every_key
Nothing is left marked while the keys are hashed. The walk marks each entry it collects, and a marked entry reads as a different hash, so cod
tests/test_to_dict.py:213
Function
test_to_dict_large_data
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:77
Function
test_to_dict_large_table
(any_multidict_class: type[MultiDict[int]])
tests/test_update_marks.py:69
Function
test_to_dict_list_is_fresh
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:60
Function
test_to_dict_mixed_value_types
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:87
Function
test_to_dict_order_preservation
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:69
Function
test_to_dict_proxy
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], any_multidict_proxy_class: type[
tests/test_to_dict.py:109
Function
test_to_dict_proxy_mutation_isolation
The returned lists are copies, not the multidict's own storage.
tests/test_to_dict.py:118
Function
test_to_dict_refuses_mutation_from_a_collection
On 3.11, allocating the result's lists can run a collection whose finalizers mutate the multidict; that is refused. Each round arms the collec
tests/test_to_dict.py:276
Function
test_to_dict_refuses_mutation_from_key_hash
Mutating from a key's ``__hash__`` is refused, as it is while iterating.
tests/test_to_dict.py:240
Function
test_to_dict_restores_lookups
The walk marks each entry it collects; every mark must be cleared. A mark left behind reads as a different hash, so the key it belongs to wou
tests/test_to_dict.py:144
Function
test_to_dict_returns_new_dict
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:50
Function
test_to_dict_skips_deleted_entries
( any_multidict_class: type[MultiDict[str]] | type[CIMultiDict[str]], )
tests/test_to_dict.py:161
Function
test_to_dict_vs_lock_free_reads_thread_safety
Concurrent to_dict() alongside lock-free contains()/get() on the same, never-deleted keys must not crash and must never observe a present key
tests/test_multidict.py:2670
Function
test_two_watchers_can_watch_one_multidict
( watcher: Watcher, other_watcher: Watcher )
tests/test_capi.py:792
Method
test_ucs2_ucs4_comparison
(self, cls: type[MultiDict[str]])
tests/test_multidict.py:834
Function
test_unknown_module_attribute
()
tests/test_istr.py:178
Function
test_unmutated_iteration_is_deterministic
( any_multidict_class: _MD_Classes, pairs: _Pairs )
tests/test_hypothesis_iters.py:53
Function
test_unregistered_watcher_id_is_rejected
(api: object, watcher_id: int)
tests/test_capi.py:1235
Function
test_unusable_length_hint_is_ignored
A ``__length_hint__`` that is not an integer costs only the preallocation estimate; the argument is still consumed.
tests/test_multidict.py:3818
Function
test_unwatch_by_an_id_the_multidict_never_saw
( watcher: Watcher, other_watcher: Watcher )
tests/test_capi.py:1221
Function
test_unwatch_of_an_unwatched_multidict_is_a_noop
(watcher: Watcher)
tests/test_capi.py:1089
Function
test_unwatch_stops_events
(watcher: Watcher)
tests/test_capi.py:1081
Function
test_unwatch_through_another_proxy_removes_the_same_watch
( watcher: Watcher, )
tests/test_capi.py:1071
Function
test_unwatching_one_watcher_leaves_the_other
( watcher: Watcher, other_watcher: Watcher )
tests/test_capi.py:805
Method
test_update
( self, case_sensitive_multidict_class: type[MultiDict[str | int]], )
tests/test_mutable_multidict.py:472
Function
test_update_and_merge_in_one_batch
(any_multidict_class: _MD_Classes)
tests/test_keys_dedup.py:308
Function
test_update_and_merge_with_itself
( any_multidict_class: type[MultiDict[int]], any_multidict_proxy_class: type[MultiDictProxy[int]],
tests/test_multidict.py:1754
Function
test_update_append
(any_multidict_class: _MD_Classes)
tests/test_update.py:21
Function
test_update_append_seq
(any_multidict_class: _MD_Classes)
tests/test_update.py:52
Function
test_update_appending_duplicates
(any_multidict_class: _MD_Classes)
tests/test_keys_dedup.py:175
Function
test_update_between_items_mutates
( any_multidict_class: type[MultiDict[object]], mutator: str, expected: list[tuple[str, object]],
tests/test_update.py:274
Function
test_update_between_items_reads
( any_multidict_class: type[MultiDict[object]], reader: str, seen: object )
tests/test_update.py:227
Function
test_update_ci_md
(case_insensitive_multidict_class: type[CIMultiDict[str]])
tests/test_update.py:93
Function
test_update_deque_arg_and_kwds
(any_multidict_class: _MD_Classes)
tests/test_update.py:120
Function
test_update_does_not_alter_refcount
Test that updating a MultiDict with a MultiDict does not alter the refcount of the original.
tests/test_multidict.py:1770
Function
test_update_extend_merge_thread_safety
Concurrent update()/extend()/merge() must not crash or corrupt state. Regression test for a segfault on the free-threaded build: the C extens
tests/test_multidict.py:1935
Function
test_update_from_dict_arg_thread_safety
Concurrent update() from a plain dict alongside mutation of that same dict must not crash. Regression test for a free-threaded-build crash fl
tests/test_multidict.py:2114
Function
test_update_from_list_mutated_by_key_lookup
An item whose ``__getitem__()`` shrinks the source list must not read past the end. The C list fast-path cached the size once and then indexed
tests/test_multidict.py:3638
Function
test_update_from_list_shrunk_by_another_thread
A source list that shrinks while it is consumed must not be read past its end; the constructor either completes or reports the change.
tests/test_multidict.py:3925
Function
test_update_from_pair_list_shrunk_by_another_thread
A ``[key, value]`` item that shrinks between its length check and the reads must not be indexed past its end; the update either succeeds, repo
tests/test_multidict.py:3958
Function
test_update_istr_ci_md
( case_insensitive_multidict_class: type[CIMultiDict[str]], case_insensitive_str_class: type[str], )
tests/test_update.py:79
Function
test_update_keeps_what_code_between_items_wrote
( any_multidict_class: type[MultiDict[object]], nested: str )
tests/test_update.py:379
Function
test_update_large_table
(any_multidict_class: type[MultiDict[int]])
tests/test_update_marks.py:88
Function
test_update_list_arg_and_kwds
(any_multidict_class: _MD_Classes)
tests/test_update.py:104
Function
test_update_mapping
()
tests/test_mypy.py:240
Function
test_update_marks_outgrow_the_table
( any_multidict_class: type[MultiDict[object]], )
tests/test_update.py:322
Function
test_update_md
(case_sensitive_multidict_class: type[CIMultiDict[str]])
tests/test_update.py:68
← previous
next →
2,001–2,100 of 2,179, ranked by callers