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

Method SetSize

plumbing/memory.go:39–39  ·  view source on GitHub ↗

SetSize set the object size, a content of the given size should be written afterwards

(s int64)

Source from the content-addressed store, hash-verified

37// SetSize set the object size, a content of the given size should be written
38// afterwards
39func (o *MemoryObject) SetSize(s int64) { o.sz = s }
40
41// Reader returns an io.ReadCloser used to read the object's content.
42//

Callers 9

TestHashMethod · 0.95
TestHashNotFilledMethod · 0.95
TestSizeMethod · 0.95
TestBlobHashMethod · 0.95
newObjectFunction · 0.95
getDeltaFunction · 0.95
indexObjectsMethod · 0.95
resolveObjectMethod · 0.95

Calls

no outgoing calls

Tested by 6

TestHashMethod · 0.76
TestHashNotFilledMethod · 0.76
TestSizeMethod · 0.76
TestBlobHashMethod · 0.76
newObjectFunction · 0.76