testing

package
v2.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBucketTests

func RegisterBucketTests(makeDeps func(context.Context) BucketTestDeps)

Given a function that returns appropriate test depencencies, register test suites that exercise the buckets returned by the function with ogletest.

Types

type BucketTestDeps

type BucketTestDeps struct {

	// An initialized, empty bucket.
	Bucket gcs.Bucket

	// A clock matching the bucket's notion of time.
	Clock timeutil.Clock

	// Does the bucket support cancellation?
	SupportsCancellation bool

	// Does the bucket buffer all contents before creating in GCS?
	BuffersEntireContentsForCreate bool
	// contains filtered or unexported fields
}

Dependencies needed for tests registered by RegisterBucketTests.

Jump to

Keyboard shortcuts

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