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.
Click to show internal directories.
Click to hide internal directories.