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

Function prepare_multi_upload_segments

tests/test_wal_transfer.py:82–92  ·  view source on GitHub ↗

Prepare a handful of fake segments for upload.

()

Source from the content-addressed store, hash-verified

80
81
82def prepare_multi_upload_segments():
83 """Prepare a handful of fake segments for upload."""
84 # The first segment is special, being explicitly passed by
85 # Postgres.
86 yield FakeWalSegment('0' * 8 * 3, explicit=True)
87
88 # Additional segments are non-explicit, which means they will have
89 # their metadata manipulated by wal-e rather than relying on the
90 # Postgres archiver.
91 for i in range(1, 5):
92 yield FakeWalSegment(str(i) * 8 * 3, explicit=False)
93
94
95def test_simple_upload():

Callers 3

test_multi_uploadFunction · 0.85
test_multi_explicit_failFunction · 0.85
test_multi_pipeline_failFunction · 0.85

Calls 1

FakeWalSegmentClass · 0.85

Tested by

no test coverage detected