MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / test_basic

Method test_basic

test/sot/test_sot_cache.py:29–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28class TestCache(unittest.TestCase):
29 def test_basic(self):
30 cache = CustomCache()
31 self.assertEqual(cache(1), 1)
32 self.assertEqual(cache(1), 1)
33
34 def test_int_collision(self):
35 cache = CustomCache()

Callers

nothing calls this directly

Calls 2

CustomCacheClass · 0.85
cacheFunction · 0.85

Tested by

no test coverage detected