Lines Matching refs:cache_info
1178 self.assertEqual(fib.cache_info(),
1181 self.assertEqual(fib.cache_info(),
1191 hits, misses, maxsize, currsize = f.cache_info()
1203 hits, misses, maxsize, currsize = f.cache_info()
1209 hits, misses, maxsize, currsize = f.cache_info()
1214 hits, misses, maxsize, currsize = f.cache_info()
1222 hits, misses, maxsize, currsize = f.cache_info()
1233 self.assertEqual(f.cache_info().maxsize, 0)
1238 hits, misses, maxsize, currsize = f.cache_info()
1249 self.assertEqual(f.cache_info().maxsize, 1)
1254 hits, misses, maxsize, currsize = f.cache_info()
1265 self.assertEqual(f.cache_info().maxsize, 2)
1271 hits, misses, maxsize, currsize = f.cache_info()
1283 self.assertEqual(square.cache_info().hits, 1)
1284 self.assertEqual(square.cache_info().misses, 2)
1285 self.assertEqual(square.cache_info().maxsize, 128)
1286 self.assertEqual(square.cache_info().currsize, 2)
1309 self.assertEqual(f.cache_info().currsize, 10)
1313 self.assertEqual(f.cache_info().currsize, 10)
1327 self.assertEqual(f.cache_info().hits, 1)
1347 self.assertEqual(f.cache_info(), (0, 1, 1, 1))
1352 self.assertEqual(f.cache_info(), (1, 1, 1, 1))
1357 self.assertEqual(f.cache_info(), (1, 2, 1, 1))
1362 self.assertEqual(f.cache_info(), (1, 3, 1, 1))
1412 self.assertEqual(fib.cache_info(),
1415 self.assertEqual(fib.cache_info(),
1424 self.assertEqual(eq.cache_info(),
1456 self.assertEqual(square.cache_info().hits, 4)
1457 self.assertEqual(square.cache_info().misses, 4)
1469 self.assertEqual(fib.cache_info(),
1472 self.assertEqual(fib.cache_info(),
1483 self.assertEqual(fib.cache_info(),
1486 self.assertEqual(fib.cache_info(),
1496 self.assertEqual(f.cache_info(),
1512 hits, misses, maxsize, currsize = f.cache_info()
1535 hits, misses, maxsize, currsize = f.cache_info()
1565 self.assertEqual(f.cache_info(), (0, 0, m*n, 0))
1580 self.assertEqual(f.cache_info(), (0, (i+1)*n, m*n, i+1))
1629 self.assertEqual(X.f.cache_info(), (0, 0, 2, 0))
1634 self.assertEqual(X.f.cache_info(), (4, 6, 2, 2))
1639 self.assertEqual(X.f.cache_info(), (10, 10, 2, 2))
1644 self.assertEqual(X.f.cache_info(), (15, 15, 2, 2))
1646 self.assertEqual(a.f.cache_info(), X.f.cache_info())
1647 self.assertEqual(b.f.cache_info(), X.f.cache_info())
1648 self.assertEqual(c.f.cache_info(), X.f.cache_info())