MCPcopy Create free account
hub / github.com/go-git/go-git / SetSize

Method SetSize

plumbing/cache/object_test.go:185–185  ·  view source on GitHub ↗
(s int64)

Source from the content-addressed store, hash-verified

183func (*dummyObject) SetType(plumbing.ObjectType) {}
184func (d *dummyObject) Size() int64 { return int64(d.size) }
185func (d *dummyObject) SetSize(s int64) { d.size = FileSize(s) }
186func (*dummyObject) Reader() (io.ReadCloser, error) { return nil, nil }
187func (*dummyObject) Writer() (io.WriteCloser, error) { return nil, nil }

Callers

nothing calls this directly

Calls 1

FileSizeTypeAlias · 0.85

Tested by

no test coverage detected