diff options
Diffstat (limited to 'storage/filesystem/object_test.go')
-rw-r--r-- | storage/filesystem/object_test.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/storage/filesystem/object_test.go b/storage/filesystem/object_test.go index 38e4b6d..f839420 100644 --- a/storage/filesystem/object_test.go +++ b/storage/filesystem/object_test.go @@ -1,8 +1,8 @@ package filesystem import ( - "gopkg.in/src-d/go-git.v4/core" "gopkg.in/src-d/go-git.v4/fixtures" + "gopkg.in/src-d/go-git.v4/plumbing" "gopkg.in/src-d/go-git.v4/storage/filesystem/internal/dotgit" . "gopkg.in/check.v1" @@ -19,8 +19,8 @@ func (s *FsSuite) TestGetFromObjectFile(c *C) { o, err := newObjectStorage(dotgit.New(fs)) c.Assert(err, IsNil) - expected := core.NewHash("f3dfe29d268303fc6e1bbce268605fc99573406e") - obj, err := o.Object(core.AnyObject, expected) + expected := plumbing.NewHash("f3dfe29d268303fc6e1bbce268605fc99573406e") + obj, err := o.Object(plumbing.AnyObject, expected) c.Assert(err, IsNil) c.Assert(obj.Hash(), Equals, expected) } @@ -31,8 +31,8 @@ func (s *FsSuite) TestGetFromPackfile(c *C) { o, err := newObjectStorage(dotgit.New(fs)) c.Assert(err, IsNil) - expected := core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5") - obj, err := o.Object(core.AnyObject, expected) + expected := plumbing.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5") + obj, err := o.Object(plumbing.AnyObject, expected) c.Assert(err, IsNil) c.Assert(obj.Hash(), Equals, expected) }) @@ -43,12 +43,12 @@ func (s *FsSuite) TestGetFromPackfileMultiplePackfiles(c *C) { o, err := newObjectStorage(dotgit.New(fs)) c.Assert(err, IsNil) - expected := core.NewHash("8d45a34641d73851e01d3754320b33bb5be3c4d3") + expected := plumbing.NewHash("8d45a34641d73851e01d3754320b33bb5be3c4d3") obj, err := o.getFromPackfile(expected) c.Assert(err, IsNil) c.Assert(obj.Hash(), Equals, expected) - expected = core.NewHash("e9cfa4c9ca160546efd7e8582ec77952a27b17db") + expected = plumbing.NewHash("e9cfa4c9ca160546efd7e8582ec77952a27b17db") obj, err = o.getFromPackfile(expected) c.Assert(err, IsNil) c.Assert(obj.Hash(), Equals, expected) @@ -60,11 +60,11 @@ func (s *FsSuite) TestIter(c *C) { o, err := newObjectStorage(dotgit.New(fs)) c.Assert(err, IsNil) - iter, err := o.IterObjects(core.AnyObject) + iter, err := o.IterObjects(plumbing.AnyObject) c.Assert(err, IsNil) var count int32 - err = iter.ForEach(func(o core.Object) error { + err = iter.ForEach(func(o plumbing.Object) error { count++ return nil }) @@ -80,11 +80,11 @@ func (s *FsSuite) TestIterWithType(c *C) { o, err := newObjectStorage(dotgit.New(fs)) c.Assert(err, IsNil) - iter, err := o.IterObjects(core.CommitObject) + iter, err := o.IterObjects(plumbing.CommitObject) c.Assert(err, IsNil) - err = iter.ForEach(func(o core.Object) error { - c.Assert(o.Type(), Equals, core.CommitObject) + err = iter.ForEach(func(o plumbing.Object) error { + c.Assert(o.Type(), Equals, plumbing.CommitObject) return nil }) |