testutils

package
v0.0.0-...-86c6960 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkErrorFolder

func NewNetworkErrorFolder(sourceFolder storage.Folder, networkErrorAfterByteSize int) storage.Folder

func NewUnexpectedEOFLimitReader

func NewUnexpectedEOFLimitReader(readCloser io.ReadCloser, maxRead int64) io.ReadCloser

Types

type TestFolder

type TestFolder struct {
	storage.Folder
	// contains filtered or unexported fields
}

func (*TestFolder) ReadObject

func (tf *TestFolder) ReadObject(path string) (io.ReadCloser, error)

type UnexpectedEOFLimitReader

type UnexpectedEOFLimitReader struct {
	// contains filtered or unexported fields
}

func (*UnexpectedEOFLimitReader) Close

func (u *UnexpectedEOFLimitReader) Close() error

func (*UnexpectedEOFLimitReader) Read

func (u *UnexpectedEOFLimitReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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