MCPcopy Create free account

hub / github.com/LMCache/LMCache / functions

Functions13,371 in github.com/LMCache/LMCache

Methodtest_eviction_counts
(self, bus, subscriber, snapshot)
tests/v1/mp_observability/subscribers/metrics/test_l2.py:379
Methodtest_eviction_destination_default_is_discard
(self)
tests/v1/distributed/test_isolated_lru_eviction_policy.py:117
Methodtest_eviction_emits_instance_id_and_model_name
Histogram data points should carry instance_id and model_name.
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:450
Methodtest_eviction_fifo_under_strict_lru
(self)
tests/cli/commands/bench/engine_bench/workloads/test_prefix_suffix_tuner.py:644
Methodtest_eviction_order_is_lru
Keys should be evicted in LRU order (oldest first).
tests/v1/distributed/test_lru_eviction_policy.py:90
Functiontest_eviction_ratio
()
tests/v1/mp_coordinator/test_eviction_manager.py:168
Methodtest_eviction_records_idle
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:109
Methodtest_eviction_records_idle_time
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_l0_lifecycle.py:294
Methodtest_eviction_records_lifetime
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:97
Methodtest_eviction_reduces_hits
(self)
tests/tools/test_cache_simulator.py:304
Methodtest_eviction_removes_from_shadow
(self, bus, subscriber)
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:121
Methodtest_eviction_without_write_no_crash
Evicting a key that was never written should not crash.
tests/v1/mp_observability/subscribers/metrics/test_l1_lifecycle.py:131
Methodtest_evicts_lru_when_full
(self)
tests/tools/test_cache_simulator.py:32
Methodtest_evicts_lru_when_full
(self)
tests/tools/test_cache_simulator.py:84
Methodtest_exact_division
(self)
tests/test_utils.py:31
Methodtest_exact_multiple
(self)
tests/test_utils.py:48
Methodtest_example_from_spec
Test the exact example from the specification.
tests/v1/native_storage_ops/test_pattern_matcher.py:28
Methodtest_example_from_spec
Test the exact example from the specification.
tests/v1/native_storage_ops/test_pattern_matcher.py:394
Methodtest_exception_during_streaming
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:296
Methodtest_exception_returns_zero
(self)
tests/v1/test_nixl_batched_contains.py:112
Methodtest_exception_treated_as_failure
(self, monitor)
tests/v1/test_health_monitor.py:162
Methodtest_exceptions_counter_emits_per_subscriber
(self)
tests/v1/mp_observability/subscribers/metrics/test_event_bus_self_metrics.py:61
Methodtest_exceptions_counter_empty_when_no_failures
(self)
tests/v1/mp_observability/subscribers/metrics/test_event_bus_self_metrics.py:83
Methodtest_exclude_filters_named_modules
Modules whose base name is listed in ``exclude`` are skipped.
tests/v1/multiprocess/test_http_api_registry.py:116
Methodtest_exclude_none_is_default
Passing ``exclude=None`` keeps all discoverable modules.
tests/v1/multiprocess/test_http_api_registry.py:141
Methodtest_excluded_command_no_audit_log
Test that excluded commands don't generate audit logs
tests/v1/storage_backend/test_audit_connector.py:412
Methodtest_excluded_engine_group_sentinel
(self)
tests/v1/test_kv_layer_groups_manager.py:365
Methodtest_excluded_layer_left_out_of_all_groups
(self)
tests/v1/test_kv_layer_groups_manager.py:486
Methodtest_execute_calls_request_send_request
query_engine should call Request.send_request with the expanded prompt.
tests/cli/commands/test_query.py:147
Methodtest_execute_calls_run_http_server
execute() should call run_http_server with parsed configs.
tests/cli/commands/test_server.py:130
Functiontest_execute_evictions_dispatches_to_registered_instance
Computed plan must DELETE /l2 to a registered MP server with the right body shape. The LRU is NOT cleared by ``execute_evictions`` itself — th
tests/v1/mp_coordinator/test_eviction_manager.py:246
Functiontest_execute_evictions_empty_plan_is_noop
No salts over threshold ⇒ no HTTP dispatch.
tests/v1/mp_coordinator/test_eviction_manager.py:346
Functiontest_execute_evictions_http_failure_keeps_lru
A non-2xx (or transport error) from the MP server must NOT clear the LRU — the next cycle should retry.
tests/v1/mp_coordinator/test_eviction_manager.py:323
Functiontest_execute_evictions_no_instances_skips_dispatch_and_keeps_lru
No registered MP servers ⇒ the plan is logged but neither dispatched nor cleared from the LRU.
tests/v1/mp_coordinator/test_eviction_manager.py:299
Methodtest_execute_invalid_prompt_exits
Unknown ``{placeholder}`` without ``--documents`` raises and exits.
tests/cli/commands/test_query.py:217
Methodtest_execute_operation_success
Test successful operation execution
tests/tools/test_controller_zmq_benchmark.py:348
Methodtest_execute_operation_unknown
Test unknown operation execution
tests/tools/test_controller_zmq_benchmark.py:369
Methodtest_execute_uses_engine_model_when_cli_model_omitted
With no ``--model``, the report uses the model id from engine stats.
tests/cli/commands/test_query.py:190
Methodtest_existing_files_discovered_on_init
Files from previous runs are counted toward max_files.
tests/v1/mp_observability/subscribers/logging/test_lookup_hash_logger.py:228
Methodtest_exists_in_put_tasks
(self, gds_backend)
tests/v1/storage_backend/test_gds_backend.py:170
Methodtest_exists_in_put_tasks
Test exists_in_put_tasks().
tests/v1/storage_backend/test_local_cpu_backend.py:187
Methodtest_exists_in_put_tasks_true_during_store
Verify exists_in_put_tasks returns True while store is in progress.
tests/v1/storage_backend/test_maru_backend.py:302
Methodtest_exists_sync_excluded_no_audit_log
Test that excluded exists_sync doesn't generate audit logs
tests/v1/storage_backend/test_audit_connector.py:623
Methodtest_exists_sync_with_audit_log
Test exists_sync synchronous operation with audit log
tests/v1/storage_backend/test_audit_connector.py:595
Methodtest_exists_with_audit_log
Test exists operation with audit log
tests/v1/storage_backend/test_audit_connector.py:298
Methodtest_exit_without_matching_enter_is_warning_only
(self, caplog)
tests/cli/commands/trace/test_dispatch.py:150
Methodtest_explicit_alignment_override_for_mixed_allocator
(self, monkeypatch)
tests/v1/storage_backend/test_local_cpu_backend.py:695
Methodtest_export_config_errors_when_missing_args
(self)
tests/cli/commands/bench/test_bench_command.py:307
Methodtest_export_config_excludes_lmcache_url
( self, tmp_path, # type: ignore[no-untyped-def] )
tests/cli/commands/bench/test_bench_command.py:352
Methodtest_export_config_flag_accepted
(self)
tests/cli/commands/bench/test_bench_command.py:285
Methodtest_export_config_includes_workload_args
( self, tmp_path, # type: ignore[no-untyped-def] )
tests/cli/commands/bench/test_bench_command.py:377
Methodtest_export_config_writes_json
(self, tmp_path)
tests/cli/commands/bench/test_bench_command.py:315
Methodtest_export_csv
(self, tmp_path)
tests/cli/commands/trace/test_stats.py:77
Methodtest_export_csv
(self, tmp_path)
tests/cli/commands/bench/engine_bench/test_stats.py:291
Methodtest_export_csv_empty
(self, tmp_path)
tests/cli/commands/bench/engine_bench/test_stats.py:306
Methodtest_export_flags
(self, base_namespace)
tests/cli/commands/bench/engine_bench/test_config.py:183
Methodtest_export_json
(self, tmp_path)
tests/cli/commands/trace/test_stats.py:101
Methodtest_export_json
(self, tmp_path)
tests/cli/commands/bench/engine_bench/test_stats.py:316
Functiontest_extra_config_default_lets_env_var_select_mp_transfer_mode
When extra_config omits mp_transfer_mode, env var must still win. The adapter detects the absence of ``lmcache.mp.mp_transfer_mode`` and pass
tests/v1/multiprocess/test_engine_driven_transfer.py:291
Methodtest_extra_config_invalid_json_fails
Test that invalid JSON string for extra_config fails.
tests/v1/test_config.py:732
Methodtest_extra_config_json_string_conversion
Test that JSON string is converted to dict for extra_config.
tests/v1/test_config.py:724
Methodtest_extra_config_overrides_env_vars
extra_config values should take precedence over env vars.
tests/v1/distributed/test_resp_env_vars.py:124
Methodtest_extra_count_default_is_zero
Default extra_count=0 behaves same as before.
tests/v1/distributed/test_distributed_storage_manager.py:492
Methodtest_extra_count_non_prefix_loaded_keys_fully_released
Keys loaded beyond the prefix (due to partial load failure) must have ALL extra locks released by _finalize_load so they can be evicted.
tests/v1/distributed/test_prefetch_controller.py:1026
Methodtest_extra_count_one_requires_two_finish_reads
extra_count=1: two read locks acquired; key stays locked after first finish_read and is released after second.
tests/v1/distributed/test_prefetch_controller.py:885
Methodtest_extra_count_three_requires_four_finish_reads
extra_count=3 (TP=4): four read locks; key stays locked until all four are released.
tests/v1/distributed/test_prefetch_controller.py:931
Methodtest_extra_count_with_prefix_trim
extra_count=1 with a gap in L2: only prefix keys get 2 locks; non-prefix keys are never loaded.
tests/v1/distributed/test_prefetch_controller.py:974
Methodtest_extra_count_zero_default_behavior
extra_count=0 (default): single read lock, key freed after one finish_read.
tests/v1/distributed/test_prefetch_controller.py:852
Functiontest_extract_and_load_back
(num_tokens)
tests/v1/test_mem_kernels.py:95
Functiontest_facade_diagnostic_labels
(case)
tests/v1/gpu_connector/test_kv_format_specs.py:318
Functiontest_factory_creates_adapter
()
tests/v1/distributed/l2_adapters/test_p2p_l2_adapter.py:130
Methodtest_factory_creates_adapter
Factory creates a NativeConnectorL2Adapter wrapping the FS client.
tests/v1/distributed/test_l2_adapter_factory.py:918
Methodtest_factory_creates_adapter
Verify the factory can create a RESP L2 adapter from config.
tests/v1/distributed/test_resp_l2_adapter_integration.py:276
Methodtest_factory_creates_adapter
Verify the factory can create a Mooncake Store L2 adapter.
tests/v1/distributed/test_mooncake_store_l2_adapter.py:902
Methodtest_factory_forwards_all_params
All config params are forwarded to the FS client constructor.
tests/v1/distributed/test_l2_adapter_factory.py:947
Methodtest_factory_import_error_raises
RuntimeError raised when C++ FS extension is not available.
tests/v1/distributed/test_l2_adapter_factory.py:1007
Methodtest_factory_matches_platform_capability
create_event_notifier() picks the backend for this OS.
tests/v1/test_event_notifier.py:193
Methodtest_factory_passes_disabled_l1_registration_for_tcp
( self, monkeypatch: pytest.MonkeyPatch )
tests/v1/distributed/test_mooncake_store_l2_adapter.py:386
Methodtest_factory_passes_enabled_l1_registration_for_rdma
( self, monkeypatch: pytest.MonkeyPatch )
tests/v1/distributed/test_mooncake_store_l2_adapter.py:439
Methodtest_factory_passes_per_op_worker_counts
(self, monkeypatch: pytest.MonkeyPatch)
tests/v1/distributed/test_mooncake_store_l2_adapter.py:492
Methodtest_factory_raises_without_extension
Factory should raise RuntimeError when C++ extension is not available.
tests/v1/distributed/test_mooncake_store_l2_adapter.py:345
Methodtest_factory_rejects_invalid_l1_memory_descriptor_for_rdma
( self, monkeypatch: pytest.MonkeyPatch )
tests/v1/distributed/test_mooncake_store_l2_adapter.py:558
Methodtest_factory_requires_l1_memory_descriptor_for_rdma
( self, monkeypatch: pytest.MonkeyPatch )
tests/v1/distributed/test_mooncake_store_l2_adapter.py:540
Methodtest_factory_returns_pipe_notifier
(self, force_pipe)
tests/v1/test_event_notifier.py:218
Methodtest_failed_request_on_exception
(self, mock_openai_cls)
tests/cli/commands/bench/engine_bench/test_request_sender.py:277
Methodtest_failed_result
(self)
tests/cli/commands/bench/engine_bench/test_stats.py:111
Methodtest_fallback_and_recovery_cycle
Test complete fallback and recovery cycle.
tests/v1/test_health_monitor_fallback_recovery.py:218
Methodtest_fallback_to_key_exists_hit
When local lookup misses, fall back to key_exists and cache the result.
tests/v1/test_nixl_batched_contains.py:146
Methodtest_fallback_to_key_exists_miss
When key_exists also returns False, return False and don't cache.
tests/v1/test_nixl_batched_contains.py:157
Methodtest_false_positive_rate
(self)
tests/v1/lookup_client/test_chunk_statistics_lookup_client.py:107
Methodtest_false_positive_rate_within_reasonable_bound
(self)
tests/v1/test_bloom_filter.py:74
Methodtest_fast_bandwidth_completes_quickly
With fast bandwidth, completion should be quick.
tests/v1/distributed/test_mock_l2_adapter.py:640
Methodtest_fast_mode_matches_normal_token_hit_rate
(self)
tests/tools/test_cache_simulator.py:317
Methodtest_fault_inject_load_gap_segmented_vs_prefix
fault_inject (load fails at index 2) drives the segmented path. Lookup reports all 5 keys present; the *load* of index 2 fails (the L2
tests/v1/distributed/test_prefetch_controller.py:361
Methodtest_field_extraction
Verify metrics are populated from the sample status dict.
tests/cli/test_describe.py:150
Methodtest_fields_and_alias
(self)
tests/v1/test_kv_layer_groups_manager.py:344
Functiontest_fifo
()
tests/v1/test_cache_policy.py:58
Methodtest_fifo_eviction
When the cache is full, FIFO eviction should remove the oldest entry. Config gives ~10 KB capacity; each object is 4 KB (1024
examples/lmc_external_l2_adapter/tests/test_plugin.py:378
Functiontest_fifo_with_pin
()
tests/v1/test_cache_policy.py:82
Methodtest_file_hash_basic
(self)
tests/v1/lookup_client/test_chunk_statistics_lookup_client.py:325
← previousnext →10,101–10,200 of 13,371, ranked by callers