Documentation ¶
Index ¶
- type TestFileStorage
- func (fs *TestFileStorage) CheckExistsOrFail(t *testing.T, hash common.Hash)
- func (fs *TestFileStorage) CheckNotExistsOrFail(t *testing.T, hash common.Hash)
- func (fs *TestFileStorage) ReadOrFail(t *testing.T, hash common.Hash) storage.BlobData
- func (s *TestFileStorage) WriteBlob(_ context.Context, data storage.BlobData) error
- func (fs *TestFileStorage) WriteOrFail(t *testing.T, data storage.BlobData)
- func (s *TestFileStorage) WritesFailTimes(times int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestFileStorage ¶
type TestFileStorage struct { *storage.FileStorage // contains filtered or unexported fields }
func NewTestFileStorage ¶
func NewTestFileStorage(t *testing.T, l log.Logger) *TestFileStorage
func (*TestFileStorage) CheckExistsOrFail ¶
func (fs *TestFileStorage) CheckExistsOrFail(t *testing.T, hash common.Hash)
func (*TestFileStorage) CheckNotExistsOrFail ¶
func (fs *TestFileStorage) CheckNotExistsOrFail(t *testing.T, hash common.Hash)
func (*TestFileStorage) ReadOrFail ¶
func (*TestFileStorage) WriteOrFail ¶
func (fs *TestFileStorage) WriteOrFail(t *testing.T, data storage.BlobData)
func (*TestFileStorage) WritesFailTimes ¶
func (s *TestFileStorage) WritesFailTimes(times int)
Click to show internal directories.
Click to hide internal directories.