mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 21:43:09 +00:00
benchmarking: update bench_dirnode.py to reflect the new directory interfaces
This commit is contained in:
parent
bdb10553eb
commit
6a7023efbe
@ -24,10 +24,17 @@ class ContainerNode:
|
||||
return self._cap.to_string()
|
||||
def is_readonly(self):
|
||||
return False
|
||||
class FakeNodeMaker:
|
||||
def create_from_cap(self, writecap, readcap=None):
|
||||
def is_mutable(self):
|
||||
return True
|
||||
|
||||
class FakeNode:
|
||||
def raise_error(self):
|
||||
return None
|
||||
|
||||
class FakeNodeMaker:
|
||||
def create_from_cap(self, writecap, readcap=None, deep_immutable=False, name=''):
|
||||
return FakeNode()
|
||||
|
||||
def random_unicode(l):
|
||||
while True:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user