MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodtest_total_is_slab_size
(self)
tests/v1/distributed/memory_manager/test_gds_l1_memory_manager.py:64
Methodtest_total_miss_hit_rate
CB_LOOKUP_END with storage_hits=0 but requested_tokens>0 → hit_rate=0.0.
tests/v1/mp_observability/subscribers/tracing/test_cb_server.py:715
Methodtest_touch_moves_key_to_most_recent
Touching a key should move it to the most recently used position.
tests/v1/distributed/test_lru_eviction_policy.py:105
Methodtest_touch_nonexistent_key_is_safe
Touching a nonexistent key should not raise an error.
tests/v1/distributed/test_lru_eviction_policy.py:120
Methodtest_touch_updates_order
Touching a key moves it to MRU. After ``on_keys_created`` the reversed-insertion rule leaves ``k2`` as LRU (first out). Touching ``k2`
tests/v1/distributed/test_isolated_lru_eviction_policy.py:52
Methodtest_tp2_both_workers_have_all_chunks
Test TP=2 lookup when both workers have all chunks cached. Expected: All lookups return True.
tests/v1/distributed/test_object_key_parallel.py:161
Methodtest_tp2_different_partial_hits_min_common_prefix
Test TP=2 with different partial hits across workers. Worker 0: has chunks 0, 1, 2, 3, 4 (5 chunks) Worker 1: has chunks 0, 1
tests/v1/distributed/test_object_key_parallel.py:288
Methodtest_tp2_only_worker0_has_cache_asymmetric
Test TP=2 lookup when only worker 0 has cache (asymmetric). Expected: Lookup returns 0 (no complete cache hit).
tests/v1/distributed/test_object_key_parallel.py:194
Methodtest_tp2_only_worker1_has_cache_asymmetric
Test TP=2 lookup when only worker 1 has cache (asymmetric). Expected: Lookup returns 0 (first key for worker 0 is missing).
tests/v1/distributed/test_object_key_parallel.py:226
Methodtest_tp2_partial_prefix_both_workers
Test TP=2 lookup with partial prefix: both workers have first 3 chunks. Expected: First 3 chunks return True, rest return False.
tests/v1/distributed/test_object_key_parallel.py:254
Methodtest_tp2_retrieve_specific_worker
Test that retrieve with specific worker_id only gets that worker's data.
tests/v1/distributed/test_object_key_parallel.py:450
Methodtest_tp2_store_creates_separate_keys
Test that storing with different worker_ids creates separate entries.
tests/v1/distributed/test_object_key_parallel.py:419
Methodtest_tp4_all_workers_have_cache
Test TP=4 lookup when all 4 workers have all chunks cached.
tests/v1/distributed/test_object_key_parallel.py:339
Methodtest_tp4_one_worker_missing_causes_no_hit
Test TP=4 where one worker (worker 2) is missing all cache. Expected: No complete hits due to prefix matching.
tests/v1/distributed/test_object_key_parallel.py:370
Methodtest_track_dict_bounded_by_cap
Random eviction on overflow: dict size never exceeds cap.
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:349
Functiontest_transfer_channel_address_validity
A non-negative offset is valid; a negative one is not.
tests/v1/multiprocess/test_p2p_controller.py:129
Methodtest_triggered_increments_both_counters
(self, bus, subscriber, snapshot)
tests/v1/mp_observability/subscribers/metrics/test_l1_eviction_loop.py:72
Methodtest_trim_skips_prefix_range
``start_pos > 0`` skips the chain-walk-covered prefix.
tests/v1/multiprocess/test_optimized_lookup_v3.py:672
Methodtest_trips_after_three_connection_errors
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:633
Functiontest_trtllm_cross_layer_6d
()
tests/v1/gpu_connector/test_kv_format_detection.py:101
Methodtest_trtllm_exists
(self)
tests/v1/test_trtllm_integration.py:34
Methodtest_true_reuse_after_release
Block released then reused with same tokens = true cache hit.
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:234
Methodtest_truncated_file_warns
(self, trace_path)
tests/v1/mp_observability/trace/test_recorder.py:181
Functiontest_try_native_from_gpu_falls_back_on_native_exception
Native failures must return False so callers keep the torch fallback.
tests/v1/test_musa_native.py:200
Functiontest_try_native_from_gpu_rejects_cpu_tensors
Native gather must not consume CPU tensors through musa_aiter fallback.
tests/v1/test_musa_native.py:229
Functiontest_try_native_to_gpu_calls_non_mla_symbol
Non-MLA scatter uses the LMCache-compatible buffer-to-paged call.
tests/v1/test_musa_native.py:119
Functiontest_try_native_to_gpu_rejects_cpu_tensors
Native dispatch must not consume CPU tensors through musa_aiter fallback.
tests/v1/test_musa_native.py:176
Functiontest_try_native_to_gpu_returns_true_for_empty_range
An empty native transfer is a completed no-op after ABI is ready.
tests/v1/test_musa_native.py:154
Methodtest_try_to_read_metadata_file_not_found
Test that FileNotFoundError is handled gracefully.
tests/v1/storage_backend/test_gds_backend.py:223
Methodtest_try_to_read_metadata_finds_across_all_paths
contains() fallback finds metadata on a non-affinity path. After clearing hot_cache (so the startup scan results are gone), ``contain
tests/v1/storage_backend/test_gds_backend.py:933
Methodtest_try_to_read_metadata_generic_exception
Test that generic exceptions are handled gracefully.
tests/v1/storage_backend/test_gds_backend.py:314
Methodtest_try_to_read_metadata_io_error
Test that OSError/IOError is handled gracefully.
tests/v1/storage_backend/test_gds_backend.py:288
Methodtest_try_to_read_metadata_permission_error
Test that PermissionError is handled gracefully.
tests/v1/storage_backend/test_gds_backend.py:231
Methodtest_try_to_read_metadata_unsupported_version
Test that UnsupportedMetadataVersion is handled gracefully.
tests/v1/storage_backend/test_gds_backend.py:262
Methodtest_tuple_becomes_list
(self)
tests/v1/test_json_utils.py:41
Methodtest_tuple_payload_for_multiple_arguments
(self, dispatcher, stream)
tests/v1/multiprocess/test_completion_recorder.py:141
Methodtest_tuple_preserved
(self)
tests/v1/mp_observability/trace/test_codecs.py:41
Methodtest_two_consecutive
(self)
tests/test_utils.py:71
Methodtest_two_elements
(self)
tests/test_utils.py:104
Methodtest_two_sequential_requests
Two back-to-back requests should both complete correctly.
tests/v1/distributed/test_prefetch_controller.py:798
Functiontest_two_slot_roundtrip_all_present
()
tests/v1/distributed/serde/test_multi.py:267
Methodtest_type_name_lookup
(self)
tests/v1/distributed/test_native_connector_l2_adapter.py:1130
Methodtest_type_registered
(self)
tests/v1/distributed/test_aerospike_l2_adapter_config.py:16
Methodtest_uint8_dtype
(self)
tests/v1/test_kv_layer_groups_manager.py:280
Methodtest_uint8_dtype_uses_randint
Regression: ``torch.randn`` crashes with integer dtypes.
tests/cli/commands/bench/test_server_bench.py:358
Methodtest_unclosed_bracket
(self)
tests/test_utils.py:167
Methodtest_under_budget_does_nothing
Nobody is over threshold → no eviction, accounting is stable across the cycle.
tests/v1/distributed/test_cache_salt_l2_eviction.py:197
Functiontest_under_quota
()
tests/v1/mp_coordinator/test_eviction_manager.py:147
Methodtest_underflow_clamps_to_zero
A delete that would drive ``_total_bytes_used`` negative clamps to 0 (and logs a warning, observable via stderr). Without the clamp th
tests/v1/distributed/test_l2_adapter_base.py:193
Methodtest_unencodable_arg_drops_record
An arg whose type has no codec is dropped, not crashed on.
tests/v1/mp_observability/trace/test_recorder.py:235
Functiontest_unfold_empty_prefix
()
tests/v1/distributed/test_bitmap_ops.py:59
Functiontest_unfold_full_attention_needs_whole_prefix
()
tests/v1/distributed/test_bitmap_ops.py:48
Methodtest_unfold_matches_reference_at_boundaries
(self)
tests/v1/distributed/test_bitmap_ops.py:385
Functiontest_unfold_window_needs_only_last_w
()
tests/v1/distributed/test_bitmap_ops.py:53
Methodtest_unhealthy
(self)
tests/cli/test_describe.py:116
Methodtest_unhealthy
Verify health shows UNHEALTHY when is_healthy is False.
tests/cli/test_describe.py:214
Methodtest_unhealthy_engine_makes_manager_unhealthy
Test that manager is unhealthy when engine is unhealthy.
tests/v1/test_manager.py:462
Methodtest_unified_touch_produces_reverse_eviction_order
Touching keys in order [1,2,3] should evict 1 first (LRU).
tests/v1/multiprocess/test_unified_touch.py:136
Methodtest_union_of_bitmaps
Non-empty inputs are OR-merged into one num_keys-sized bitmap.
tests/v1/distributed/test_prefetch_controller.py:1310
Methodtest_union_of_bitmaps
Non-empty inputs are OR-merged into one num_keys-sized bitmap.
tests/v1/distributed/test_bitmap_ops.py:279
Methodtest_unknown_config_raises
Config class not in the registry should fail.
tests/v1/distributed/test_l2_adapter_factory.py:147
Methodtest_unknown_instance_id
404 when instance_id is not registered.
tests/v1/multiprocess/test_http_server.py:148
Methodtest_unknown_key_raises
(self)
tests/cli/commands/bench/engine_bench/interactive/test_schema.py:73
Methodtest_unknown_kind_drops_payload
(self, dispatcher, stream)
tests/v1/multiprocess/test_completion_recorder.py:116
Methodtest_unknown_mode
Unknown mode should print an error.
tests/v1/test_basic_check.py:214
Methodtest_unknown_qualname_is_skipped
An empty dispatcher with no matching handlers skips every record without raising.
tests/cli/commands/trace/test_driver.py:224
Methodtest_unknown_tag_raises
(self)
tests/v1/mp_observability/trace/test_codecs.py:133
Methodtest_unknown_type_raises
(self)
tests/v1/mp_observability/trace/test_codecs.py:126
Methodtest_unknown_workload_raises
(self)
tests/cli/commands/bench/engine_bench/workloads/test_create_workload.py:272
Methodtest_unlimited_via_empty_list
(self, temp_pkg: Tuple[str, Path])
tests/v1/test_subclass_discovery.py:459
Methodtest_unlimited_via_zero_zero
(self, temp_pkg: Tuple[str, Path])
tests/v1/test_subclass_discovery.py:474
Methodtest_unlock_after_lock
(self, adapter)
tests/v1/distributed/test_native_connector_l2_adapter.py:577
Methodtest_unlock_after_lock
Unlocking after locking should work without error.
tests/v1/distributed/test_mock_l2_adapter.py:389
Methodtest_unlock_after_lock
Unlocking after locking should work without error.
tests/v1/distributed/test_nixl_store_l2_adapter.py:454
Methodtest_unlock_after_partial_locks
Test unlock when counter is already at minimum.
tests/v1/native_storage_ops/test_ttl_lock.py:72
Methodtest_unlock_decrements_counter
Test that unlock() decrements the counter.
tests/v1/native_storage_ops/test_ttl_lock.py:41
Methodtest_unlock_does_not_go_below_zero
Test that unlock() never goes below 0.
tests/v1/native_storage_ops/test_ttl_lock.py:59
Methodtest_unlock_does_not_raise
(self, adapter)
tests/v1/distributed/test_native_connector_l2_adapter.py:573
Functiontest_unlock_empty_is_noop
()
tests/v1/distributed/l2_adapters/test_p2p_l2_adapter.py:349
Functiontest_unlock_objects_calls_finish_read_prefetched
p2p_unlock_objects forwards the keys to finish_read_prefetched.
tests/v1/multiprocess/test_p2p_controller.py:238
Functiontest_unlock_objects_empty_is_noop
Unlocking an empty key list does nothing.
tests/v1/multiprocess/test_p2p_controller.py:246
Functiontest_unlock_sends_rpc_and_clears_addresses
()
tests/v1/distributed/l2_adapters/test_p2p_l2_adapter.py:338
Methodtest_unlock_without_lock
Test unlocking a never-locked lock.
tests/v1/native_storage_ops/test_ttl_lock.py:425
Methodtest_unmatched_closing_bracket
(self)
tests/test_utils.py:162
Methodtest_unmatched_end_does_not_crash
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/tracing/test_cb_server.py:526
Methodtest_unmatched_end_does_not_crash
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/tracing/test_mp_server.py:568
Methodtest_unmatched_start_cleaned_on_shutdown
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/tracing/test_cb_server.py:539
Methodtest_unmatched_start_cleaned_on_shutdown
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/tracing/test_mp_server.py:581
Methodtest_unparsable_objects_silently_skipped
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:889
Methodtest_unpin_delegates_to_handler
(self, backend)
tests/v1/storage_backend/test_maru_backend.py:706
Methodtest_unpin_returns_false_on_failure
(self, backend)
tests/v1/storage_backend/test_maru_backend.py:713
Methodtest_unreachable_returns_none
(self)
tests/cli/commands/bench/test_server_bench.py:293
Methodtest_unrecognized_dtype_raises
Test that unrecognized dtype raises with helpful message.
tests/v1/test_kv_layer_groups_manager.py:242
Methodtest_unregister_nonexistent_fd
(self)
tests/v1/native_storage_ops/test_periodic_event_notifier.py:219
Functiontest_unregister_one_shared_gpu_layout_keeps_registry_until_last_instance
Unregistering one shared GPU instance must not remove the shared layout.
tests/v1/multiprocess/test_lmcache_driven_layout_registry.py:55
Methodtest_unregister_stops_signals
(self)
tests/v1/native_storage_ops/test_periodic_event_notifier.py:126
Functiontest_unregistered_device_type_raises
An unknown device type is a hard failure with a clear hint.
tests/v1/platform/test_cache_context_dispatch.py:188
Methodtest_unregistered_salt_gets_wiped
A salt with no quota entry is fully evicted on the next cycle (allowlist semantics).
tests/v1/distributed/test_cache_salt_l2_eviction.py:177
Methodtest_unregistered_salt_limit_is_zero
Allowlist semantics — anything unregistered has limit 0.
tests/v1/distributed/test_quota_manager.py:17
Methodtest_unsafe_read_between_reserve_and_finish
Test proper usage: unsafe_read between reserve_read and finish_read.
tests/v1/distributed/test_l1_manager.py:519
← previousnext →12,901–13,000 of 13,371, ranked by callers