internaltesting

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 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 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