Documentation ¶
Overview ¶
Package drivertest provides a conformance test for implementations of driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunConformanceTests ¶
func RunConformanceTests(t *testing.T, newHarness HarnessMaker, pathToTestdata string)
RunConformanceTests runs conformance tests for provider implementations of blob. pathToTestdata is a (possibly relative) path to a directory containing blob/testdata/* (e.g., test-small.txt).
Types ¶
type Harness ¶
type Harness interface { // MakeBucket creates a *blob.Bucket to test. // Multiple calls to MakeBucket during a test run must refer to the // same storage bucket; i.e., a blob created using one *blob.Bucket must // be readable by a subsequent *blob.Bucket. MakeBucket(ctx context.Context) (*blob.Bucket, error) Close() }
Harness descibes the functionality test harnesses must provide to run conformance tests.
Click to show internal directories.
Click to hide internal directories.