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

Function readMemoryObject

tests/objectverify/main_test.go:144–151  ·  view source on GitHub ↗
(t *testing.T, o *plumbing.MemoryObject)

Source from the content-addressed store, hash-verified

142}
143
144func readMemoryObject(t *testing.T, o *plumbing.MemoryObject) []byte {
145 t.Helper()
146 r, err := o.Reader()
147 require.NoError(t, err)
148 b, err := io.ReadAll(r)
149 require.NoError(t, err)
150 return b
151}
152
153func configureRepoSigning(t *testing.T, repo, keyID string) {
154 t.Helper()

Callers 2

encodeWithoutSignatureFunction · 0.85

Calls 1

ReaderMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…