projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb1055
)
benchmarking: update bench_dirnode.py to reflect the new directory interfaces
author
Zooko O'Whielacronx
<zooko@zooko.com>
Sun, 18 Jul 2010 03:17:10 +0000
(20:17 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Sun, 18 Jul 2010 03:17:10 +0000
(20:17 -0700)
src/allmydata/test/bench_dirnode.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/bench_dirnode.py
b/src/allmydata/test/bench_dirnode.py
index ffc6637c009842ffd008b9c1636670df4f2abd20..676f00219e9e77f0db4d54be423da80036ef2fd2 100644
(file)
--- a/
src/allmydata/test/bench_dirnode.py
+++ b/
src/allmydata/test/bench_dirnode.py
@@
-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: