aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/storage_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-05-21 19:28:05 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-05-21 19:28:05 +0200
commit8fbb9914931704257581f5a7474ee3f2abc3780f (patch)
treeaa27da9eb77c76b9d9912bb94d92c59823446692 /storage/filesystem/storage_test.go
parentd98ebb5e42cd07007010f6d10db11a792c58206e (diff)
downloadgo-git-8fbb9914931704257581f5a7474ee3f2abc3780f.tar.gz
storage: filesystem, initialize the default folder scaffolding
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)