Versions in this module Expand all Collapse all v0 v0.6.1 Jan 30, 2022 v0.6.0 Jan 23, 2022 Changes in this version + func CorruptFile(t *testing.T, file string) + func CorruptFiles(t *testing.T, dir string) + func OpenStore(t *testing.T, options ...store.Option) *store.Store + func ReadData(t *testing.T, s *store.Store, options ...store.ReaderOption) []byte + func TempDir(t *testing.T) string + func TouchFile(t *testing.T, path string) + func UpdateFiles(t *testing.T, dir, extension string, newContent string) + func WriteData(t *testing.T, s *store.Store, bytes []byte, ...) store.Version + type Async struct + func RunAsync(f func()) Async + func (a *Async) WaitOrFailAfter(t *testing.T, timeout time.Duration) + type FakeDecoder struct + func (f *FakeDecoder) DataRead() []byte + func (f *FakeDecoder) Decode(reader io.Reader) error + type ReaderFailingOnClose struct + func (r *ReaderFailingOnClose) Close() error + type ReaderFailingOnRead struct + func (r *ReaderFailingOnRead) Read([]byte) (n int, err error) + type ReaderMock struct + func (r *ReaderMock) Close() error + func (r *ReaderMock) Read(p []byte) (n int, err error) + func (r *ReaderMock) Version() store.Version + type StoreMock struct + ReturnReader store.Reader + ReturnReaderError error + ReturnVersions []store.Version + ReturnVersionsError error + ReturnWriter store.Writer + func (s *StoreMock) Reader(...store.ReaderOption) (store.Reader, error) + func (s *StoreMock) Versions() ([]store.Version, error) + func (s *StoreMock) Writer(...store.WriterOption) (store.Writer, error) + type WriterMock struct + func (w *WriterMock) AbortAndClose() + func (w *WriterMock) Close() error + func (w *WriterMock) IsAborted() bool + func (w *WriterMock) Version() store.Version + func (w *WriterMock) Write(p []byte) (n int, err error)