aboutsummaryrefslogtreecommitdiffstats
path: root/storage/memory
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-05 07:43:50 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-05 07:43:50 +0200
commit440cfd96cf88ffc9d04bbd32ec8a3b1afb42144c (patch)
treed0c91bcadeb5989f71108fc02e80105236d95ae9 /storage/memory
parent3fc9d105d2005114fab8a5af5059f91d30bc77b3 (diff)
downloadgo-git-440cfd96cf88ffc9d04bbd32ec8a3b1afb42144c.tar.gz
storage: idiomatic test suite
Diffstat (limited to 'storage/memory')
-rw-r--r--storage/memory/storage_test.go9
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) {