From e4246138cb9ffb819c052ba17a9fbdf915427291 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Mon, 29 Aug 2016 22:47:13 +0200 Subject: storage: Add object type hint parameter to ObjectStorage.Get. (#69) Some storage backends can optimize object lookup if they get the object type that is expected. So we the signature of the Get method is now Get(Hash, ObjectType). Added generic tests for storage backends. --- commit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commit_test.go') diff --git a/commit_test.go b/commit_test.go index 886a61d..c7fc333 100644 --- a/commit_test.go +++ b/commit_test.go @@ -28,7 +28,7 @@ func (s *SuiteCommit) SetUpSuite(c *C) { func (s *SuiteCommit) TestDecodeNonCommit(c *C) { hash := core.NewHash("9a48f23120e880dfbe41f7c9b7b708e9ee62a492") - blob, err := s.Repository.s.ObjectStorage().Get(hash) + blob, err := s.Repository.s.ObjectStorage().Get(hash, core.AnyObject) c.Assert(err, IsNil) commit := &Commit{} -- cgit