internaltesting

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyReadBucketToTempDir

func CopyReadBucketToTempDir(
	ctx context.Context,
	tb testing.TB,
	storageosProvider storageos.Provider,
	readBucket storage.ReadBucket,
) (string, storage.ReadWriteBucket)

CopyReadBucketToTempDir copies the ReadBucket to a new temporary directory.

Returns the temporary directory path and a ReadWriteBucket of the temporary directory.

func NewEnv

func NewEnv(tb testing.TB, use string) func(string) map[string]string

NewEnv returns a new env map for testing.

func NewEnvFunc

func NewEnvFunc(tb testing.TB) func(string) map[string]string

NewEnvFunc returns a new env func for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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