aboutsummaryrefslogtreecommitdiffstats
path: root/storage/test/storage_suite.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-01-29 02:16:26 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-29 02:16:26 +0100
commitde1c0bfec0269ff2a31b62d13612d833da178ec4 (patch)
tree9a47045401c1991747dd1f2e5497efff1e3dc1e5 /storage/test/storage_suite.go
parentcf9efc629eae67dc5c05c06e3cb0470bb1696f73 (diff)
downloadgo-git-de1c0bfec0269ff2a31b62d13612d833da178ec4.tar.gz
storage: IndexStorer implementation
Diffstat (limited to 'storage/test/storage_suite.go')
-rw-r--r--storage/test/storage_suite.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/test/storage_suite.go b/storage/test/storage_suite.go
index 088edce..ca2f783 100644
--- a/storage/test/storage_suite.go
+++ b/storage/test/storage_suite.go
@@ -297,6 +297,15 @@ func (s *BaseStorageSuite) TestSetConfigAndConfig(c *C) {
c.Assert(cfg, DeepEquals, expected)
}
+func (s *BaseStorageSuite) TestIndex(c *C) {
+ expected := &index.Index{}
+ expected.Version = 2
+
+ idx, err := s.Storer.Index()
+ c.Assert(err, IsNil)
+ c.Assert(idx, DeepEquals, expected)
+}
+
func (s *BaseStorageSuite) TestSetIndexAndIndex(c *C) {
expected := &index.Index{}
expected.Version = 2