MCPcopy Create free account
hub / github.com/wal-e/wal-e / FakeTarPartition

Class FakeTarPartition

tests/test_tar_upload_pool.py:7–14  ·  view source on GitHub ↗

Implements enough protocol to test concurrency semantics.

Source from the content-addressed store, hash-verified

5
6
7class FakeTarPartition(object):
8 """Implements enough protocol to test concurrency semantics."""
9 def __init__(self, num_members, explosive=False):
10 self._explosive = explosive
11 self.num_members = num_members
12
13 def __len__(self):
14 return self.num_members
15
16
17class FakeUploader(object):

Callers 8

test_simpleFunction · 0.85
test_simple_concurrencyFunction · 0.85
test_fault_midstreamFunction · 0.85
test_fault_joinFunction · 0.85
test_put_after_joinFunction · 0.85

Calls

no outgoing calls

Tested by 8

test_simpleFunction · 0.68
test_simple_concurrencyFunction · 0.68
test_fault_midstreamFunction · 0.68
test_fault_joinFunction · 0.68
test_put_after_joinFunction · 0.68