diff options
author | kuba-- <kuba@sourced.tech> | 2018-09-07 09:27:35 +0200 |
---|---|---|
committer | kuba-- <kuba@sourced.tech> | 2018-09-07 13:48:18 +0200 |
commit | 8f6b3127c1ff7661113fff2662416c328971a285 (patch) | |
tree | 3b127a5edf22140c5a710612cb5e4fcc3879664a /plumbing/object/difftree_test.go | |
parent | d3cec13ac0b195bfb897ed038a08b5130ab9969e (diff) | |
download | go-git-8f6b3127c1ff7661113fff2662416c328971a285.tar.gz |
Expose Storage cache.
Signed-off-by: kuba-- <kuba@sourced.tech>
Diffstat (limited to 'plumbing/object/difftree_test.go')
-rw-r--r-- | plumbing/object/difftree_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/object/difftree_test.go b/plumbing/object/difftree_test.go index ff9ecbc..4af8684 100644 --- a/plumbing/object/difftree_test.go +++ b/plumbing/object/difftree_test.go @@ -4,6 +4,7 @@ import ( "sort" "gopkg.in/src-d/go-git.v4/plumbing" + "gopkg.in/src-d/go-git.v4/plumbing/cache" "gopkg.in/src-d/go-git.v4/plumbing/filemode" "gopkg.in/src-d/go-git.v4/plumbing/format/packfile" "gopkg.in/src-d/go-git.v4/plumbing/storer" @@ -25,8 +26,7 @@ type DiffTreeSuite struct { func (s *DiffTreeSuite) SetUpSuite(c *C) { s.Suite.SetUpSuite(c) s.Fixture = fixtures.Basic().One() - sto, err := filesystem.NewStorage(s.Fixture.DotGit()) - c.Assert(err, IsNil) + sto := filesystem.NewStorage(s.Fixture.DotGit(), cache.NewObjectLRUDefault()) s.Storer = sto s.cache = make(map[string]storer.EncodedObjectStorer) } |