mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 18:17:53 -06:00
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:
1 parent
8bc1fcb5db
commit
c2dc50db50
1 file changed
+4
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user