(buf []byte)
| 24 | } |
| 25 | |
| 26 | func (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 | |
| 36 | func (s *testSmartSubtransportStream) Write(buf []byte) (int, error) { |
| 37 | return 0, io.EOF |
nothing calls this directly
no outgoing calls
no test coverage detected