Documentation
¶
Index ¶
- 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
- type FakeDecoder
- type ReaderFailingOnClose
- type ReaderFailingOnRead
- type ReaderMock
- type StoreMock
- type WriterMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorruptFile ¶
func CorruptFiles ¶
Types ¶
type FakeDecoder ¶
type FakeDecoder struct {
// contains filtered or unexported fields
}
func (*FakeDecoder) DataRead ¶
func (f *FakeDecoder) DataRead() []byte
type ReaderFailingOnClose ¶
type ReaderFailingOnClose struct {
ReaderMock
}
func (*ReaderFailingOnClose) Close ¶
func (r *ReaderFailingOnClose) Close() error
type ReaderFailingOnRead ¶
type ReaderFailingOnRead struct {
ReaderMock
}
type ReaderMock ¶
type ReaderMock struct{}
func (*ReaderMock) Close ¶
func (r *ReaderMock) Close() error
func (*ReaderMock) Version ¶
func (r *ReaderMock) Version() store.Version
type StoreMock ¶
type WriterMock ¶
type WriterMock struct {
// contains filtered or unexported fields
}
func (*WriterMock) AbortAndClose ¶
func (w *WriterMock) AbortAndClose()
func (*WriterMock) Close ¶
func (w *WriterMock) Close() error
func (*WriterMock) IsAborted ¶
func (w *WriterMock) IsAborted() bool
func (*WriterMock) Version ¶
func (w *WriterMock) Version() store.Version
Click to show internal directories.
Click to hide internal directories.