testutil

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(bs []byte) ([]byte, error)

Compress compress the data, compatible with compressive storage.

func CreateStore

func CreateStore(name string) (fstorage.FStorage, error)

CreateStore create s storage.

Types

type FStorage

type FStorage struct {
	mock.Mock
}

FStorage is an autogenerated mock type for the FStorage type

func (*FStorage) Close

func (_m *FStorage) Close() error

Close provides a mock function with given fields:

func (*FStorage) Create

func (_m *FStorage) Create() error

Create provides a mock function with given fields:

func (*FStorage) Exists

func (_m *FStorage) Exists() (bool, error)

Exists provides a mock function with given fields:

func (*FStorage) Read

func (_m *FStorage) Read() ([]byte, error)

Read provides a mock function with given fields:

func (*FStorage) Remove

func (_m *FStorage) Remove() error

Remove provides a mock function with given fields:

func (*FStorage) Write

func (_m *FStorage) Write(_a0 []byte) error

Write provides a mock function with given fields: _a0

type Location

type Location struct {
	mock.Mock
}

Location is an autogenerated mock type for the Location type

func (*Location) Close

func (_m *Location) Close() error

Close provides a mock function with given fields:

func (*Location) Create

func (_m *Location) Create(sub string) (fstorage.FStorage, error)

Create provides a mock function with given fields: sub

func (*Location) List

func (_m *Location) List() ([]string, error)

List provides a mock function with given fields:

func (*Location) New

func (_m *Location) New(sub string) (fstorage.FStorage, error)

New provides a mock function with given fields: sub

func (*Location) NewSubLocation

func (_m *Location) NewSubLocation(sub ...string) (fstorage.Location, error)

NewSubLocation provides a mock function with given fields: sub

Jump to

Keyboard shortcuts

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