storagetest

package
v0.0.0-...-4fefc29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (fs *TestFileStorage) ReadOrFail(t *testing.T, hash common.Hash) storage.BlobData

func (*TestFileStorage) WriteBlob

func (s *TestFileStorage) WriteBlob(_ context.Context, data storage.BlobData) error

func (*TestFileStorage) WriteOrFail

func (fs *TestFileStorage) WriteOrFail(t *testing.T, data storage.BlobData)

func (*TestFileStorage) WritesFailTimes

func (s *TestFileStorage) WritesFailTimes(times int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL