MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodtest_unsafe_read_missing_key_emits_l1_read_failed
Deleting a key between reserve_read and unsafe_read must publish L1_READ_FAILED with during=l1_retrieve, reason=not_found.
tests/v1/distributed/test_distributed_storage_manager.py:759
Methodtest_unsafe_read_multiple_keys
Test unsafe_read with multiple keys in a single call.
tests/v1/distributed/test_l1_manager.py:489
Methodtest_unsafe_read_multiple_times_without_adding_read_count
Test that multiple unsafe_reads don't add to read lock count.
tests/v1/distributed/test_l1_manager.py:462
Methodtest_unsafe_read_non_existing_key_returns_key_not_exist
Test that unsafe_read returns KEY_NOT_EXIST for non-existing keys.
tests/v1/distributed/test_l1_manager.py:355
Methodtest_unsafe_read_non_read_locked_returns_key_not_readable
Test that unsafe_read returns KEY_NOT_READABLE if not read-locked.
tests/v1/distributed/test_l1_manager.py:371
Methodtest_unsafe_read_read_locked_returns_success
Test that unsafe_read returns SUCCESS for read-locked keys.
tests/v1/distributed/test_l1_manager.py:412
Methodtest_unsafe_read_returns_same_memory_obj_as_reserve_read
Test that unsafe_read returns the same MemoryObj as reserve_read.
tests/v1/distributed/test_l1_manager.py:436
Methodtest_unsafe_read_write_locked_returns_key_not_readable
Test that unsafe_read returns KEY_NOT_READABLE for write-locked keys.
tests/v1/distributed/test_l1_manager.py:392
Methodtest_unsalted_format
Unsalted keys use the 4-field shape.
tests/v1/distributed/test_fs_l2_adapter_keys.py:72
Methodtest_unsampled_chunks_still_advance_counter
Counter bumps on every access regardless of sampling. Sampling decides which chunks are in the histogram, not which chunks contribute
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:286
Methodtest_unsampled_first_sighting_is_dropped
Near-zero sample rate → cold seed skipped → no later sample.
tests/v1/mp_observability/subscribers/metrics/test_sm_lifecycle.py:271
Methodtest_unsampled_key_ignored_on_eviction
Evicting an unsampled key should not record lifetime.
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:265
Methodtest_unsupported_block_axis_raises
A block_axis out of range for the tensor ndim must bubble up from ``index_select`` as ``IndexError``.
tests/v1/multiprocess/test_compute_mp_checksums.py:237
Methodtest_unsupported_dtype_raises
(self)
tests/test_utils.py:372
Methodtest_unsupported_strategy_raises
(self)
tests/v1/storage_backend/test_path_sharder.py:80
Functiontest_unsupported_structure_raises
()
tests/v1/gpu_connector/test_kv_format_detection.py:107
Methodtest_update_config_from_env_adds_to_user_set_keys
Test that update_config_from_env adds newly set keys to _user_set_keys.
tests/v1/test_config.py:603
Functiontest_update_config_from_env_basic
()
tests/v1/test_config.py:93
Functiontest_update_config_from_env_calls_validate
Test that update_config_from_env() calls validate() method. This is a regression test for the issue where _validate_config at line 504 was no
tests/v1/test_config.py:792
Functiontest_update_config_from_env_error_handling
()
tests/v1/test_config.py:152
Functiontest_update_config_from_env_extra_config
()
tests/v1/test_config.py:118
Functiontest_update_config_from_env_internal_api_server_include_index_list
()
tests/v1/test_config.py:135
Functiontest_update_config_from_env_quotes
()
tests/v1/test_config.py:105
Functiontest_update_heartbeat
()
tests/v1/mp_coordinator/test_registry.py:59
Functiontest_update_local_cache_usage
(stats_monitor)
tests/test_observability.py:52
Functiontest_update_local_storage_usage
(stats_monitor)
tests/test_observability.py:64
Functiontest_update_quota
()
tests/v1/mp_coordinator/test_l2_api.py:60
Functiontest_update_remote_cache_usage
(stats_monitor)
tests/test_observability.py:58
Methodtest_updates_cache_policy_on_successful_load
update_on_hit must be called exactly once when the load succeeds.
tests/v1/storage_backend/test_local_disk_backend.py:434
Methodtest_uppercase_hex_round_trips_lowercased
(self)
tests/v1/distributed/test_encoded_object_key.py:55
Functiontest_uring_cmd_auto_transfer_limit_fails_when_sysfs_unavailable
()
tests/v1/storage_backend/test_raw_block_uring_cmd.py:276
Functiontest_uring_cmd_auto_transfer_limit_from_sysfs_ng_device
()
tests/v1/storage_backend/test_raw_block_uring_cmd.py:260
Functiontest_uring_cmd_disabled
Test that NVMe methods are not available when use_uring_cmd is disabled.
tests/v1/storage_backend/test_raw_block_uring_cmd.py:230
Functiontest_uring_cmd_explicit_transfer_limit_must_be_block_aligned
Test that explicitly configured max_data_transfer_size must be block-aligned.
tests/v1/storage_backend/test_raw_block_uring_cmd.py:292
Functiontest_uring_cmd_get_nvme_info
Test getting NVMe namespace ID and LBA size from character device.
tests/v1/storage_backend/test_raw_block_uring_cmd.py:192
Functiontest_uring_cmd_requires_character_device
Test that io_uring_cmd requires a character device, not a block device.
tests/v1/storage_backend/test_raw_block_uring_cmd.py:167
Methodtest_url_normalization
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:176
Methodtest_url_overrides_env_vars
URL-parsed values should take precedence over env vars.
tests/v1/distributed/test_resp_env_vars.py:157
Methodtest_usage_extraction
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:256
Methodtest_usage_fraction_in_range
(self)
tests/v1/distributed/test_l2_adapter_base.py:79
Methodtest_usage_fraction_negative_capacity_returns_minus_one
(self)
tests/v1/distributed/test_l2_adapter_base.py:89
Methodtest_usage_fraction_zero_capacity_returns_minus_one
(self)
tests/v1/distributed/test_l2_adapter_base.py:83
Methodtest_usage_grows_on_store_and_shrinks_on_delete
( self, adapter: HFBucketL2Adapter, )
tests/v1/distributed/test_hfbucket_l2_adapter.py:433
Methodtest_usage_grows_on_store_and_shrinks_on_delete
(self, adapter)
tests/v1/distributed/test_s3_l2_adapter.py:604
Methodtest_used_size_override_resets_on_paged_allocator_reuse
After a free + re-allocate from the paged allocator, a recycled block must return its layout-derived size, not the previous owner's na
tests/v1/test_memory_management.py:1066
Methodtest_used_size_override_resets_on_paged_batched_reuse
Same contract as the single-allocate test but via ``batched_allocate``, which has its own copy of the per-block metadata-reset logic.
tests/v1/test_memory_management.py:1090
Methodtest_user_message_contains_all_contexts
(self)
tests/cli/commands/bench/engine_bench/workloads/test_long_doc_permutator.py:349
Methodtest_uses_bytes_transferred_when_present
(self, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_l2_throughput.py:353
Methodtest_uses_completions_api
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:406
Functiontest_v_only_blob_is_one_third_of_storage_only_blob
V-only blob bytes = V_8 + scales + small header. Storage-only-dequant blob bytes = K_16 + V_8 + scales + small header. The layout-invariant
tests/v1/distributed/serde/test_asym_k16_v8_v_only.py:174
Functiontest_v_only_deserialize_ignores_k_slot
A non-None K dst slot is a no-op for the V-only deserializer.
tests/v1/distributed/serde/test_asym_k16_v8_v_only.py:150
Functiontest_v_only_deserializer_refuses_storage_only_blob
A storage-only-dequant blob has k_payload_len > 0; the V-only deserializer must reject it rather than silently mis-decode.
tests/v1/distributed/serde/test_asym_k16_v8_v_only.py:218
Functiontest_v_only_round_trip_v_within_fp8_noise
()
tests/v1/distributed/serde/test_asym_k16_v8_v_only.py:124
Methodtest_valid_config
(self)
tests/v1/distributed/test_l2_adapter_factory.py:165
Methodtest_valid_configs_pass
(self)
tests/v1/test_kv_layer_groups_manager.py:315
Methodtest_valid_construction
(self)
tests/cli/commands/bench/engine_bench/test_config.py:66
Methodtest_valid_mode_invokes_function
A valid mode should be called with parsed args.
tests/v1/test_basic_check.py:231
Functiontest_validate_group_size_rejects_mismatch
()
tests/v1/distributed/serde/test_multi.py:255
Functiontest_validate_group_size_rejects_wrong_arity
()
tests/v1/distributed/serde/test_asym_k16_v8_multi.py:75
Methodtest_validate_mla_config_raises_on_layerwise_with_blending
Test validate_mla_config raises with MLA + layerwise + blending.
tests/v1/test_manager.py:363
Methodtest_validate_mla_config_raises_on_wrong_serde
Test validate_mla_config raises error for non-naive serde with MLA.
tests/v1/test_manager.py:352
Functiontest_valkey_basic_operations
Test basic operations: exists, put, get.
tests/v1/storage_backend/test_valkey_connector.py:179
Functiontest_valkey_batch_operations
Test batch operations: batched_put, batched_get, batched_async_contains.
tests/v1/storage_backend/test_valkey_connector.py:221
Functiontest_valkey_batched_contains_prefix
Test that batched_contains returns prefix count correctly.
tests/v1/storage_backend/test_valkey_connector.py:388
Functiontest_valkey_batched_get_non_blocking_all_present
Test batched_get_non_blocking when all keys are present.
tests/v1/storage_backend/test_valkey_connector.py:622
Functiontest_valkey_batched_get_non_blocking_first_missing
Test batched_get_non_blocking returns empty when first key is missing.
tests/v1/storage_backend/test_valkey_connector.py:697
Functiontest_valkey_batched_get_non_blocking_prefix_truncation
Test batched_get_non_blocking returns only the consecutive prefix. Put keys 0-2, request keys 0-4. Should return only the first 3 objects; k
tests/v1/storage_backend/test_valkey_connector.py:657
Functiontest_valkey_batched_get_partial_misses
Test batched_get when some keys exist and some don't. Put keys 0-4, request keys 0-9. The result should have 5 MemoryObjs followed by 5 None
tests/v1/storage_backend/test_valkey_connector.py:574
Functiontest_valkey_cluster_mode_config
Test that cluster mode passes cluster_mode=True and ignores database_id.
tests/v1/storage_backend/test_valkey_connector.py:755
Functiontest_valkey_concurrent_operations
Test concurrent put/get operations.
tests/v1/storage_backend/test_valkey_connector.py:325
Functiontest_valkey_different_chunk_sizes
Test that the connector works with different chunk sizes.
tests/v1/storage_backend/test_valkey_connector.py:416
Functiontest_valkey_exists_sync
Test synchronous exists method.
tests/v1/storage_backend/test_valkey_connector.py:363
Functiontest_valkey_nonexistent_key
Test exists and get on a non-existent key.
tests/v1/storage_backend/test_valkey_connector.py:270
Functiontest_valkey_pipelined_batch_exceeds_arena
Test batched put/get when batch size > num_workers. With num_workers=4, a batch of 12 keys forces the connector to handle more concurrent ope
tests/v1/storage_backend/test_valkey_connector.py:475
Functiontest_valkey_sequential_operations
Test multiple sequential put/get cycles.
tests/v1/storage_backend/test_valkey_connector.py:297
Functiontest_valkey_standalone_mode_config
Test that standalone mode (default) passes correct config to pool.
tests/v1/storage_backend/test_valkey_connector.py:722
Functiontest_valkey_tls_config
Test that tls_enable is passed through to the pool.
tests/v1/storage_backend/test_valkey_connector.py:788
Functiontest_valkey_worker_scaling
Test ValkeyConnector with different numbers of worker threads.
tests/v1/storage_backend/test_valkey_connector.py:531
Methodtest_values_copy
(self)
tests/cli/commands/bench/engine_bench/interactive/test_state.py:85
Methodtest_varied_allocation_sizes
Test allocations of varied sizes.
tests/v1/test_address_manager.py:1116
Methodtest_various_chunk_sizes
The logic should work correctly for any chunk_size.
tests/v1/multiprocess/test_skip_first_n_tokens.py:212
Methodtest_version_empty
(self)
tests/test_utils.py:199
Methodtest_version_partial
(self)
tests/test_utils.py:203
Methodtest_version_with_values
(self)
tests/test_utils.py:192
Methodtest_very_large_limit
Well inside a 64-bit int — shouldn't overflow or round.
tests/v1/distributed/test_quota_manager.py:172
Methodtest_very_short_ttl
Test with very short TTL (1 second).
tests/v1/native_storage_ops/test_ttl_lock.py:399
Functiontest_vllm_blocks_first_fused_num_heads_2
()
tests/v1/gpu_connector/test_kv_format_detection.py:65
Methodtest_vllm_cached_dominates
When vllm_cached > lmcache_cached, no adjustment.
tests/v1/test_decode_save_and_preemption.py:300
Functiontest_vllm_cross_layer
()
tests/v1/gpu_connector/test_kv_format_detection.py:29
Methodtest_vllm_dominant_wrong_value_fails
When vllm dominates, num_computed must equal vllm_cached exactly.
tests/v1/test_decode_save_and_preemption.py:313
Functiontest_vllm_flash_attn_nhd_vs_hnd
(monkeypatch)
tests/v1/gpu_connector/test_kv_format_detection.py:41
Functiontest_vllm_flash_infer_nhd
(monkeypatch)
tests/v1/gpu_connector/test_kv_format_detection.py:52
Functiontest_vllm_layerwise_musa_batched_to_gpu_accepts_empty_batch
Empty layerwise batches keep the generator contract without cat([]).
tests/v1/test_musa_connector.py:472
Functiontest_vllm_layerwise_musa_connector_constructs_without_torch_musa
Layerwise construction must not require a MUSA-enabled torch build.
tests/v1/test_musa_connector.py:391
Functiontest_vllm_mla
()
tests/v1/gpu_connector/test_kv_format_detection.py:59
Functiontest_vllm_paged_connector_v2_to_gpu_bench
VLLMPagedMemXPUConnectorV2.to_gpu() micro-benchmark. This test is to measure the performance of VLLMPagedMemXPUConnectorV2.to_gpu() when
tests/v1/test_xpu_connector.py:756
Functiontest_vllm_paged_connector_v2_to_gpu_bench
VLLMPagedMemGPUConnectorV2.to_gpu() micro-benchmark. This test is to measure the performance of VLLMPagedMemGPUConnectorV2.to_gpu() when
tests/v1/test_gpu_connector.py:766
Functiontest_vllm_paged_connector_v2_with_gpu_and_mla
(use_gpu, engine_kv_format)
tests/v1/test_xpu_connector.py:117
Functiontest_vllm_paged_connector_v2_with_gpu_and_mla
(use_gpu, engine_kv_format)
tests/v1/test_gpu_connector.py:127
Functiontest_vllm_paged_connector_v3_with_gpu_and_mla
( use_gpu, num_groups, engine_kv_format )
tests/v1/test_xpu_connector.py:238
← previousnext →13,001–13,100 of 13,371, ranked by callers