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

Struct testLTXFileOpener

internal/resumable_reader_test.go:283–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283type testLTXFileOpener struct {
284 OpenLTXFileFunc func(ctx context.Context, level int, minTXID, maxTXID ltx.TXID, offset, size int64) (io.ReadCloser, error)
285}
286
287func (t *testLTXFileOpener) OpenLTXFile(ctx context.Context, level int, minTXID, maxTXID ltx.TXID, offset, size int64) (io.ReadCloser, error) {
288 return t.OpenLTXFileFunc(ctx, level, minTXID, maxTXID, offset, size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected