MCPcopy Index your code
hub / github.com/mudler/LocalAI / setUp

Method setUp

backend/python/mlx/test_mlx_cache.py:60–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 """Tests for shorter prefix match behavior."""
59
60 def setUp(self):
61 self.cache = ThreadSafeLRUPromptCache(max_size=10)
62
63 def test_shorter_prefix_returns_cache_with_remaining_tokens(self):
64 """When cached prefix is shorter, return cache and remaining suffix."""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected