(c *C)
| 32 | var _ = Suite(&FsSuite{}) |
| 33 | |
| 34 | func (s *FsSuite) TestGetFromObjectFile(c *C) { |
| 35 | fs := fixtures.ByTag(".git").ByTag("unpacked").One().DotGit() |
| 36 | o := NewObjectStorage(dotgit.New(fs), cache.NewObjectLRUDefault()) |
| 37 | |
| 38 | expected := plumbing.NewHash("f3dfe29d268303fc6e1bbce268605fc99573406e") |
| 39 | obj, err := o.EncodedObject(plumbing.AnyObject, expected) |
| 40 | c.Assert(err, IsNil) |
| 41 | c.Assert(obj.Hash(), Equals, expected) |
| 42 | } |
| 43 | |
| 44 | func (s *FsSuite) TestGetFromPackfile(c *C) { |
| 45 | fixtures.Basic().ByTag(".git").Test(c, func(f *fixtures.Fixture) { |
nothing calls this directly
no test coverage detected