gcstesting

package
v0.0.0-...-cfd7a7c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

(Implementation detail, do not touch.)

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