chore: count path index walks over items too

record_at builds its index from files.items(): the walk counter of
test_slots counts items() as well as values().
This commit is contained in:
Abdessamad Derraz committed 2026-11-20 20:03:26 +01:00
1 parent 8bc1fcb5db
commit c2dc50db50
1 file changed
+4
+4
View File
@@ -961,6 +961,10 @@ class ARecordIsFoundByItsPathOnce(unittest.TestCase):
Counted.walks += 1
return super().values()
def items(self):
Counted.walks += 1
return super().items()
files = Counted({"a" * 40: {"path": "bios/x.bin"}, "b" * 40: {"path": "bios/y.bin"}})
db = {"files": files}
for _ in range(50):