aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/storage_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/filesystem/storage_test.go')
-rw-r--r--storage/filesystem/storage_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/storage/filesystem/storage_test.go b/storage/filesystem/storage_test.go
index 02816f4..0127489 100644
--- a/storage/filesystem/storage_test.go
+++ b/storage/filesystem/storage_test.go
@@ -25,6 +25,16 @@ func (s *StorageSuite) SetUpTest(c *C) {
s.BaseStorageSuite = test.NewBaseStorageSuite(storage)
}
+func (s *StorageSuite) TestNewStorage(c *C) {
+ fs := memfs.New()
+ storage, err := NewStorage(fs)
+ c.Assert(err, IsNil)
+ c.Assert(storage, NotNil)
+
+ _, err = fs.Stat("refs/tags")
+ c.Assert(err, IsNil)
+}
+
func (s *StorageSuite) TestFilesystem(c *C) {
fs := memfs.New()
storage, err := NewStorage(fs)