diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-06 23:17:16 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-06 23:18:50 +0100 |
commit | 5990aeb7198a4961a363eeb422a3faa57c8dc029 (patch) | |
tree | 67dfad381361e34b18b9afcb36142d97a29117ac /storage | |
parent | 17e3f85613b511c4134ebba5648142887a7b8812 (diff) | |
download | go-git-5990aeb7198a4961a363eeb422a3faa57c8dc029.tar.gz |
revision based on goreportcard.com
Diffstat (limited to 'storage')
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit_test.go | 1 | ||||
-rw-r--r-- | storage/test/storage_suite.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go index bcd8d96..3a1f194 100644 --- a/storage/filesystem/internal/dotgit/dotgit_test.go +++ b/storage/filesystem/internal/dotgit/dotgit_test.go @@ -181,6 +181,7 @@ func (s *SuiteDotGit) TestObjectPackNotFound(c *C) { c.Assert(pack, IsNil) idx, err := dir.ObjectPackIdx(plumbing.ZeroHash) + c.Assert(err, Equals, ErrPackfileNotFound) c.Assert(idx, IsNil) } diff --git a/storage/test/storage_suite.go b/storage/test/storage_suite.go index d5e1464..22225a5 100644 --- a/storage/test/storage_suite.go +++ b/storage/test/storage_suite.go @@ -184,6 +184,7 @@ func (s *BaseStorageSuite) TestObjectStorerTxSetObjectAndGetObject(c *C) { c.Assert(h.String(), Equals, expected.Hash) o, err := tx.Object(expected.Type, plumbing.NewHash(expected.Hash)) + c.Assert(err, IsNil) c.Assert(o.Hash().String(), DeepEquals, expected.Hash) } } |