diff options
Diffstat (limited to 'storage/filesystem/storage_test.go')
-rw-r--r-- | storage/filesystem/storage_test.go | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/storage/filesystem/storage_test.go b/storage/filesystem/storage_test.go index f1f18f9..7d66205 100644 --- a/storage/filesystem/storage_test.go +++ b/storage/filesystem/storage_test.go @@ -3,11 +3,35 @@ package filesystem import ( "testing" + "gopkg.in/src-d/go-git.v4/storage/test" + "gopkg.in/src-d/go-git.v4/utils/fs/os" + . "gopkg.in/check.v1" ) func Test(t *testing.T) { TestingT(t) } -type StorageSuite struct{} +type StorageSuite struct { + test.BaseStorageSuite +} var _ = Suite(&StorageSuite{}) + +func (s *StorageSuite) SetUpTest(c *C) { + path := c.MkDir() + storage, err := NewStorage(os.NewOS(path)) + c.Assert(err, IsNil) + s.BaseStorageSuite = test.NewBaseStorageSuite( + storage.ObjectStorage(), + storage.ReferenceStorage(), + storage.ConfigStorage(), + ) +} + +func (s *StorageSuite) TestTxObjectStorageSetAndCommit(c *C) { + c.Skip("tx not supported") +} + +func (s *StorageSuite) TestTxObjectStorageSetAndRollback(c *C) { + c.Skip("tx not supported") +} |