コード例 #1
0
func TestLStorageManyFiles(t *testing.T) {
	t.Parallel()
	testdir, err := ioutil.TempDir("", "rocks-strata-LStorage-test_")
	ensure.Nil(t, err)
	ls, err := NewLStorage(testdir)
	ensure.Nil(t, err)
	defer os.RemoveAll(testdir)
	strata.HelpTestStorageManyFiles(t, ls)
}
コード例 #2
0
func TestS3StorageManyFiles(t *testing.T) {
	t.Parallel()
	s3 := NewMockS3(t)
	defer s3.Stop()

	s, err := NewStorageWithMockS3(s3)
	ensure.Nil(t, err)

	strata.HelpTestStorageManyFiles(t, s)

}