diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-05-22 13:47:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 13:47:42 +0200 |
commit | 2ff77a8d93529cefdca922dbed89d4b1cd0ee8e5 (patch) | |
tree | aa27da9eb77c76b9d9912bb94d92c59823446692 /storage/filesystem/storage_test.go | |
parent | d98ebb5e42cd07007010f6d10db11a792c58206e (diff) | |
parent | 8fbb9914931704257581f5a7474ee3f2abc3780f (diff) | |
download | go-git-2ff77a8d93529cefdca922dbed89d4b1cd0ee8e5.tar.gz |
Merge pull request #398 from mcuadros/init-fix
storage: filesystem, initialize the default folder scaffolding
Diffstat (limited to 'storage/filesystem/storage_test.go')
-rw-r--r-- | storage/filesystem/storage_test.go | 10 |
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) |