Package storagetesting implements testing utilities and integration tests for storage.
AssertNotExist asserts the path has the expected ObjectInfo.
AssertObjectInfo asserts the path has the expected ObjectInfo.
func AssertObjectInfoEqual( t *testing.T, expected storage.ObjectInfo, actual storage.ObjectInfo, )
AssertObjectInfoEqual asserts the two ObjectInfos are equal.
AssertPathToContent asserts the content.
func RunTestSuite( t *testing.T, storagetestingDirPath string, newReadBucket func(*testing.T, string) storage.ReadBucket, newWriteBucketAndCleanup func(*testing.T) (storage.WriteBucket, func() error), writeBucketToReadBucket func(*testing.T, storage.WriteBucket) storage.ReadBucket, )
RunTestSuite runs the test suite.
storagetestingDirPath is the path to this directory. newReadBucket takes a path to a directory.