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

Method TestHashNotFilled

plumbing/memory_test.go:27–33  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

25}
26
27func (s *MemoryObjectSuite) TestHashNotFilled(c *C) {
28 o := &MemoryObject{}
29 o.SetType(BlobObject)
30 o.SetSize(14)
31
32 c.Assert(o.Hash(), Equals, ZeroHash)
33}
34
35func (s *MemoryObjectSuite) TestType(c *C) {
36 o := &MemoryObject{}

Callers

nothing calls this directly

Calls 3

SetTypeMethod · 0.95
SetSizeMethod · 0.95
HashMethod · 0.95

Tested by

no test coverage detected