MCPcopy Index your code
hub / github.com/go-git/go-git / TestPutBigObject

Method TestPutBigObject

plumbing/cache/object_test.go:67–73  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

65}
66
67func (s *ObjectSuite) TestPutBigObject(c *C) {
68 for _, o := range s.c {
69 o.Put(s.bObject)
70 _, ok := o.Get(s.aObject.Hash())
71 c.Assert(ok, Equals, false)
72 }
73}
74
75func (s *ObjectSuite) TestPutCacheOverflow(c *C) {
76 // this test only works with an specific size

Callers

nothing calls this directly

Calls 3

PutMethod · 0.65
GetMethod · 0.65
HashMethod · 0.65

Tested by

no test coverage detected