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

Method TestPutSameObject

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

Source from the content-addressed store, hash-verified

37}
38
39func (s *ObjectSuite) TestPutSameObject(c *C) {
40 for _, o := range s.c {
41 o.Put(s.aObject)
42 o.Put(s.aObject)
43 _, ok := o.Get(s.aObject.Hash())
44 c.Assert(ok, Equals, true)
45 }
46}
47
48func (s *ObjectSuite) TestPutSameObjectWithDifferentSize(c *C) {
49 const hash = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

Callers

nothing calls this directly

Calls 3

PutMethod · 0.65
GetMethod · 0.65
HashMethod · 0.65

Tested by

no test coverage detected