MCPcopy
hub / github.com/go-git/go-git / TestClear

Method TestClear

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

Source from the content-addressed store, hash-verified

110}
111
112func (s *ObjectSuite) TestClear(c *C) {
113 for _, o := range s.c {
114 o.Put(s.aObject)
115 o.Clear()
116 obj, ok := o.Get(s.aObject.Hash())
117 c.Assert(ok, Equals, false)
118 c.Assert(obj, IsNil)
119 }
120}
121
122func (s *ObjectSuite) TestConcurrentAccess(c *C) {
123 for _, o := range s.c {

Callers

nothing calls this directly

Calls 4

PutMethod · 0.65
ClearMethod · 0.65
GetMethod · 0.65
HashMethod · 0.65

Tested by

no test coverage detected