testutils

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(t *testing.T, store cloudstorage.Store)

func BasicRW

func BasicRW(t *testing.T, store cloudstorage.Store)

func Clearstore

func Clearstore(t *testing.T, store cloudstorage.Store)

func Copy

func Copy(t *testing.T, store cloudstorage.Store)

func ListObjsAndFolders

func ListObjsAndFolders(t *testing.T, store cloudstorage.Store)

func MockFile added in v0.2.10

func MockFile(store cloudstorage.Store, path string, body string) error

func Move

func Move(t *testing.T, store cloudstorage.Store)

func MultipleRW

func MultipleRW(t *testing.T, store cloudstorage.Store, conf *cloudstorage.Config)

func NewObjectWithExisting

func NewObjectWithExisting(t *testing.T, store cloudstorage.Store)

func RunTests

func RunTests(t *testing.T, s cloudstorage.Store, conf *cloudstorage.Config)

func Setup

func Setup()

Setup enables -vv verbose logging or sends logs to /dev/null env var VERBOSELOGS=true was added to support verbose logging with alltests

func StoreSetup

func StoreSetup(t *testing.T, store cloudstorage.Store)

func TestReadWriteCloser

func TestReadWriteCloser(t *testing.T, store cloudstorage.Store)

func Truncate

func Truncate(t *testing.T, store cloudstorage.Store)

Types

type TestingT

type TestingT interface {
	Logf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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