MCPcopy Create free account
hub / github.com/libgit2/git2go / Read

Method Read

transport_test.go:26–34  ·  view source on GitHub ↗
(buf []byte)

Source from the content-addressed store, hash-verified

24}
25
26func (s *testSmartSubtransportStream) Read(buf []byte) (int, error) {
27 payload := "" +
28 "001e# service=git-upload-pack\n" +
29 "0000005d0000000000000000000000000000000000000000 HEAD\x00symref=HEAD:refs/heads/master agent=libgit\n" +
30 "003f0000000000000000000000000000000000000000 refs/heads/master\n" +
31 "0000"
32
33 return copy(buf, []byte(payload)), io.EOF
34}
35
36func (s *testSmartSubtransportStream) Write(buf []byte) (int, error) {
37 return 0, io.EOF

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected