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

Method TestPutSameBuffer

plumbing/cache/buffer_test.go:33–40  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

31}
32
33func (s *BufferSuite) TestPutSameBuffer(c *C) {
34 for _, o := range s.c {
35 o.Put(1, s.aBuffer)
36 o.Put(1, s.aBuffer)
37 _, ok := o.Get(1)
38 c.Assert(ok, Equals, true)
39 }
40}
41
42func (s *ObjectSuite) TestPutSameBufferWithDifferentSize(c *C) {
43 aBuffer := []byte("a")

Callers

nothing calls this directly

Calls 2

PutMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected