MCPcopy
hub / github.com/benbjohnson/litestream / createTestLTXFile

Function createTestLTXFile

compactor_test.go:597–600  ·  view source on GitHub ↗

createTestLTXFile creates a minimal LTX file for testing.

(t testing.TB, client litestream.ReplicaClient, level int, minTXID, maxTXID ltx.TXID)

Source from the content-addressed store, hash-verified

595
596// createTestLTXFile creates a minimal LTX file for testing.
597func createTestLTXFile(t testing.TB, client litestream.ReplicaClient, level int, minTXID, maxTXID ltx.TXID) {
598 t.Helper()
599 createTestLTXFileWithTimestamp(t, client, level, minTXID, maxTXID, time.Now())
600}
601
602// createTestLTXFileWithTimestamp creates a minimal LTX file with a specific timestamp.
603func createTestLTXFileWithTimestamp(t testing.TB, client litestream.ReplicaClient, level int, minTXID, maxTXID ltx.TXID, ts time.Time) {

Calls 1

Tested by

no test coverage detected