diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-05 07:43:50 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-05 07:43:50 +0200 |
commit | 440cfd96cf88ffc9d04bbd32ec8a3b1afb42144c (patch) | |
tree | d0c91bcadeb5989f71108fc02e80105236d95ae9 /storage/memory | |
parent | 3fc9d105d2005114fab8a5af5059f91d30bc77b3 (diff) | |
download | go-git-440cfd96cf88ffc9d04bbd32ec8a3b1afb42144c.tar.gz |
storage: idiomatic test suite
Diffstat (limited to 'storage/memory')
-rw-r--r-- | storage/memory/storage_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/storage/memory/storage_test.go b/storage/memory/storage_test.go index e291609..61a810e 100644 --- a/storage/memory/storage_test.go +++ b/storage/memory/storage_test.go @@ -11,13 +11,14 @@ import ( func Test(t *testing.T) { TestingT(t) } -type StorageSuite struct { } +type StorageSuite struct { + BaseStorageSuite +} var _ = Suite(&StorageSuite{}) -func (s *StorageSuite) TestObjectStorage(c *C) { - storage := NewStorage() - RunObjectStorageSuite(c, storage.ObjectStorage()) +func (s *StorageSuite) SetUpSuite(c *C) { + s.BaseStorageSuite = NewBaseStorageSuite(NewStorage().ObjectStorage()) } func (s *StorageSuite) TestStorageObjectStorage(c *C) { |