Esempio n. 1
0
func TestFileBucket(t *testing.T) {
	b := &TestBucket{
		bucket: testutil.TempFileBucket("FileBucket"),
		t:      t,
	}
	b.allTests()
}
Esempio n. 2
0
func TestUpgradedFileBucket(t *testing.T) {
	b := &TestBucket{
		bucket: testutil.Upgrade(testutil.TempFileBucket("UpgradedFileBucket")),
		t:      t,
	}
	b.allTests()
}
Esempio n. 3
0
func TestFSPut(t *testing.T) {
	fsBucket = testutil.Upgrade(testutil.TempFileBucket("FSPutGet"))

	_, err := Put(fsBucket, testutil.TempDir, []string{"data"})
	if err != nil {
		t.Fatalf("Put failed: %s", err)
	}
	fsPutOk = true
}